Off-Topic Visual Basic Carriage Return on text output?

Sarah,
I don't know about visual basic, but other programming tools allow you to
concatenate carriage return, line feed similar to this:
Define a variable CRLF = Char(13) + Char(10) ; this will create an
string value of Carriage return, line feed.

If orbit > .0143 then ( "G4837Y" + CRLF + "H35583" + CRLF + "GE837Y")

Hope this helps,
Jim Stetter

-----Original Message-----
From: sarah.vareschi@... [mailto:sarah.vareschi@...]
Sent: Wednesday, March 21, 2001 3:46 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Off-Topic Visual Basic Carriage Return on text output?



I know this is really far off-topic, but I am still hoping one of the
programming guru's on this list will be able to help me. I am trying to
return text from an if, then statement in visual basic and I need to test
to
be multiple lines long. For example, If Orbit > .0143 then Rough =
"N13659"
[carriage Return] "H3583" [Carriage return] "G4837Y"

So the output I would be lines of text as follows:

N13659
H3583
G4837Y

I cannot figure out how to put a carriage return in there. Does anybody
know?

Thanks so much for any feedback.

-Sarah

Yahoo! Groups Sponsor

Click Here to Find Software Faster


To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please go to:
http://groups.yahoo.com/group/vantage/files/. Note: You must have already
linked your email address to a yahoo id to enable access.

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
I know this is really far off-topic, but I am still hoping one of the
programming guru's on this list will be able to help me. I am trying to
return text from an if, then statement in visual basic and I need to test to
be multiple lines long. For example, If Orbit > .0143 then Rough = "N13659"
[carriage Return] "H3583" [Carriage return] "G4837Y"

So the output I would be lines of text as follows:

N13659
H3583
G4837Y

I cannot figure out how to put a carriage return in there. Does anybody
know?

Thanks so much for any feedback.

-Sarah
add chr(13)+chr(10) into the string

sarah.vareschi@... wrote:
>
> I know this is really far off-topic, but I am still hoping one of the
> programming guru's on this list will be able to help me. I am trying to
> return text from an if, then statement in visual basic and I need to test to
> be multiple lines long. For example, If Orbit > .0143 then Rough = "N13659"
> [carriage Return] "H3583" [Carriage return] "G4837Y"
>
> So the output I would be lines of text as follows:
>
> N13659
> H3583
> G4837Y
>
> I cannot figure out how to put a carriage return in there. Does anybody
> know?
>
> Thanks so much for any feedback.
>
> -Sarah
>
>
> To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please go to: http://groups.yahoo.com/group/vantage/files/. Note: You must have already linked your email address to a yahoo id to enable access.
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
a \n within the quotes will carriage return to the next line.
example.... "H3583\n"
i'm not sure exactly what you're trying to do in your program though....are
you trying to assign the variable Rough the string values of N13659, H3583,
and G4837Y ? if that's the case i don't know if the \n will work.
-gary
----- Original Message -----
From: <sarah.vareschi@...>
To: <vantage@yahoogroups.com>
Sent: Wednesday, March 21, 2001 3:45 PM
Subject: [Vantage] Off-Topic Visual Basic Carriage Return on text output?


>
> I know this is really far off-topic, but I am still hoping one of the
> programming guru's on this list will be able to help me. I am trying to
> return text from an if, then statement in visual basic and I need to test
to
> be multiple lines long. For example, If Orbit > .0143 then Rough =
"N13659"
> [carriage Return] "H3583" [Carriage return] "G4837Y"
>
> So the output I would be lines of text as follows:
>
> N13659
> H3583
> G4837Y
>
> I cannot figure out how to put a carriage return in there. Does anybody
> know?
>
> Thanks so much for any feedback.
>
> -Sarah
>
>
> To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please go to:
http://groups.yahoo.com/group/vantage/files/. Note: You must have already
linked your email address to a yahoo id to enable access.
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>