Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

store deleted status to variable 1

Status
Not open for further replies.

monkey666

Programmer
Oct 18, 2002
34
EU
morning

Is there a way of storing the current DELETED status (ON/OFF) to a variable?

The code needs to SET DELETED ON but then return the DELETED status to what it was previously whether it was ON or OFF, so a simple SET DELETED OFF is not sufficient as this may not have been the previous DELETED state.

monkey



 

SET("DELETED")

seems to work Regards

Griff
Keep [Smile]ing
 
Hi Monkey,

This is easy. Just use SET("DELETED"), like so:

OldDeleted = SET("DELETED")
SET DELETED ON
....
do something
....
SET DELETED &OldDeleted

You can do the same sort of thing with nearly all the SET commands.

Mike Lewis
Edinburgh, Scotland
 
Funny though VFP 6 seems to have left the option out of the help though [smile]
Regards

Griff
Keep [Smile]ing
 
Merci Beaucoup

couldn't find it in VFP 7 help at all.

but typing 'SET(' in the command window brings up a whole list.

That is going to be useful in storing all the settings (CPDIALOG, EXACT etc) before I change them.

bye

monkey



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top