Programming help?
Moderator: Moderators
-
Urthdigger
- PPT Warrior

- Posts: 945
- Joined: Sun Oct 10, 2004 11:58 am
- Location: Seattle, WA
- Contact:
Programming help?
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?
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
-
DiscordantNote
- Honorary Member

- Posts: 3386
- Joined: Mon May 31, 2004 4:59 pm
- Location: Lookin' through a glass onion
-
Urthdigger
- PPT Warrior

- Posts: 945
- Joined: Sun Oct 10, 2004 11:58 am
- Location: Seattle, WA
- Contact:
Re: Programming help?
.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
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.

-
Hunter Lupe
- Administrator

- Posts: 1140
- Joined: Mon May 31, 2004 1:36 pm
- Contact:
-
Urthdigger
- PPT Warrior

- Posts: 945
- Joined: Sun Oct 10, 2004 11:58 am
- Location: Seattle, WA
- Contact:
-
Hunter Lupe
- Administrator

- Posts: 1140
- Joined: Mon May 31, 2004 1:36 pm
- Contact:
.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.)
(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.)

Will you stop with the honour stuff?
-
Urthdigger
- PPT Warrior

- Posts: 945
- Joined: Sun Oct 10, 2004 11:58 am
- Location: Seattle, WA
- Contact:
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
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
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


