how can i change "Caption" and "ACTION" Codeblock of a Button in a FMG after Create

Code: Select all
DEFINE BUTTON Button_2
ROW 550
COL 20
WIDTH 58
HEIGHT 28
ACTION ShowDir("INI")
CAPTION "Click.INI"
FONTNAME "Arial"
FONTSIZE 9
TOOLTIP ""
FONTBOLD .F.
FONTITALIC .F.
FONTUNDERLINE .F.
FONTSTRIKEOUT .F.
ONGOTFOCUS Nil
ONLOSTFOCUS Nil
HELPID Nil
FLAT .F.
TABSTOP .T.
VISIBLE .T.
TRANSPARENT .F.
MULTILINE .F.
PICTURE Nil
PICTALIGNMENT TOP
END BUTTON
Code: Select all
SetProperty( "ClickForm", "Button_2","Caption","hello" )
SetProperty( "ClickForm", "Button_2","Action",MsgInfo("world") )

in c:\hmg.3.4.4\SOURCE\h_button.prg i say
Code: Select all
Function _DefineButton ( ControlName, ParentForm, x, y, Caption, ProcedureName, ;
_HMG_SYSDATA [ 6 ] [k] := ProcedureName

---
in hb_Debugger i found some Code to show Method/Var but it need a Object
Code: Select all
oObj := SetProperty( "ClickForm", "Button_2")

who can help please