Under New Management
0 Members and 1 Guest are viewing this topic.
OPENCONSOLEDEF name$[30]:ISTRINGDEF x:INT name$[0] = "Sally"name$[1] = "John"name$[2] = "Mark"name$[29] = "Me" FOR x = 0 TO 29 IF name$ (x) = "" PRINT "..." ELSE PRINT name$ [x] ENDIFPRINT "Press any key to close"DO:UNTIL INKEY$ <> ""CLOSECONSOLEEND
OPENCONSOLE' define an array of 10 Istrings of 20 chars each ' defined as names[ number_of_strings, chars_per_string ] def names[10,20]:ISTRING ' assigned as names[ first_char, index_of_strings ] names[0,0] = "John Smith" names[0,1] = "Sam Stone"' calling ... c$ = names[0,0]d$ = names[0,1]print c$print d$ print:print "Press Any Key"DO:UNTIL INKEY$ <> ""CLOSECONSOLEEND
To link to us use this code/button on your site