Re: FORMS3 procedure

From: Christian Mondrup <unicm_at_unidhp1.uni-c.dk>
Date: 4 Nov 1994 08:54:11 GMT
Message-ID: <39csrj$59l_at_news.uni-c.dk>


Davis + Henderson Ltd. (dhi_at_io.org) wrote:

: Hi folks:
 

: Does anyone know of a way to move the cursor to a specific position or
: highlight a specific character inside a character field using a form
: procedure or function in FORMS3?

Right and left scrolling inside fields is beyond programming control, and so are display characteristics of substrings. May I suggest that you create 3 neighbouring control fields and copy the substring left to the character to be highlighted to the first of them, the highlighted character to the second and the reminder of the string to the third. You may identify the the character to be be highlighted from the source character field using the INSTR function. Now you can emulate the highlighting of a single character (or substring) by manipulating the display characteristics of the second control field using the SET_FIELD packaged procedure.

Hope this helps.

: Hope this question is clear enough!
 

: Any help appreciated.

: Adrian Robitu
: Programmer
: Davis + Henderson

--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+      Christian Mondrup                                                      +
+      UNI-C Aarhus, Danish Computing Centre for Research and Education.      +
+      Olof Palmes Alle 38, DK 8200 Aarhus N.                                 +
+                                                                             +
+      Phone:   +45 86 78 44 44                                               +
+      Telefax: +45 86 78 44 55                                               +
+      E-Mail:  Christian.Mondrup_at_uni-c.dk                                    +
+                                                                             +
+      Opinions expressed are mine and do not reflect those of my employer.   +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Received on Fri Nov 04 1994 - 09:54:11 CET

Original text of this message