This is just a syntax problem, and I've been using Revolution long enough that this shouldn't be a problem, but I guess I use it sporadically rather than constantly, so I never get beyond these troubles. Anyhow...
I'm trying to pass parameters to a custom handler called iconFlasher. Here's the statement in which I call the handler:
iconFlasher(("space" & whichSpace), 12400+Spaces[whichSpace,1], 12000+Spaces[whichSpace,1], 500, 300, 1000, 3)
Here's the beginning of the custom handler showing the parameters I'm expecting it to receive:
on iconFlasher buttonToFlash, iconBright, iconRegular, intervalFirst, intervalOthers, intervalLast, flashCount
To help troubleshoot, I've put an "answer" statement at the beginning of the handler to see how these parameters are being loaded, and it seems that all the information I'm trying to send the handler is getting loaded into the FIRST parameter (buttonToFlash) only. Here's the answer statement:
answer "buttonToFlash=" & buttonToFlash && "iconBright=" & iconBright && "iconRegular=" & iconRegular && "intervalFirst=" & intervalFirst && "intervalOthers=" & intervalOthers && "intervalLast=" & intervalLast && "flashCount=" & flashCount
and here's the dialog that results:
buttonToFlash=space18,12409,12009,500,300,1000,3 iconBright= iconRegular= intervalFirst= intervalOthers= intervalLast= flashCount=
As you can see, only the first parameter is being loaded, and it's getting everything, which SHOULD be distributed among the other parameters. The statements ARE being evaluated as I intend, though. That is, buttonToFlash SHOULD be space18, and iconRegular SHOULD be 12409, etc.
What simple thing am I doing wrong? By the way, putting spaces or not putting spaces after the commas in the parameter lists doesn't have any effect. Thanks in advance.
Problem Passing Parameters: (Help) Pretty Please!?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 107
- Joined: Fri Nov 10, 2006 8:58 pm
- Contact:
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact: