FImport Statement

Description
This imports a force file into the currently selected robot project.

Usage
FImport SorcePath_sValue$, Filename_sValue$ [, RobotNo_iValue]

  • SourcePath_sValue$
    A string value defining the file you wish to import into the current project. The extension is “.frc”.

  • FileName_sValue$
    A string value defining a specific file you wish to import into the current project for the current robot. The extension is “.frc”. You cannot specify the path.

  • RobotNo_iValue
    This is a real number expression specifying which robot is associated with the force file. Can be omitted. When the robot number is “0,” the force file will be imported as a common force file. When omitted, the current robot number is used.

Detailed Explanation
FImport imports a force file into the currently selected project and adds it to the currently selected robot file. The added file can be loaded with the FLoad statement. When a file with the same file name exists on the currently selected robot, it is overwritten.
The file name must be alphanumeric characters and the underscore character only, and can be up to 255 characters.

Frequent Errors
Specified file does not exist When SourcePath_sValue$ does not exist, an error is generated.
Specified file is not found An error occurs when the path is included in FileName_sValue$.
Specified file is not on current robot When a force file from a different robot is specified in FileName_sValue$, an error occurs.

Usage Example
This is an example of importing a force file to the currently selected project.

> Robot 1
> FImport "C:\temp\myforce.frc", "myforce.frc"

See Also
FExport, FSave, Robot