4 Replies Latest reply: Apr 3, 2013 8:42 AM by CraigB RSS

    How to Display Messages in more than 1 line

    LuKKa
      Hi All
      I am using Oracle Forms 10G.
      I have a small doubt .
      I want to display a message in 2 or 3 lines .
      Like :-

      Hello
      Hello1
      Hello2

      I want like this . How can I write in MESSAGE(); ?
        • 1. Re: How to Display Messages in more than 1 line
          HamidHelal
          LuKKa wrote:
          Hi All
          I am using Oracle Forms 10G.
          I have a small doubt .
          I want to display a message in 2 or 3 lines .
          Like :-

          Hello
          Hello1
          Hello2

          I want like this . How can I write in MESSAGE(); ?
          Hi LuKKa,
          Try this
          MESSAGE('Hello'||chr(13)||'HELLO 1'||chr(13)||'HELLO 2');
          MESSAGE('Hello'||chr(13)||'HELLO 1'||chr(13)||'HELLO 2');
          Hope this helps


          Hamid

          Mark correct/helpful to help others to get right answer(s).*
          • 2. Re: How to Display Messages in more than 1 line
            LuKKa
            Hi
            I tried this but it is not showing in multiple line .
            It is showing like Hello Hello1 Hello2.
            I want like :-

            Hello
            Hello1
            Hello2
            • 3. Re: How to Display Messages in more than 1 line
              HamidHelal
              LuKKa wrote:
              Hi
              I tried this but it is not showing in multiple line .
              It is showing like Hello Hello1 Hello2.
              I want like :-

              Hello
              Hello1
              Hello2
              Try this
              MESSAGE('Hello'||chr(10)||'HELLO 1'||chr(10)||'HELLO 2');
              MESSAGE('Hello'||chr(10)||'HELLO 1'||chr(10)||'HELLO 2');
              If the above doesn't work..
              try At ALERT built-in.Create an alert named TT.Code Example
              declare
                   alt number;
              begin
                   SET_ALERT_PROPERTY('tt', alert_message_text,'Hello'||chr(10)||'HELLO 1'||chr(10)||'HELLO 2');
                   ALT:=SHOW_ALERT('tt');
              end;
              Hope this works..

              Hamid

              Mark correct/helpful to help others to get right answer(s).*
              • 4. Re: How to Display Messages in more than 1 line
                CraigB
                You must use an Alert as Hamid demonstrated. The Message() Built-in displays a message in the Status Bar; which is a single line of text. When there is already a message in the status bar and you put another message in the status bar - the first message is promoted to the default alert (still a single line of text unless the text exceeds the width of the alert then it is wrapped to a second line). Therefore, in order to intentionally display more than one line in an a Message you must use an Alert.

                Craig...