OK...
So I realize vp_Field=<TBL>.FIELD.GET(vc_FieldName) returns a pointer reference to the table's field and places it in the pointer variable vp_Field.
But then, how do you use this pointer to accomplish the following three (3) things?:
Even if my assumptions above are correct: I am still a bit confused as to when you need to append the pointer with .this
(UPDATE: I think I got it now.... See Note below)
So I realize vp_Field=<TBL>.FIELD.GET(vc_FieldName) returns a pointer reference to the table's field and places it in the pointer variable vp_Field.
But then, how do you use this pointer to accomplish the following three (3) things?:
- To assign the field name to a variable of type C? ----> Is this correct?: vc_Variable = vp_FieldName
Wrong.... USE: vc_Variable = vp_Field.NAME_GET()??? - To assign the field's value to a variable of type C? ----> Is this correct?: vc_Variable = vp_Field.this
Wrong.... USE: vc_Variable = vp_Field.VALUE_GET()??? - And last, how do you construct the line of X-basic (using this pointer) to assign a different record value to the table field itself?
--> Is this correct?: vp_Field.VALUE_PUT("New Text") ~ (I know additional code is before and after this line of code is required to put the table into change mode.)
Correct: No change necessary........
Even if my assumptions above are correct: I am still a bit confused as to when you need to append the pointer with .this
(UPDATE: I think I got it now.... See Note below)
Note: While THIS can be used to make reference to an existing object (ie: this.hide() when it is placed on a button's on_push event). In contrast, appending an object with .THIS returns a pointer to the object (ie. vp_Object.hide() would hide the object after the code vp_Object = :Inventory:button1.this ~ There is a difference, see:http://wiki.alphasoftware.com/THIS for more info. (added for my own reference)
Comment