Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEM values at designtime
Message
From
10/10/2004 06:28:13
 
 
To
09/10/2004 16:52:45
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950143
Message ID:
00950238
Views:
14
Hi Alan,

>That's the idea, except ResetToDefault() returns the original VFP default value, not necessary the value set in the property sheet at runtime. PEMSTATUS(object,property,0) does the same thing.

I don't follow your description [in my terms the "property sheet" is the properties page set at design time],
but to show that resetToDefault takes the last set value in the inheritance hierarchy and NOT the vfp default:
LOCAL loText, lcStr
loText = createobject("TextBox")
lcStr = TRANSFORM(loText.visible)
loText = createobject("cTxtBoxVisi")
lcStr = lcStr + TRANSFORM(loText.visible)
loText = createobject("cTxtBoxInVisi")
lcStr = lcStr + TRANSFORM(loText.visible)
loText.visible = .t.
lcStr = lcStr + TRANSFORM(loText.visible)
loText.ResetToDefault("Visible")
lcStr = lcStr + TRANSFORM(loText.visible)
WAIT WINDOW lcStr

DEFINE CLASS cTxtBoxInVisi as TextBox
	visible = .f.
enddefine

DEFINE CLASS cTxtBoxVisi as TextBox
enddefine
Where are we miscommunicating ?

rgds

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform