Got a little techonology problem that you need fixed pronto? Post it here and we'll see what we can do.
Topic locked

Programming help?

Sat Nov 13, 2004 3:33 am

I couldn't really think of where to ask this, but this place is as good as any and my latest program is an adaptation of my Neopian Adventure. I need to know how to clear the screen and make the text wrap instead of being cut off. I'm using Visual Basic BTW. I heard of a cls command for clearing the screen, but that appears to be for C++ only as it doesn't work when I enter it in. For wrapping text, I heard of being able to use object.WrapText = True to do it, but it says that WrapText isn't a part of System or something like that.

Re: Programming help?

Tue Nov 16, 2004 12:03 am

Urthdigger wrote:I couldn't really think of where to ask this, but this place is as good as any and my latest program is an adaptation of my Neopian Adventure. I need to know how to clear the screen and make the text wrap instead of being cut off. I'm using Visual Basic BTW. I heard of a cls command for clearing the screen, but that appears to be for C++ only as it doesn't work when I enter it in. For wrapping text, I heard of being able to use object.WrapText = True to do it, but it says that WrapText isn't a part of System or something like that.

Use object.MultiLine.

I don't know about clearing the screen though Good luck :P

Tue Nov 16, 2004 12:35 am

I thought this would fare better here than Misc. Disc. :)

Re: Programming help?

Wed Dec 01, 2004 6:37 am

.ccy wrote:
Urthdigger wrote:I couldn't really think of where to ask this, but this place is as good as any and my latest program is an adaptation of my Neopian Adventure. I need to know how to clear the screen and make the text wrap instead of being cut off. I'm using Visual Basic BTW. I heard of a cls command for clearing the screen, but that appears to be for C++ only as it doesn't work when I enter it in. For wrapping text, I heard of being able to use object.WrapText = True to do it, but it says that WrapText isn't a part of System or something like that.

Use object.MultiLine.

I don't know about clearing the screen though Good luck :P


Hmm, I tried object.MultiLine, and it said "MultiLine is not a member of System.Object." Ah well, I'll try looking harder. Though, if worse comes to worse I could always just be creative with spaces. I really need the clear screen thing though.

Wed Dec 01, 2004 1:49 pm

Upload whatever files you're using to somewhere so that we can have a look :)

Your error suggests that you're trying to modify .Multiline on some object that doesn't support it -- what is your code?

Fri Dec 03, 2004 11:32 pm

Here's what I got

Sun Dec 05, 2004 11:48 am

.Multiline is for textboxes -- not for console. You can try outputting a lot of "\r\n" to clear the screen.

(interesting idea with using functions as "areas", but it might be better to come up with some sort of file-based storage structure to control the "pages". That would keep your program static (no need to compile it again and again), and you can extend the adventure by simply modifying the definition files.)

Mon Dec 06, 2004 11:35 am

Heh, thanks, but the problem is I'm a beginner. When I got the program from the community college library, something was wrong with the disc, so no help files for me. All my knowledge came from my beginning programming class and it's textbook :P

Oh, and you might notice a few errors with my system, but I've fixed them since then. Now it actually records that you did stuff in a previous room :P
Topic locked