Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Visual Basic newbie
Name: Travis Date: December 26, 2002 at 21:13:51 Pacific OS: WinME CPU/Ram: 198MB
Comment:
Hi i am a VB newbie and need help in this : How do i display more than 1 line of text using a single variable? i.e 'Dialog display dialogmsg = "Programmed by xx"
and i want a second line like "Ver 1.0a" without declaring another variable like dialogmsg2.
Name: Madman Date: December 26, 2002 at 21:57:21 Pacific
Reply:
dialogmsg="Programmed by xx" & chr$(10) & chr$(10) & "Ver 1.0a"
0
Response Number 2
Name: Travis Date: December 26, 2002 at 22:11:01 Pacific
Reply:
what does the syntax mean? Thanks!
0
Response Number 3
Name: Madman Date: December 27, 2002 at 06:59:01 Pacific
Reply:
Maybe if I had expressed it this way it would have made more sense:
dialogmsg="Programmed by xx" & vbCrLf & vbCrLf & "Ver 1.0a"
The vbCrLf inserts a carriage return and line feed at the end of "Programmed by xx", causing the following text to be displayed on the line following the line feed. In the above text you would have 2 blank lines between your two desired lines of text. To have just one blank line, remove one of the vbCrLf code.
Hope this helps.
Happy New Years!
0
Response Number 4
Name: GameTroy Date: December 27, 2002 at 16:59:18 Pacific
Reply:
hey this should work for vb5, and vb6.
String = "first" + vbcrlf + "second"
and when this gets displayed in a multi-line text box it looks like this.
Summary: Greetings, Im a newbie at visual basic and I wrote the small script to let out text in the game "Starcraft: Broodwar" but no matter how much I fiddle with it it doesn't work out correctly: Private Sub...
Summary: I'm a total newbie to visual basic scripting. All I need is a simple command that copies a file to another location. I cannot use a batch file because apparently Windows Vista does not support the u...
Summary: Hey, I'm a big huge Visual Basic(6.0) newbie and I took a programming course in school that's way over my head. I need to build a basic log in screen, I just need the name, no password or anything fa...