Page 1 of 1

TGet questions

PostPosted: Tue Feb 20, 2007 5:33 pm
by Gilbert
Hi All,

Why in TGET method cText() is not VarPut() and Value() is not VarGet()

What does SETGET does in method cText(). Syntax look like this
METHOD cText(cText) SETGET

Why is SETGET assigned of :_SETGET_ in Object.ch

Regards,

GIlbert

PostPosted: Tue Feb 20, 2007 6:38 pm
by Antonio Linares
Gilbert,

A FW TGet object is a Windows GUI control that contains a Clipper Get object. Method cText() retrieves the text that the Windows GUI control has, which it can be different from what the Clipper Get object contains.

Methods SetGet automatically creates two methods:

Method cText() and Method _cText(), so cText() can be managed as a DATA (retreived and assigned) though they are methods and not a real DATA.

Objects.ch is quite complex and difficult to follow.

PostPosted: Tue Feb 20, 2007 7:04 pm
by Gilbert
Hi Antonio,

Thanks for the information.

But could I change cText() METHOD to VarGet() and Value() METHOD to VarPut().

Regards,

Gilbert