V4REV -- does Livecode has do - while loop ???

Bernard Devlin bdrunrev at gmail.com
Sat Dec 17 16:28:35 CST 2011


I think this does what you want.  But the idea of starting a loop with
"repeat forever" may give you hives :)

function getListFromValCursor2 pValCursorPointer
   get VCursor_FirstRecord( pValCursorPointer )
   repeat forever
      -- code snipped
      if VCursor_NextRecord( pValCursorPointer )  is false then exit repeat
   end repeat
   return tActionsPerformedWithCursor
end getListFromValCursor2

Bernard

On Sat, Dec 17, 2011 at 5:25 PM, Ruslan Zasukhin
<ruslan_zasukhin at valentina-db.com> wrote:
> This is not what we need.
>
> FirstRecord() move us to the first record.
> We need now work with first record
> And do NEXT   at the end of loop.
>
> Look my example code below please.


More information about the Valentina mailing list