Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optional parameters about the function
#4
Which code does not work? I tested this, it works as expected.

Code:
Copy      Help
str s ss sss
int i t
s="this is a test"
ss="for Win"
i=4
t=132
sub.TestForWin(s sss ss i t)
out sss
#sub TestForWin
function ~s1 ~&result [~s2] [ii] [tt]
result.format("%s %i %s %i" s1 ii s2 tt)
ret

The code without spaces between parameters is incorrect.


Messages In This Thread
Optional parameters about the function - by win - 04-27-2019, 04:56 AM
RE: Optional parameters about the function - by Gintaras - 04-27-2019, 01:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)