Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do Form within a loop?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Do Form within a loop?
Divers
Thread ID:
00405828
Message ID:
00405828
Vues:
75
I need something like the following to work.

The obvious problem is that the GetCustomer() at the end of the do..enddo fires immediately when I don't want it to run until I release the form.

Is there any way to handle this without making the forms modal? I need the end user to be able to pull up other forms and access the menu etc when running this form.
nAcct = GetCustomer()
do while !isnull(nAcct)
   cType = GetFormType()
   do case
      case cType == "A"
         do form frmA with nAcct
      case cType == "B"
         do form frmB with nAcct
      case cType == "C"
         do form frmC with nAcct
   endcase
   nAcct = GetCustomer()
enddo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform