Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing A Property Fires the _Assign
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01234049
Message ID:
01234059
Views:
12
That's just wonderful. Is there a workaround, or do I need to write methods to assign values?



>It's known issue/bug with Top, Left, Height and Width properties.
>
>>Try this:
>>
>>
>>SET STEP ON
>>
>>oForm = CREATEOBJECT("myForm")
>>oForm.Show()
>>
>>DEFINE CLASS MyForm AS Form
>>
>>    PROCEDURE Show
>>	
>>        IF This.Height = 50
>>        ENDIF
>>	
>>    ENDPROC
>>
>>    PROCEDURE Height_Assign
>>        LPARAMETERS nHeight AS Integer
>>        WAIT WINDOW "Height_Assign called" NOWAIT
>>    ENDPROC
>>
>>ENDDEFINE
>>
>>
>>When the IF This.Height = 50 line is fired, the _Assign code runs. nHeight in the _Assign
>>is 250.
>>
>>What gives?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform