newbie question

FlexibleLearning at aol.com FlexibleLearning at aol.com
Tue Jan 28 06:32:01 EST 2003


In a message dated 28/01/2003 01:39:34 AM GMT Standard Time, 
metacard-request at lists.runrev.com 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: <A HREF="mailto:admin at flexibleLearning.com">mailto:h at flexibleLearning.com</A>
Web: <A HREF="http://www.flexiblelearning.com/">www.flexibleLearning.com</A>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20030128/6a8ba583/attachment.htm


More information about the metacard mailing list