Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do Form within a loop?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Do Form within a loop?
Miscellaneous
Thread ID:
00405828
Message ID:
00405828
Views:
73
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
Next
Reply
Map
View

Click here to load this message in the networking platform