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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Builder: how to set and get values in text items?

Status
Not open for further replies.

SashaBuilder3

Programmer
Jan 13, 2002
131
CA
Hi everybody,


More stupid questions from a newbie.

My simple form has a button to pick up a file name (with the GET_FILE_NAME built-in) and a text item (TXB_FTOLOAD) where I want to display the chosen file name. I played with Set_Item_Property and Display_Item without much of success.
Here is a piece of code I used (file_name is a varchar2 variable keeping the file name):

txb_id=Find_Item(TXB_FTOLOAD);
Display_Item(txb_id,file_name);

This code was compiled without errors but the text box didn't show any value.

Next. How to get the text box value (say, into another variable)?

Can anyone show me the right syntax?

And another question. Do I have to manipulate with items by their ID's (found with Find_Item)? Or can I do something like this (?):

Display_Item(TXB_FTOLOAD,file_name);



Thanks,

Alexandre
 
:block.item := 'text';

The := is the assignment operator in PL/SQL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top