Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Call-a-function/Yabasic/call-a-function.basic
Normal file
18
Task/Call-a-function/Yabasic/call-a-function.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
sub test(a, b, c) : print a, b, c : end sub
|
||||
|
||||
test(1, 2, 3) // show 1 2 3
|
||||
test(1, 2) // show 1 2 0
|
||||
|
||||
execute("test", 1, 2, 3) // show 1 2 3
|
||||
|
||||
sub test$(a$) // show all members of a "list"
|
||||
local n, i, t$(1)
|
||||
|
||||
n = token(a$, t$(), ", ")
|
||||
for i = 1 to n
|
||||
print t$(i), " ";
|
||||
next
|
||||
end sub
|
||||
|
||||
test$("1, 2, 3, 4, text, 6, 7, 8, \"include text\"")
|
||||
print
|
||||
Loading…
Add table
Add a link
Reference in a new issue