Programming help?

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

Moderator: Moderators

Locked
Message
Author
Urthdigger
PPT Warrior
PPT Warrior
Posts: 945
Joined: Sun Oct 10, 2004 11:58 am
Location: Seattle, WA
Contact:

Programming help?

#1 Post by Urthdigger »

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.
Image
.ccy
PPT Student
PPT Student
Posts: 346
Joined: Wed Jun 16, 2004 8:45 am

Re: Programming help?

#2 Post by .ccy »

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
Image
Giving away >50< Gmail invites. PM me with your current email for one.
Get Firefox!
DiscordantNote
Honorary Member
Honorary Member
Posts: 3386
Joined: Mon May 31, 2004 4:59 pm
Location: Lookin' through a glass onion

#3 Post by DiscordantNote »

I thought this would fare better here than Misc. Disc. :)
Image
Yes, I'm still alive...still alive...
Urthdigger
PPT Warrior
PPT Warrior
Posts: 945
Joined: Sun Oct 10, 2004 11:58 am
Location: Seattle, WA
Contact:

Re: Programming help?

#4 Post by Urthdigger »

.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.
Image
Hunter Lupe
Administrator
Administrator
Posts: 1140
Joined: Mon May 31, 2004 1:36 pm
Contact:

#5 Post by Hunter Lupe »

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?
Image
Will you stop with the honour stuff?
Urthdigger
PPT Warrior
PPT Warrior
Posts: 945
Joined: Sun Oct 10, 2004 11:58 am
Location: Seattle, WA
Contact:

#6 Post by Urthdigger »

Image
Hunter Lupe
Administrator
Administrator
Posts: 1140
Joined: Mon May 31, 2004 1:36 pm
Contact:

#7 Post by Hunter Lupe »

.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.)
Image
Will you stop with the honour stuff?
Urthdigger
PPT Warrior
PPT Warrior
Posts: 945
Joined: Sun Oct 10, 2004 11:58 am
Location: Seattle, WA
Contact:

#8 Post by Urthdigger »

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
Image
Locked