Your original is the same as:
put field «test» into tParam
answer testFunction(tParam)
So yes, whatever is placed as a parameter to a function is not expanded. Think
about doing the same thing with an arbitrary block of text in the field and
what would be the expected result.
Brian Milby
br..
> 29. nov. 2022 kl. 12:08 skrev Alex Tweedly via use-livecode
> :
>
> Yes, your description is correct (except for saying the behavior is
> "puzzling" :-)
>
> The first case you are passing a single parameter (which happens to have
> commas in its current content). You could have said "
Yes, your description is correct (except for saying the behavior is
"puzzling" :-)
The first case you are passing a single parameter (which happens to have
commas in its current content). You could have said " paramcount()
returns 1 as expected".
The second case you pass 5 values.
And
I have come across a puzzling behavior when trying to use the content of a
field as parametres in a function, and I am trying to understand why.
I put the following in a field called «test»: 1,2,3,4,5
When I then call the function like this:
answer testFunction(field «test»), t