Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind a Group

Status
Not open for further replies.

cagiv

Programmer
Mar 5, 2009
56
DE
Hi,

anybody knows, how can i use a binded group?

myGroup GROUP,PRE(myGroup)
field1 STRING(20)
...
END

In source (INIT) i bind this group with:
BIND('BGRP', myGroup)

and the user wants to use the group in program with:
message(BGRP:myGroup:field1) or
message(BGRP:myGroup.field1)

but it results an error (unknows binded variable). How can i do it right?

cagiv
 
Hi!

It should be myGroup:field1 or BGRP.field1 and not BGRP:myGroup:field1.

and use EVALUATE() i.e.

message(EVALUATE(BGRP.field1))

Regards
 
Hi,

thank you for your answer, but it doesnt work.
Variable was always unknown.
Now I binded every field in group.
Not nice but its work ;-)

cagiv
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top