Home » Developer & Programmer » Forms » How to pass 2 values in a text item?
How to pass 2 values in a text item? [message #129683] Tue, 26 July 2005 04:52 Go to next message
weekend79
Messages: 198
Registered: April 2005
Location: Islamabad
Senior Member

Problem
(Oracle8i & Form6i)
Text_Item_1
Text_Item_2
Text_Item_3

I want that when I pass value in Text_Item_1 “Text_Item_1_Value”
The value of Text_Item_3 will become “Text_Item_1_Value”.

After that
When I pass value in Text_Item_2 “Text_Item_2_Value”
The value of Text_Item_3 will become “Text_Item_1_Value” [Space] “Text_Item_2_Value”.

Examples


Text_Item_1 value given “This Car has”
Text_Item_2 value given “VTI engine”
Text_Item_3 value become “This Car has VTI engine”

Please advise how to do it.

Wishes
Jawad
Re: How to pass 2 values in a text item? [message #129828 is a reply to message #129683] Tue, 26 July 2005 18:39 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
begin
  if text_item_2 is null then
    text_item_3 := text_item_1;
  else
    text_item_3 := text_item_1 || ' ' || text_item_2;
  end if;
end;

David
Previous Topic: how to use text_io and signature
Next Topic: how can i make button enable/disable?
Goto Forum:
  


Current Time: Thu Sep 19 20:20:36 CDT 2024