That should be the same:
Code: Select all
Form_7:LabelY01:Value("")
SetProperty ( "Form_7", "LabelY01", "Value", "" )
And after that error, the program must be closed via task manager.
Some days ago it workes quit well.
Moderator: Rathinagiri
Code: Select all
Form_7:LabelY01:Value("")
SetProperty ( "Form_7", "LabelY01", "Value", "" )
I introduced some changes on september 19, so you should be more precise on "some days ago"...Ricci wrote:Some days ago it workes quit well.
Code: Select all
Form_7:LabelY01:Value("")
Code: Select all
SetProperty ( "Form_7", "LabelY01", "Value", "" )
Code: Select all
FUNCTION SetProperty( cWindow , cControl , cProperty , xValue1, xValue2 )
IF pcount() == 4
&cWindow:&cControl:&cProperty := xValue1
RETURN xValue1
Code: Select all
FUNCTION SetProperty( cWindow , cControl , cProperty , xValue1, xValue2 )
IF pcount() == 4
HMGAPP():&cWindow:&cControl:&cProperty := xValue1 // HERE IS THE CHANGE
RETURN xValue1
With this change it work well.mrduck wrote: The error that variable Form_7 doesn't exists let me think that Form_7 is LOCAL... visible to the OOP syntax, not visible to SetProperty....
Please try this:and report.Code: Select all
FUNCTION SetProperty( cWindow , cControl , cProperty , xValue1, xValue2 ) IF pcount() == 4 HMGAPP():&cWindow:&cControl:&cProperty := xValue1 // HERE IS THE CHANGE RETURN xValue1