TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Lennie Kuah
NA
29
0
C#Net 2008 Error message Error 3 Cannot implicitly convert type 'int' to 'string'
Apr 4 2010 6:10 PM
Hi Friends,
I am very puzzled by the error message :
Error 3 Cannot implicitly convert type 'int' to 'string'
the data in this variable
intPOrderIS
obtained from a Calling FORM FrmSalesView passing it to FORM FrmSalesMaint using this coding:
private int intPOrderID;
// Property variable
public Int32 PropOrderId
<----- RECEIVING FORM FrmSalesMaint
{
get {return intPOrderID;}
set { intPOrderID = value; }
}
------------------------------------------------------------------------
Under this event
private void FrmSalesMaint_Load(object sender,
EventArgs
e)
This is the coding that generate the error message
this.txtOrderID.Text =
intPOrderID
; <---- cause of error
--------------------------------------------
Although I have use CAST to convert i
ntPOrderID
to string it still generates error message. This is what I have tried.
this.txtOrderID.Text = (string)
intPOrderID
; <---- cause of error
PLEASE HELP ME, I AM VERY DESPERATE TO UNDERSTAND
.
Reply
Answers (
0
)
C#.Net2008 Problem trying to retrieve data from DataGridView
Problem with filter of a recordset