Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Here we go LOOP-ty LOOP... Here we go LOOP-ty die.
Message
De
14/04/1999 01:37:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00207863
Message ID:
00208096
Vues:
23
>I have the following loop in the Init of a Form:
>SELECT myfile
>GO TOP
>DO WHILE NOT EOF()
>
> this...
> and...
> that...
>
> SKIP
>ENDDO
>
>I loop until EOF, but then I want to go back to the top of the file and start the loop all over again. What's the best way to do that?
>
>I might also want to add a command button I can press to bail me out of the loop while stuck in the loop. What might that command button look like code-wise?
>
>I am sure I could figure it out, but you people have the coolest solutions to the hottest problems. Here we go loop-ty loop, here we go loop-ty die.
do while !chrsaw()
go top
scan while !chrsaw()
...
endscan
enddo
Of course this wouldn't prevent lengthy process between scan..endscan but seems better than poking a "on key" there.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform