Home » Developer & Programmer » Forms » variable substitution
variable substitution [message #77889] Sun, 09 December 2001 23:46 Go to next message
Joe
Messages: 138
Registered: November 1999
Senior Member
Hi all,
how can I realize the following
v_cur_item := get_block_property(p_block_name,FIRST_ITEM);
WHILE v_cur_item IS NOT NULL
LOOP
DEFAULT_VALUE('*','global.'||v_cur_item||'''');
IF NOT :Global.v_cur_item = '*' THEN
....
The prob is GLOBAL.v_cur_item in which v_cur_item should be substituted on runtime to the itemname!
the unix/perl....-equivalent is
{varname}

thanx in advance
joe

----------------------------------------------------------------------
Re: variable substitution [message #77895 is a reply to message #77889] Mon, 10 December 2001 22:54 Go to previous message
Iana
Messages: 6
Registered: December 2001
Junior Member
Instead of
IF NOT :Global.v_cur_item = '*' THEN

Try this:
IF NOT name_in('Global.'||v_cur_item||'''') = '*' THEN

----------------------------------------------------------------------
Previous Topic: duplicate records
Next Topic: How to change the icon of the mdi window?
Goto Forum:
  


Current Time: Thu Mar 28 09:10:02 CDT 2024