Yes, this line is required, if you want to use functions of it.
You also could copy it to the folder of your program, and use
include "basefunctions.inc"
Then this file will be loaded.
But this method is unsecure, as some menuesystems have a problem with setting the path correctly.
If you want to do it, you must add this:
Code: Select all
#!/usr/bin/wxbasicscript
mypath = command(2)
if left ( mypath , 1 ) != "/" then
mypath = "./"
else
x = rinstr( mypath , "/" )
mypath = left( mypath , x-1 )
end if
include mypath & "basefunctions.inc"
Congratulations for your first program
And remember: No question is stupid, everybody started as a "Beginner"
These questions also help to get the Tutorial "Beginner-friendly", as I am always in danger to forget things, that are "normal" for me beeing used to work with wxBasic since several years now.
Mark