Page 1 of 1 1
Topic Options
#164083 - 2006-07-05 11:16 PM Console messages overwriting itself and wrapping on the same line???
thepip3r Offline
Hey THIS is FUN
*****

Registered: 2005-03-02
Posts: 350
I have a script where I prompt the logged on user to enter their building and room number and have tried to provide some logic to ensure that I get a more appropriate answer even if the answer is b.s. The logic is executing fine, my problem is that the corrective messages that are displayed by my conditionals are overwriting themselves on the same line instead of wrapping to the next and I DO have SetConsole("WrapAtEOL") set. I've tried adding massive line breaks to see if it would help but I can't seem to mitigate my problem. Can anyone provide any pointers?

Code:
gets $Opts
While $Opts = '' Or Len($Opts) > 25 Or Len($Opts) < 2 Or Trim(FindIllegals($Opts)) <> ''
If $Opts = ''
? 'Your entry was blank, please re-enter your building number: ' ?
Endif
If Len($Opts) > 25
? 'Your entry was '+Len($Opts)+' characters and can only be a max of 25'+@CRLF+', please shorten your answer and resubmit: ' ?
Endif
If Len($Opts) < 2
? 'Your entry was '+Len($Opts)+' characters and must be at least 2 characters long'+@CRLF+', please resubmit your answer: ' ?
Endif
If Trim(FindIllegals($Opts)) <> ''
? 'Your entry had an illegal character, please verify your entry '+@CRLF+'and resubmit your answer: ' ?
? ' Illegal Characters: ' + $IllegalChars ?
Endif
gets $Opts
Loop


Top
#164084 - 2006-07-05 11:21 PM Re: Console messages overwriting itself and wrapping on the same line???
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Well it's not SETCONSOLE

Try this and see how it works.

$SO=SetOption('WrapAtEOL','On')

Top
#164085 - 2006-07-05 11:25 PM Re: Console messages overwriting itself and wrapping on the same line???
thepip3r Offline
Hey THIS is FUN
*****

Registered: 2005-03-02
Posts: 350
damnit NTDOC, sorry for yet another asinine post...

thanx as always.

Top
#164086 - 2006-07-05 11:26 PM Re: Console messages overwriting itself and wrapping on the same line???
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
No problem. Think we all forget or get lost at times, I know I sure do.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.071 seconds in which 0.035 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org