Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CREATE CURSOR crsPersons (iID I AUTOINC, cLastname C(50), cFirstname C(50), dBirthdate D)
INDEX On cLastname+cFirstname+DTOS(dBirthdate) TAG xOrder
TRY
USE yourtable EXCLUSIVE
CATCH
? "Can't modify a table without exclusive access to it, sorry."
RETURN
ENDTRY
TRY
DELETE TAG fieldname
CATCH
* no such index, nothing to worry about
ENDTRY
TRY
ALTER TABLE yourtable DROP COLUMN fieldname
CATCH
? "couldn't drop the field because of some index tag, I think it's "+SYS(2018)+". It could be more index tags, but that's what I see right now."
ENDTRY
I have Free table with some fields not in Use from many years making table size heavier and heavier therefore i want to remove those unUsed Fields
LOCAL llError
ON ERROR llError = .T.
* Try
* one line of code
If llError
* catch block
Endif
llError = .F. && endtry
* next try block...