Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save command
Message
 
 
To
06/03/2006 23:09:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01101936
Message ID:
01101941
Views:
13
You can use AutoInc field for your ShipNo field. It should not be created by a user.

>hi all,
>
>any idea ,help
>
>i try to run save command, i have error message Uniqueness of index "shipno" is violated
>
>Append From Dbf('temp')
>
>
>this is the code
>
>cAlias = Thisform.DataEnvironment.InitialSelectedAlias
>Select (cAlias)
>IF act_flag="1"
>     GO BOTTOM
>      LOCATE FOR UPPER(shipno)=ALLTRIM(thisform.text1.Value) AND  act_flag="1"
>  IF!FOUND()
>     Append From Dbf('temp')
>     replace transtype with "RE"
>     replace SHIPNO with ALLTRIM(thisform.text1.value)
>
>    With thisform.grid1
>          .recordsource = ''
>            Select temp
>          *  Zap  &&& another error ,many users can use this form
>          *delete all
>         .recordsource = 'temp'
>          thisform.text1.SetFocus
>         thisform.refresh
>   endwith
>**********************
>            with thisform.Grid1
>              .Recordsource = .Recordsource
>            endwith
>ENDIF
>endif
>
>
>
>thanks
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform