Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if record already exists
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01173340
Message ID:
01173373
Views:
6
>how to check if record is already exist.in numarci and character

Do you have an Index on each field?

you may want to do
local lcDeleted
lcDeleted = set('deleted')
set deleted off
if seek(MyValue, 'MyTable','MyField')
  if deleted()
     =messagebox("Record exists and it was deleted")
  else
   =messagebox("Record exists")
  endif
endif
set deleted &lcDeleted
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