String-Value on Dynamic Queries Question

Hi All,

Can anyone please help me. I was wondering if it is possible to get more than the first 8 characters of the field when using :STRING-VALUE in a dynamic query?

I am using the below code:

hField = hBuffer:BUFFER-FIELD(fieldname).
hKeyFld = hBuffer:BUFFER-FIELD("KeyFields").

ASSIGN vKey = Tablename + "," + hKeyFld:STRING-VALUE.

chTreeView1:nodes:ADD(chMenuRoot:INDEX, 4, vKey, hField:STRING-VALUE(), 3, 3) .

I am using this to populate a microsoft TreeView OCX, v6.0, and I need the key for each Node to be unique. And so that I can send it back to a .p which displays the info for that record.

Thank you in advance to anyone can help me with this little dilemma. :cool:

ps. I am using Progress v 9.1B

Thanx.
 
Found It!

after we set the hField = hBuffer:buffer-field(FieldName), we then do:

hField:format = "x(60)".

simple as that.

:toast:
 
Top