Repeat variable name changing

Jim Hamlyn jim at jimhamlyn.co.uk
Sat Mar 8 08:52:38 EST 2008


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 =- <sundown at pacifier.com>
Reply-To: How to use Revolution <use-revolution at lists.runrev.com>
Date: Sat, 8 Mar 2008 05:39:20 -0800
To: How to use Revolution <use-revolution at lists.runrev.com>
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
> use-revolution at 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the Use-livecode mailing list