Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way around this modal form problem?
Message
De
13/03/2002 14:23:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00632093
Message ID:
00632302
Vues:
16
Steve,

Okay, so you could just load the data for the next record, and if the form is going to stay the same, simply refresh() the form.

The pageframe idea may work great for you. Set the tabs property of the pageframe to false. Put your navigation buttons below the page frame. Add a method to the form to set the proper pageframe:
* cmdNext pseudo code
navigate to next record in table
thisform.setPageFrame()

* form.setPageFrame() method
* you may have to do more than this when switching between pages
if table1.recordType = "Police"  && this is hypothetical
    thisform.pageframe1.activePage = 1
else
    thisform.pageframe1.activePage = 2
endif
I'm not a big fan of the navigating records one at a time, but I guess it has its place.

Good luck!


>
>Here's why it looks like I am running the same modal form back-to-back, which may or may not happen.
>
>Record 1 is Policeman 1 so record type is Police so I run Police form.
>Record 2 is Fireman 1 so record type is Fireman so I run Fireman form.
>Record 3 is Policeman 2 so record type is Police so I run Police form.
>Record 4 is Policeman 3 so record type is Police so I run Police form.
>
>Fireman form is a data entry form and so is Polie form, but they could have different design and layout and some different controls on the form.
>
>So when I navigate using First, Prev, Next, Last command buttons I DO FORM whatever record type I have and that's how I end up repeating the same form over and over sometimes, but not always.
>
>I will review your reply and see if I can apply it to this application. Thanks again.
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform