Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent the addition of a blank record
Message
De
21/04/2004 10:50:10
 
 
À
20/04/2004 07:35:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00896266
Message ID:
00896900
Vues:
22
Thanks to all who replied. I was able to find the append and instert statements and to deterimine that setting the buffering mode to optomistic in all the tables fixed the problem. Blank records are no longer added.

>Hi Claude.
>
>I am trying to modify an existing form so that blank records are not added.
>
>You mean so that blank records are not saved ? If so, code like this in called from your save method:
>
>
>lcFldState = GETFLDSTATE( -1, 'MyAlias' )
>IF ! ISNULL( lcFldState )
>IF EMPTY( CHRTRAN( NVL( lcFldState, '' ), '3', '' ) )
>  *** This is an empty record
>  TABLEREVERT( .F., 'MyAlias' )
>ENDIF
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform