3.2.7. Setting the File Name

[<<<] [>>>]

To successfully load a program there is a need for the name of the file that holds the source code. To specify this file name for a program object the function scriba_SetFileName() should be used.

  scriba_SetFileName(pProgram,szInputFile);

This is the usual way getting the program into the program object, but there is another way. Some applications do not store the BASIC program string in text files, but in some other mass media, like relation database. In that case the application has to load the program string into the application memory and call scriba_LoadProgramString() to compile and execute the BASIC program. However in this case the program should not contain any include or import statement.


[<<<] [>>>]