Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent the addition of a blank record
Message
From
21/04/2004 10:50:10
 
 
To
20/04/2004 07:35:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00896266
Message ID:
00896900
Views:
24
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
>
Previous
Reply
Map
View

Click here to load this message in the networking platform