Hello,

I have a set of rules numbered 1 - 10 (e.g. rule_PriceFrame1,
rule_PriceFrame2, etc.) that correspond to 10 frames that are named
similarly (PriceFrame1, PriceFrame2, etc.). I would like to be able to
consolidate those 10 rules down into just one to make it easier to manage.
Is there a way that I can have the rule determine what frame I am
currently in, grab the digit from the frame name, and then apply that
number to the rest of the rule?

Basically something along the lines of this (some parts obviously not in
real Javascript syntax):

- FrameName = GetName(CurrentFrame)  // e.g. FrameName = PriceFrame5
- Num = Right(FrameName, 1)    //  now Num = 5
- Price = Field("Price") + Num   // e.g. now Price = PriceFrame5
- return Resource(Price)        // e.g. returns Resource(PriceFrame5), due
to being able to determine what frame we were in with "FrameName".

So is there a way to actually figure out the frame we're in? Right now,
like I mentioned, I have 10 seperate rules doing this, and since I know
which frame I'm in because I'm forcing the appropriately-numbered rule
into it, I'm able to just go ahead an define a variable to the right
number. Being able to grab this number from an appropriately-named FRAME
instead would be so much better.

Thanks for any help!

-jOE


--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED] 
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to