Joe,

This will add the X in one shot before each field for you.

on mouseUp pMouseBtnNo
    repeat with x = 1 to the number of fields of card 1
        set the  name of fld x to ( "X" & x)
    end repeat
end mouseUp


It might be easier to think of 1 and "1" as reserved words in this instance.

HTHs

Tom McGrath III

On Oct 7, 2008, at 8:57 PM, Joe Lewis Wilkins wrote:

Hi Mark,

And thanks. I kind of suspected that was probably the case, but we all like to save keystrokes when we can; particularly when there are a lot of them. Incidentally, the pointer tooltips plug-in 2.0 that Chipp recently released provides the field names as I had designed them "1", "2", etc. and no where does anything lead one to suspect that Rev is parsing these names as "layer" numbers. Though I can, obviously, accept things as they are, in my opinion Rev is dead wrong. Must be some backward compatibility issue with MetaCard; but not liking the prospect of changing the names for a whole bunch of fields; guess I'll just add an "x" in front of each one.

Joe Wilkins

On Oct 7, 2008, at 5:29 PM, Mark Schonewille wrote:

Hi Joe,

Are you using "1", "2" etc. as field names? That's wrong. Revolution parses these names as numbers, regardless of the quotes. You must add some characters to make sure that Revolution parses the name as a string, e.g. "Val 1", "Val 2", etc.

You can refer to these fields in a repeat loop or other script like this:

repeat with x = 3 to 7
add fld ("Val" && x) to myTotal
end repeat
-- do something with myTotal here

I think that saying "I shouldn't have to" is a little inappropriate in this particular case, even though it might apply to many other workarounds.

--
Best regards,

Mark Schonewille

--
Please avoid sending me Word or PowerPoint attachments.
See   <http://www.gnu.org/philosophy/no-word-attachments.html>
----------------------------------------
Joe Lewis Wilkins
[EMAIL PROTECTED]





_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to