Page 1 of 1

Two or more parameters in the <Return>[SOLVED]

Posted: Thu Apr 03, 2014 9:29 am
by atout66
Hi to all,

I can't extract the items inside a return when I call a function. I have this kind of code:

Code: Select all

put testLeReturn() into tResult -- tResult has 2 or 3 items. For example tResult = TRUE,2,a string. The debugger is fine to watch that ;-)
   put item 1 of tResult into lItem1
put item 2 of tResult into lItem2
put item 3 of tResult into lItem3
   if lItem1 = TRUE then
      -- do something
   end if
The problem is that lItem1 = tResult . As said in the dictionnary, I should not need to set the itemDelimiter to comma in that case, right ?
So I wonder what's wrong with this script ? Any idea would be much appreciated :wink:

Re: Two or more parameters in the <Return>

Posted: Thu Apr 03, 2014 9:37 am
by Mark
Hi,

Can you post the testLeReturn() function?

Mark

Re: Two or more parameters in the <Return>

Posted: Thu Apr 03, 2014 10:11 am
by Klaus
And make sure you did not set another itemdelimiter in your (same) script before using "testLeReturn()"!

Re: Two or more parameters in the <Return> [SOLVED]

Posted: Thu Apr 03, 2014 10:25 am
by atout66
Hi Mark,

Oh please, forgive this topic, I'm blind sometimes :shock:
I didn't notice that earlier in my script calling the function, I had set the itemDelimiter to "." !!!
So for sure, the tResult couldn't be understood by LC, as long as I set back the itemDelimiter to comma :oops:

Re: Two or more parameters in the <Return>

Posted: Thu Apr 03, 2014 10:26 am
by atout66
Klaus got it while I was responding !

Thanks to all of you...