Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is wrong with my code?
Message
De
22/09/2003 13:39:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/09/2003 13:25:35
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00831182
Message ID:
00831192
Vues:
16
>I have a form that displays company address info in text boxes then processes that company does in a grid. I have add/edit buttons for each part of the form (address and process info). Everything seems to be working correctly until I need to verify the process that is being added does not already exist for that company. I am just not sure what is wrong with my code. No matter what the process is added and no error message was given. I am using VFP 7. Kudus to whoever helps me with this dilemma.
>
>IF EMPTY( l_prcode )
> MESSAGEBOX( 'Product Code is required.', 48, 'Please fix your entry' )
> RETURN .F.
>ELSE
> SEEK l_cocode + l_prcode
> IF FOUND()
> MESSAGEBOX( 'Product Code is required.', 48, 'Product does not exist' )
> RETURN .F.
> ELSE
> MESSAGEBOX( 'Listing has been added.' )
> RETURN .T.
> ENDIF
>ENDIF

Julie,
What are l_prcode, l_cocode etc ? Memvar or fieldname or both ?
What is the selected table alias when you call this ?
Buffering - row,table or none ?
Where/When this is called - before/after tableupdate, tableupdate() call syntax, moved off the row ? etc...
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform