|
Post by kaalidor on Feb 15, 2008 17:31:46 GMT -5
hi,
i've got a problem to pass more than 5 arguments to my sub ! is there a limitation ?
call sub1 "Baron Dupeyroux", "2004", "Bordeaux", "Rouge", "bdupbr05mini.jpg", "hd1" wait
sub sub1 nom$, mill$, app$, color$, pic$, id$ end sub
regards, pascal
|
|
|
Post by turbov21 on Feb 15, 2008 18:48:27 GMT -5
i've got a problem to pass more than 5 arguments to my sub ! is there a limitation ? Five seems to be the limit. You might try something like this: run "StrFunc", #sf
Call words1 "1,2,3,4,5,6", ","
wait
sub words1 txt$, splt$ cnt = 0
while cnt <= #sf CountInStr(splt$, txt$) cnt = cnt + 1 print #sf SplitStr$(splt$, txt$, cnt) wend end sub StrFunc is free for anyone who wants it.
|
|
|
Post by kaalidor on Feb 15, 2008 19:01:07 GMT -5
Thank's turbov21 i've fixed this (bug) using global variables ....
Carl, can you push up the limit ?
@++
|
|
|
Post by carlgundel on Feb 22, 2008 16:56:53 GMT -5
hi, i've got a problem to pass more than 5 arguments to my sub ! is there a limitation ? Okay, I've got a fix for this. Now there is effectively no limit on the number of arguments. -Carl
|
|
|
Post by kaalidor on Feb 22, 2008 16:59:43 GMT -5
Thank's ... ;D
|
|