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.


Use it any of the following way:

$INSERT record [FROM [DICT] filename]

$INSERT filename {, | | > } record

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


  • 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


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 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #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
How to obfuscate JavaScript code to hide it from View Source?JavaScriptWhat is a component helper function in React?Reactfirst-of-type and last-of-type selectors in CSSCSSHow to add Date and Time picker in HTML and get the values using JavaScript?HTMLWordPress: How to display slider repeater fields in ACF?WordPressWhat is HTMLUnknownElement?HTML