Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looping Question
Message
De
22/04/1999 20:59:43
 
 
À
22/04/1999 19:06:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00211351
Message ID:
00211372
Vues:
27
>Greetings,
>
>Will someone please help me? I can't seem to get myself out of this loop.
>
>DO WHILE RECCOUNT('MyTable') < 1
>=MESSAGEBOX("Must enter records, etc.....")
>DO FORM DataEntry.scx
>ENDDO
>
>What I want the above section of codes to do is to check if there are any records in MyTable. If not, take me to the DateEntry form to enter some data. However, it seems to loop and loop and loop without stopping at the form and allowing me a chance to do data entry. I meant the form is displayed and all, but it keeps on going back to the loop.
>
>I thought that if there's a DO FORM within the loop, it should execute the FORM. Once the form is completed, only then does it return back to the loop and execute any commands thereafter. Please let me know if I misinterpreted something.
>

If the form isn't modal, it doesn't stop and wait for the form to terminate.

>TIA,
>Carie
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform