Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search Form
Message
De
18/04/2000 01:03:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Search Form
Divers
Thread ID:
00360731
Message ID:
00360731
Vues:
62
> Help
> I've created an insurance tracking applacation that tracks Client and > payment info. The app is driven by a master menu form, that links to
> minor menu forms. One of the options I'm trying to create is to give
> the user the abliity to enter data in a form the translate this data into a memory var to start a Query. I created a form with one text box and one command buttom on it. In the click event of the command button I put the folling code.

> LOCAL cGroupCode
> cGroupCode = THISFORM.text1.VALUE
> SELECT * FROM client ;
> WHERE group_code = cGroupCode ;
> INTO CURSOR Mycursor
> REPORT FORM POLICY.FRX FOR group_code = cGroupCode PREVIEW
> IF _TALLY != 0
> wait window ' FOUND DATA, WILL NOW PRINT '
> ELSE
> wait window ' NO DATA MATCH FOUND, TRY AGAIN '
> ENDIF

> RETURN

> When I run the form as a stand alone within VFP it works fine. When > I try to link it to my calling (master ) form, it comes on for a >second then dissapears. This happend to me when I first started using > VFP 6.0, and it turned out to be because I didn't have a READ EVENT IN MY START UP CODE. Can I get a hand, I'm thinking I should become a checken rancher.
Thanks John
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform