Re: Problems using Send and Functions with 2 parameters

2006-08-09 Thread Dar Scott
On Aug 9, 2006, at 3:19 PM, Chipp Walters wrote: I didn't see where Ian was trying to return an array. And I'm sorry if I missed your first iteration. Oh, no, no. That was just a general comment I threw in just to show off, I mean, to be helpful and to warn of possible problems. Dar _

Re: Problems using Send and Functions with 2 parameters

2006-08-09 Thread Chipp Walters
Sorry, I didn't see where Ian was trying to return an array. And I'm sorry if I missed your first iteration. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subs

Re: Problems using Send and Functions with 2 parameters

2006-08-09 Thread Dar Scott
On Aug 9, 2006, at 1:48 PM, Chipp Walters wrote: I'd thought I'd reiterate the obvious. From the Docs: get value("myFunction()",card 1 of stack "My Stack") I thought I'd reiterate the less-than-obvious. This cannot return an array. (BZ 669) (What's crazy is that if you leave out the

Re: Problems using Send and Functions with 2 parameters

2006-08-09 Thread Chipp Walters
Hmmm, Since Shao's mention of the value function received no response, I'd thought I'd reiterate the obvious. From the Docs: How do I call a custom function that's not in the message path? You use the value function to call a function that's in the script of an object that isn't in the message

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Ian McKnight
On 09/08/06, Jim Ault <[EMAIL PROTECTED]> wrote: Why not do the following? insert the script of group analogClock into back Now all the scripts are in the message path and you don't need 'send' or use value, etc. Ah! I have known about backscripts and frontscripts for some time but never rea

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Jim Ault
On 8/8/06 1:58 PM, "Ian McKnight" <[EMAIL PROTECTED]> wrote: > Thanks Dar - I revisited your suggestion for a custom command and made > the handler work. > > A function seemed more appropriate to what I wanted to do as it > returned a value (thats why I had thought of using the 'get' command > to

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Dar Scott
On Aug 8, 2006, at 1:01 PM, Sean Shao wrote: put value("randomTime(5,2)", group "analogClock") There are some limitations to value() when working with sending arrays and the result of arithmetic. At times arrays are simply empty values and numbers have numberFormat applies with possible

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Dar Scott
On Aug 8, 2006, at 2:58 PM, Ian McKnight wrote: Thanks Dar - I revisited your suggestion for a custom command and made the handler work. A function seemed more appropriate to what I wanted to do as it returned a value (thats why I had thought of using the 'get' command to get access to the RES

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Ian McKnight
Hi Thanks Dar - I revisited your suggestion for a custom command and made the handler work. A function seemed more appropriate to what I wanted to do as it returned a value (thats why I had thought of using the 'get' command to get access to the RESULT and it works) but it's as if the send comm

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Dar Scott
On Aug 8, 2006, at 8:24 AM, Ian McKnight wrote: get randomTime(5,2) put the result send "get randomTime(5,2)" to group "analogClock" put the result It seems Rev has a limited compiler when it comes to 'send'. I'm not even sure what the meaning of 'get' would be in the above situation.

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Sean Shao
Take a look at the "value" function, it's like "send" for functions :-) put value("randomTime(5,2)", group "analogClock") _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.c

Re: Problems using Send and Functions with 2 parameters

2006-08-08 Thread Jim Ault
On 8/8/06 7:24 AM, "Ian McKnight" <[EMAIL PROTECTED]> wrote: > Can anyone shed some light on this please? > I could keep the function and calling handler together but would > prefer to have all important scripts in one place. why are you sending "get randomTim(5,2)" instead of "randomTime(5,2)"

Problems using Send and Functions with 2 parameters

2006-08-08 Thread Ian McKnight
Hi I have a function 'randonTime' which accepts two parameters, the first specifies whether a time should be in 5, 10 15 etc minute intervals, the second specifies 12 or 24 hour clock and returns a valid time in the form hh:mm. With the function handler in the same script as the calling handler