control scructure repeat and next line

hershrev hershbp at realtorsgroup.us
Tue Feb 17 18:41:26 EST 2004


This is the recipe I'm using. the field is "list behavior" and lock  
text is unchecked.
the problem is that it stays on the same line it doesn't move on to the  
next line and so on.
global myDbid,myLine,thisLine,mySql
on mouseUp
   put  
revOpenDatabase("PostgreSQL","127.0.0.1","test",postgres,myPassword)into 
  myDbid
   repeat for each line myL in field "field 1"
     put  the selectedText of field "field 1"  into mySql
     put revdb_execute(myDbid,mySql) after field "field 2"-- to see what  
is going on
     put the selectedLine of field "field 1" into field "field 3"-- to  
see what is going on
     wait for 1 second
     if the mouse is down then exit repeat
     end repeat
end mouseUp
Thanks again, hershrev
On Tuesday, February 17, 2004, at 02:41 PM, Klaus Major wrote:

> Hi Dar,
>
>> On Tuesday, February 17, 2004, at 12:32 PM, hershrev wrote:
>>
>>>> The Revolution style is to put item and line delimiters between  
>>>> datums,
>>>> but it will also accommodate putting them after datums.  This is  
>>>> important
>>>> in representing empty datums.  If datums are never empty, then  
>>>> putting
>>>> delimiters between is fine.  I mention this, in case you are  
>>>> surprised about
>>>> how many lines are processed in such a loop.
>>> Sorry to say , but I don't know what datums are.
>>
>> Sorry.
>>
>> I mean pieces of information.  I tried to use this for a more general  
>> term for
>> lines and items.  Lines use a "line end" or "new line" character as a  
>> delimiter
>> (often called 'return' in Revolution).  Item typically use a comma as  
>> a delimiter.
>>
>> Since you are working with lines, I should have stuck with "lines".   
>> There is no
>> Revolution jargon called datum, as far as I know; this is all my  
>> fault.
>
> I was also a bit puzzled, since "datum" is the german word for "date"  
> :-)
>
>> Dar Scott
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> www.major-k.de
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list