End of Statement Expected

Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Sep 2008
Posts: 25
Reputation: tyserman5674 is an unknown quantity at this point 
Solved Threads: 0
tyserman5674 tyserman5674 is offline Offline
Light Poster

End of Statement Expected

 
0
  #1
Sep 10th, 2008
I am getting an error with this statement and can not seem to figure out what is wrong.
  1. decMortgagePayment.ToString("C") & " Monthly Payment" = Me.lblMortgagePayment.Text
I am doing a calculation and want to put the results of the calculation in lblMortgagePayment. I get the error for this line, end of statement expected.
Help please,
Ken
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: End of Statement Expected

 
0
  #2
Sep 11th, 2008
The two lines have to be on the same line.
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 17
Reputation: Mr Brownstone is an unknown quantity at this point 
Solved Threads: 1
Mr Brownstone's Avatar
Mr Brownstone Mr Brownstone is offline Offline
Newbie Poster

Re: End of Statement Expected

 
0
  #3
Sep 11th, 2008
First off, it's on the same line. but Try this:

  1. Me.lblMortgagePayment.Text = (decMortgagePayment) & " Monthly Payment "

I am not too sure that is 100% correct because I am work but you got it the wrong way round.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,640
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: End of Statement Expected

 
0
  #4
Sep 11th, 2008
>> I am doing a calculation and want to put the results of the calculation in lblMortgagePayment
you want to put the result in lblMortgagePayment, but you put wrong assignment in your code.
Mr Brownstone was give the answer.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC