Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 26/07/2007 @ 14:22 par aldweb
visiteur |
Hello Larry,
To use DIM, a full version of iziBasic is required. So a source code with a full version of iziBasic would look like:
DIM %PROGNAME$ 'a custom variable in iziBasic requires a starting % character CONST %PROGNAME$="Larry Martin" BEGIN PRINT %PROGNAME$ WAIT END With the trial version of iziBasic, you may still work with constants, but using the standard A$-Z$ variables:
CONST P$="Larry Martin" BEGIN PRINT P$ WAIT END Why use a CONST then? when one could do:
BEGIN P$="Larry Martin" PRINT P$ WAIT END
In this case, the compiler will store the "Larry Martin" string in the memory, and copy its value to P$ only at runtime. So the string is stored twice. In the previous case, at compilation time, the string is directly stored in P$.
Cheers, aldweb
|