I use basic4A last version 1.70
With this code :
sub MYFUNCT(WSTR as String , CCHAR as char)
.... some code ....
If CCHAR = ">" Then
.... some code ...
end if
I have a compilation error :
Compiling code. Error
Error compiling program.
Error description: Missing parameter.
Occurred on line: 109
If CCHAR = ">" Then
Word: >
If I replace ">" with " " , it compile OK !
Also, when I read a text file created with Windows Notepad , and lines contains spécial Ascii caracters as "§" , ">" , after reading by File.readList() , these char are replaced by a symbol (a question mark inside a square)
WHY ?
Coming from Turbo-Pascal + Delphi , it is a frequent error to write 'some string' , at place of "some string" : this is detected by the compiler ;
but writing
dim MY_VAR_STRING as String
.... some code ....
MY_VAR_STRING = MY_VAR_STRING + "ABC"
is not détected at compiler time , only at run time with an eror : java.lang.NumberFormatException ;
With this code :
sub MYFUNCT(WSTR as String , CCHAR as char)
.... some code ....
If CCHAR = ">" Then
.... some code ...
end if
I have a compilation error :
Compiling code. Error
Error compiling program.
Error description: Missing parameter.
Occurred on line: 109
If CCHAR = ">" Then
Word: >
If I replace ">" with " " , it compile OK !
Also, when I read a text file created with Windows Notepad , and lines contains spécial Ascii caracters as "§" , ">" , after reading by File.readList() , these char are replaced by a symbol (a question mark inside a square)
WHY ?
Coming from Turbo-Pascal + Delphi , it is a frequent error to write 'some string' , at place of "some string" : this is detected by the compiler ;
but writing
dim MY_VAR_STRING as String
.... some code ....
MY_VAR_STRING = MY_VAR_STRING + "ABC"
is not détected at compiler time , only at run time with an eror : java.lang.NumberFormatException ;
Last edited: