Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing A Property Fires the _Assign
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01234049
Message ID:
01234059
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform