1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-09 21:00:17 +00:00
QB64-PE/tests/compile_tests/qb64pe/element_createElementString.bas

33 lines
659 B
QBasic
Raw Normal View History

Option _Explicit
DEFLNG A-Z
$Console:Only
Dim Debug As Long
Debug = -1
'$include:'../../../source/global/constants.bas'
'$include:'../../../source/utilities/type.bi'
sp = "@" ' Makes the output readable
Dim i As Long
PRINT "foobar element: " + createElementString$("foobar")
FOR i = 0 to 30
PRINT "foobar element"; i; ": " + createElementString$("foobar" + CHR$(i) + "baz")
NEXT
FOR i = 126 to 255
PRINT "foobar element"; i; ": " + createElementString$("foobar" + CHR$(i) + "baz")
NEXT
DIM s$
FOR i = 0 TO 255
s$ = s$ + CHR$(i)
NEXT
PRINT "all chars: " + createElementString$(s$)
System
'$include:'../../../source/utilities/elements.bas'