I may not totally understand what you are trying to
do but it sounds like you are looking for a repeat
structure that will change fTime to 1,2,3 etc.

repeat with fTime = 1 to number of lines in fld whatever
put item 5 of line fTime into whereyouwant
end repeat

A repeat structure similar to the above would repeat
for 10 time if the field had 10 lines and then it would
automatically add 1 to fTime on each repeat & quit
after it executed the 10th time.

If it does not work properly I may have written it a
little wrong because I am use to hypercard but just
ask if it doesn't.

-=>JB<=-



On Mar 8, 2008, at 5:52 AM, Jim Hamlyn wrote:

Thanks for the replies so far – wow!

Ok it looks like I need to be a little more specific.

I’m making a meeting scheduler. The idea is to have a field into which I can paste return separated list of names. I have a field with a start time and a field with a meeting length “Add”. At the moment I’m doing it the long way
round:

on mouseUp
  put fld "StartTime" into tTime1
  convert tTime1 to dateItems
  add fld "Add" to item 5 of tTime1
  put tTime1 into tTime2
  add fld "Add" to item 5 of tTime2
  put tTime2 into tTime3
  add fld "Add" to item 5 of tTime3
  convert tTime1 to time
  put tTime & ":" & Tab before line 1 of fld "myField"
etc

Jim H


From: -= JB =- <[EMAIL PROTECTED]>
Reply-To: How to use Revolution <[email protected]>
Date: Sat, 8 Mar 2008 05:39:20 -0800
To: How to use Revolution <[email protected]>
Subject: Re: Repeat variable name changing

You could always create a new variable and then put the
contents of the old variable into the new one then delete
the old one.

But if you explained what you are trying to accomplish
someone on the list might provide a way you haven't
thought of yet.

-=>JB<=-



On Mar 8, 2008, at 5:27 AM, Jim Hamlyn wrote:


Hi Folks,

Sorry for the basic question – I just can’t seem to find a solution
in the
documentation. I’m trying to change the name of a variable on the
fly during
a repeat loop eg:

 repeat with tCount = 1 to the number of lines in fld "myField"
Here I’d like myVariable1 to increment/iterate the last character
(number)
of its name for each loop of the repeat

How is this done?

Many Thanks in advance

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


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


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


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

Reply via email to