»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2003, 05:42 PM   #1 (permalink)
Registered User
 
Argon88's Avatar
 
Join Date: May 2002
Location: Virginia
Posts: 215
Argon88 is on a distinguished road
Another BASIC problem, this time with a string...

This is the string I wrote,

strMesage = "Price per share: " & FormatNumber(dblPricePerShare, 3) & _
ControlChars.NewLine & "Number of Shares: " & *_* FormatNumber(intNumberofShares, 5)

The problem comes when it gets to the end of the second line. The part that I put in asteriks is the problem, (the asteriks aren't included in the real code) when I rest my cursur on the offending code I get a message that says "Identifier expected." I can't fugure out what the problem problem is.


Last edited by Argon88; 10-22-2003 at 05:47 PM.
Argon88 is offline   Reply With Quote
Old 10-22-2003, 05:44 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
get rid of underscore

Its only used if the rest of the line is on the next line

strMesage = "Price per share: " & FormatNumber(dblPricePerShare, 3) & _
ControlChars.NewLine & "Number of Shares: " & FormatNumber(intNumberofShares, 5)

or

strMesage = "Price per share: " & FormatNumber(dblPricePerShare, 3) & _
ControlChars.NewLine & "Number of Shares: " & _
FormatNumber(intNumberofShares, 5)
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 10-22-2003, 06:03 PM   #3 (permalink)
Registered User
 
Argon88's Avatar
 
Join Date: May 2002
Location: Virginia
Posts: 215
Argon88 is on a distinguished road
Okay, that makes sence. Thanks.

Argon88 is offline   Reply With Quote
Old 10-22-2003, 06:04 PM   #4 (permalink)
Registered User
 
Argon88's Avatar
 
Join Date: May 2002
Location: Virginia
Posts: 215
Argon88 is on a distinguished road
Sorry, double post.

Last edited by Argon88; 10-22-2003 at 06:06 PM.
Argon88 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:13 AM.