Has anyone got any code for cleaning duplicate records out of a table
(and willing to share!!)?
Save me re-inventing the wheel.
I have just finished a program to help with our stocktake next week. In
a procedural language like foxplus it would be really easy to write, but
as I am trying to learn VFP.....
I have to collect the following data:
Sheet_No
Order_No built-up from prefix, order, version, item
customer
Location
Quantity
Last_Operation
I have set validation code and tab orders and added three buttons to the
form:
report+maint no tab order
quit no tab order
save last in tab order
The thing is - if i leave my the validation code for the sheet_no text
box the buttons on the form are not accessible, so the reports and
maintenance button is not available until all of the textboxs are
validated. But if I comment it out then the buttons become available.
What am I doing wrong?
E.g.
thisform.prefix.valid code:
Tprefix=ALLTRIM(thisform.prefix.Value)
DO case
CASE Tprefix="M"
RETURN 1
CASE Tprefix="W"
RETURN 1
CASE Tprefix="S"
RETURN 1
OTHERWISE
RETURN 0
ENDCASE
Buttons are un-clickable at this point.
THX
Steve