In a message dated 28/01/2003 01:39:34 AM GMT Standard Time, [EMAIL PROTECTED] writes:


A newbie question:

I want to wrap some single line text in a text box and not use a
horizontal scroll bar.  I have an algorithm that works.

But it is horribly inefficient and I'm sure there must be a better way!
Can you X-talk gurus help me out with this one?

if (the length of this_line > 80) then
  repeat with i = 1 to the length of this_line
    put char i of this_line after field "contents"
    if (i mod 80 = 0) then put return after field "contents"
  end repeat
end if

Mahalo!


Just set the dontWrap of the field to "true".

/H
_________________________________________________
Hugh Senior
The Flexible Learning Company
Consultant Programming & Software Solutions
Fax/Voice: +44 (0)1483.27 87 27
Email: mailto:[EMAIL PROTECTED]
Web: www.flexibleLearning.com

Reply via email to