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 check if radio button is checked or not using JavaScript? #2 How to add Read More Read Less Button using JavaScript? #3 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#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 #Jan 14 How to display a student’s individual transcript in Colleague? #Jan 11 How to install PuTTY on a MacOS?
You might also like these
The difference between Class declarations and Class expressions in JavaScriptJavaScriptHow does Binding work in JavaScript?JavaScriptCSS Attribute SelectorsCSSHow to uninstall Cocoapods from the Mac OS?MiscellaneousMySQL queries to get data rows from previous month as well as from last 30 daysSQL/MySQLColleague UI Basics: The Search AreaColleague