Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading a JPEG file into String Pin
Heath Stewart17-Feb-04 12:26
protectorHeath Stewart17-Feb-04 12:26 
GeneralRe: Reading a JPEG file into String Pin
Mazdak17-Feb-04 18:13
Mazdak17-Feb-04 18:13 
Generalproblem with Textboxes Pin
raheela17-Feb-04 6:22
raheela17-Feb-04 6:22 
GeneralRe: problem with Textboxes Pin
Heath Stewart17-Feb-04 12:23
protectorHeath Stewart17-Feb-04 12:23 
Generalwriting a struct to a binary file Pin
DennisMetz17-Feb-04 4:19
DennisMetz17-Feb-04 4:19 
GeneralRe: writing a struct to a binary file Pin
Heath Stewart17-Feb-04 4:44
protectorHeath Stewart17-Feb-04 4:44 
GeneralRe: writing a struct to a binary file Pin
DennisMetz17-Feb-04 5:06
DennisMetz17-Feb-04 5:06 
GeneralRe: writing a struct to a binary file Pin
Heath Stewart17-Feb-04 6:19
protectorHeath Stewart17-Feb-04 6:19 
Generalcatch tabpage change Pin
troels_sorensen17-Feb-04 3:41
troels_sorensen17-Feb-04 3:41 
GeneralRe: catch tabpage change Pin
Heath Stewart17-Feb-04 4:07
protectorHeath Stewart17-Feb-04 4:07 
GeneralRe: catch tabpage change Pin
Anonymous17-Feb-04 8:44
Anonymous17-Feb-04 8:44 
GeneralRe: catch tabpage change Pin
Heath Stewart17-Feb-04 9:21
protectorHeath Stewart17-Feb-04 9:21 
GeneralRe: catch tabpage change Pin
Anonymous17-Feb-04 10:56
Anonymous17-Feb-04 10:56 
GeneralRe: catch tabpage change Pin
Heath Stewart17-Feb-04 12:14
protectorHeath Stewart17-Feb-04 12:14 
GeneralRe: catch tabpage change Pin
Anonymous17-Feb-04 12:59
Anonymous17-Feb-04 12:59 
GeneralRe: catch tabpage change Pin
troels_sorensen18-Feb-04 21:15
troels_sorensen18-Feb-04 21:15 
GeneralRe: catch tabpage change Pin
Heath Stewart19-Feb-04 3:30
protectorHeath Stewart19-Feb-04 3:30 
Generalpictures in a datagrid Pin
troels_sorensen17-Feb-04 3:38
troels_sorensen17-Feb-04 3:38 
GeneralRe: pictures in a datagrid Pin
Heath Stewart17-Feb-04 4:21
protectorHeath Stewart17-Feb-04 4:21 
Questionneed sql query? Pin
murali_utr17-Feb-04 3:19
murali_utr17-Feb-04 3:19 
AnswerRe: need sql query? Pin
Heath Stewart17-Feb-04 4:33
protectorHeath Stewart17-Feb-04 4:33 
Questionwhats wrong? Pin
ASGill17-Feb-04 2:16
ASGill17-Feb-04 2:16 
<br />
private void btnAddP_Click(object sender, System.EventArgs e)<br />
		{<br />
			<br />
			try<br />
			{<br />
				createSqlConnection();<br />
				<br />
				if ( txtName.Text != "" && txtHPNO.Text != "")<br />
				{<br />
					myCommand = new SqlCommand("INSERT INTO Patient(Acct ID, Name, Age, Height, Weight, Address, IcNo, HomeNo, HpNo, EName, EPhoneNo, ERelation, Date, Status, Remarks) VALUES('"+@txtAcctId.Text+"','"+@txtName.Text+"','"+@txtAge.Text+"','"+@txtHeight.Text+"','"+@txtWeight.Text+"','"+@txtAdd.Text="','"+@txtICNO.Text+"','"+@txtHomeNo.Text+"','"+@txtHPNO.Text+"','"+@txtEName.Text+"','"+@txtEPhoneNo.Text+"','"+@txtERelation.Text+"','"+@dTimeDate.Text+"','"+@txtStatus.Text+"','"+@txtRemarks.Text+"')",myConnection);<br />
<br />
					MessageBox.Show("Creating New Patient Record.....", "Information");<br />
<br />
					myCommand.ExecuteNonQuery();<br />
<br />
					MessageBox.Show("New Patient Record Created","Information");<br />
<br />
					myConnection.Close();<br />
				}<br />
<br />
				else<br />
				{<br />
					MessageBox.Show("All Text Boxes Should be Filled with Information","Reminder");<br />
				}<br />
			}<br />
			<br />
			catch (Exception error1)<br />
			{<br />
				MessageBox.Show(error1.ToString());<br />
			}<br />


when i compile the .cs file i get an error..can anyone tell me whats wrong

D:\ASGill\D E G R E E\D. Final Year Project (7)\SOFTWARE\C.I.System\CLINICINFORMATIONSYSTEM\AddPatient.cs(534): The left-hand side of an assignment must be a variable, property or indexer

what does it mean?...

thx


Arvinder Gill
AnswerRe: whats wrong? Pin
Uwe Keim17-Feb-04 3:01
sitebuilderUwe Keim17-Feb-04 3:01 
AnswerRe: whats wrong? Pin
Heath Stewart17-Feb-04 3:15
protectorHeath Stewart17-Feb-04 3:15 
GeneralCustom ListBox.Items Pin
Simon Wren17-Feb-04 2:11
professionalSimon Wren17-Feb-04 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.