Re: Forms 4.5 item ids
Date: 1997/12/10
Message-ID: <19971210054401.AAA04435_at_ladder02.news.aol.com>#1/1
>Question Is there any way of storing an item id after it has been
>retrieved. I've tried assigning to text items, global variables and
>COPYing the ids to no avail .... every time, attempting to compile gives
>"expression is of the wrong type" errors ???
>
The various itemid are actually structures, but seem to have only one
component, the id. The following code snippet (from memory) shows how it
works...
declare
myformid formmodule;
saved_id integer;
begin
myformid := find_form(:system.current_form); saved_id := myformid.id;
/* now save 'saved_id' into a global, parameter, or whatever... */
end;
/* To use the saved value, just reverse...*/
declare
myformid formmodule;
begin
myformid.id := :parameter.saved_id; /* declared as a number */
go_form(my_formid);
end;
Dan Received on Wed Dec 10 1997 - 00:00:00 CET