Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need better launch method.
Message
 
À
19/06/1998 01:35:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00109795
Message ID:
00109797
Vues:
31
>On my login screen I have a command button (cmdIntake) with a click event set as follows:
>
>Do IntakeForm
>IntakeForm.Visible = .F.
>Do FindForm
>
>The FindForm is a modal form used to search for (and display if found)names and dob of existing records. The FindForm has two cmdButtons(cmdNewChild/cmdEditCurrent) that are enabled if a match is found. The user can either insert a new child record of the matched record or edit the matched record. If the name entered in the txtNameLast field of the FindForm has no match then only one cmdButton appears (cmdNewParent)and when clicked, a new parent is inserted in the IntakeForm: the FindForm.txtNameLast.Value is inserted in the IntakeForm.txtLastName field. All three of these cmdButtons contain the click event method:
>
>IntakeForm.Visible = .T.
>ThisForm.Release()
>
>This design works as intended, however, the banner of the IntakeForm flashes momentarily on the login screen before the FindForm launches, and it takes a while for the FindForm to launch (it has to wait for the IntakeForm to launch even though the IntakeForm is not visible).


What if Intakeform visible property be set to .F. at development time or you may utilize DO FORM IntakeForm NOSHOW.

>
>I would prefer to launch the IntakeForm through the click event (or possibly through the unload or destroy events) of the FindForm; and only have the FindForm launched from the login screen. This would eliminate the flash of the IntakeForm and speed up the launch of the FindForm.
>
>My problem is this: while I can launch the IntakeForm from the FindForm click event I haven't been able to get the IntakeForm to use the data from the FindForm.txtNameLast field to correctly position the record pointer or insert the new record in the IntakeForm unless I have already launched the IntakeForm as described above. I have tried many permutations using the unload, destroy, and click events and have been unsuccessful. I know there must be a way to make this work.
>
>TIA for any help. --lincoln
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform