PROTECTED]
Subject: Re: passing parameters in a send call.
...
I turn the array into a list with lines like this. The secret is to
encode the data to fit on one line per record, using tab as a delim.
keyName tab data
URLEncoded data looks like this on a line:
--put+the+scriptsOfFocus+of+this+stack
then return false
set the caseSensitive to pCaseSensitive is true
repeat for each line tk in tKeys
if a[tk] is not b[tk] then return false
end repeat
return true
end imedArray_equal
Date: Mon, 22 May 2006 20:50:13 -0700
From: Stephen Barncard [EMAIL PROTECTED]
Subject: Re: passing parameters
On May 23, 2006, at 9:28 AM, iMed Edition (AF) wrote:
Who can understand why the test1() function will return TRUE and
test2() FALSE with the script below?
Yup. Looks like a bug and a serious one. Unless I'm not seeing
something.
I checked this out on OS X 10.4.6 with 2.7.1 within
On Sun, 21 May 2006 15:28:28 -0600, Dar Scott [EMAIL PROTECTED] wrote
On May 21, 2006, at 3:01 PM, Sarah Reichelt wrote:
I always use something like:
send myAdd pArrayA to stack someStack
so that the variable is evaluated before the send.
Hi, Sarah!
I'll pick on two aspects of that.
Well, Graham, you posed the question:
Isn't it true that
send myCmd x,y to...
just sends that exact string (minus the quotes) to the target: if
so, the target environment can only resolve x and y if it's in the
same name space as the script that did the sending (I mean if it is
On May 22, 2006, at 9:00 AM, Graham Samuel wrote:
Isn't it true that
send myCmd x,y to...
just sends that exact string (minus the quotes) to the target: if
so, the target environment can only resolve x and y if it's in the
same name space as the script that did the sending (I mean
My problem with all those approaches is that I need to pass an array.
I can't combine the array because the array holds all kinds of HTTP
header data and MIME data from the body. Since the body of an HTTP
request might hold binary data, I can't afford to combine the data
because the
On May 22, 2006, at 10:59 AM, Andre Garzia wrote:
I could use a global, but, we can't nest arrays in Rev and I am
working with multiple HTTP connections. So what I am doing now is
holding everything in a global array. Each key has the format of a
uniqueID keyName, this way I can fetch the
On May 22, 2006, at 11:59 AM, Andre Garzia wrote:
I could use a box-like approach as used by Dar Scott to generate
strings that could hold multiple values. but this would add new API
to my supposed-to-be easy module.
The boxes module does handle arrays with arbitrary values in both the
Andre - the way I 'fake' an array when I have to pass it through,
say, dialogData, is this way.
I turn the array into a list with lines like this. The secret is to
encode the data to fit on one line per record, using tab as a delim.
keyName tab data
URLEncoded data looks like this on a
Hi Folks,
I am using a script code that is built in runtime and executed with a
do call. The code calls a send function. I know you can use send
with parameters like:
send myAdd 2, 2 to stack someStack
this works. but sending an array like
send myAdd pArrayA to stack someStack
causes
I am using a script code that is built in runtime and executed with a
do call. The code calls a send function. I know you can use send
with parameters like:
send myAdd 2, 2 to stack someStack
this works. but sending an array like
send myAdd pArrayA to stack someStack
causes the myAdd handler
On May 21, 2006, at 2:42 PM, Andre Garzia wrote:
I am using a script code that is built in runtime and executed with
a do call. The code calls a send function. I know you can use
send with parameters like:
send myAdd 2, 2 to stack someStack
this works. but sending an array like
send
On May 21, 2006, at 3:01 PM, Sarah Reichelt wrote:
I always use something like:
send myAdd pArrayA to stack someStack
so that the variable is evaluated before the send.
Hi, Sarah!
I'll pick on two aspects of that.
First of all, I haven't been convinced that there are any merits to
On May 21, 2006, at 3:17 PM, Dar Scott wrote:
If you have control of the stack, you can change it to take a
flattened stack.
Or better, pass the parameter through a global.
Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
Dar,
Thanks for pointing the bug number. I wish I could vote more than 5
votes on a given bug!!!
As a scheme programmer, sometimes, I wan my lists back...
PS: I might not have control of the stack I need to call, think I'll
use customProps to carry the array key/value pairs.
Cheers
Hi Andre,
There are two ways that I use regularly to solve this. You could
combine the parameter and split it in the function that is called.
You could also use the @ operator.
Best,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
Another way to pass the array is to
combine pArray using cr and comma --your choice of delim's
--now this variable is just a list
-- with the keys as the first item in each line
send myAdd pArrayA to stack someStack
then
on myAdd pArrayA
split pArray using cr and comma
-- now you
On 5/22/06, Dar Scott [EMAIL PROTECTED] wrote:
On May 21, 2006, at 3:01 PM, Sarah Reichelt wrote:
I always use something like:
send myAdd pArrayA to stack someStack
so that the variable is evaluated before the send.
Hi, Sarah!
I'll pick on two aspects of that.
First of all, I
19 matches
Mail list logo