Yogesh Chauhan's Blog

How to use $INSERT command in Envision Basic?

in Envision Basic on December 25, 2021

The $INSERT command used to insert UniBasic source code from your specified file into the program currently compiling.

The $INSERT command also used to insert code from a UNIX, or Windows platform sequential file.

Syntax

Use it any of the following way:


$INSERT record [FROM [DICT] filename]


$INSERT filename {, | | > } record


$INSERT [pathname {, | | >} ] seq.filename

Where

  • record = the record that has the code that you want to insert
  • filename = UniData directory containing the record.
    • If you do not pass the filename, the system will look for the record in the current file where the current compiling program is.
  • pathname = the directory containing seq.filename.
    • If you do not pass the pathname, the system will look for seq.filename in the current directory.
    • The delimiter used between the path and the file or the record can be either a space, a comma (,) or a greater than sign (>).
  • seq.filename = the name of an operating system sequential file

Examples

This following statement inserts the code from the file partial_code_file into the current compiling program in the COMP directory:


$INSERT partial_code_file FROM COMP

Use the $INSERT command in UniData for UNIX

This following statement inserts the code from sequential file into the current compiling program piece_of_code in the directory /folder/f2/dir:


$INSERT /folder/f2/dir/piece_of_code

Most Read

#1 How to add Read More Read Less Button using JavaScript? #2 How to check if radio button is checked or not using JavaScript? #3 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
Everything you need to know about ANY, SOME and ALL Operators in PostgresPostgres@use rule in SCSS (Sass)SCSSAmpersand (Parent Selector) in SCSS (Sass)SCSSCSS align-items property examplesCSSHow to create a simple digital clock using JavaScript?JavaScriptSolution to “TypeError: ‘x’ is not iterable” in Angular 9Angular