For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > April 2004 > Strange compiler error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Strange compiler error
Manfred

2004-04-29, 2:04 pm

A part of my C#.NET code looks like this:

string[,] allMembers = (...)
Database.executeNonQuery("INSERT INTO Members SET" +
" MemberID=" + allMembers[i,0] + // this line gets underlined by compiler
", InstituteID=" + allMembers[i,1] +
(...)

when i try to compile, I get this error message:
"The left-hand side of an assignment must be a variable, property or indexer"

What may be wrong here? it's just a string i'm making...
Any hints?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com