Click here to Skip to main content
15,877,384 members
Home / Discussions / C#
   

C#

 
QuestionOPC / Rockwell for automation problem Pin
Roberto64_Ge21-Dec-15 0:07
Roberto64_Ge21-Dec-15 0:07 
Questionc# classes methods Pin
Member 1221945620-Dec-15 14:55
Member 1221945620-Dec-15 14:55 
AnswerRe: c# classes methods Pin
User 418025420-Dec-15 15:13
User 418025420-Dec-15 15:13 
GeneralRe: c# classes methods Pin
Member 1221945620-Dec-15 15:17
Member 1221945620-Dec-15 15:17 
GeneralRe: c# classes methods Pin
OriginalGriff20-Dec-15 19:53
mveOriginalGriff20-Dec-15 19:53 
AnswerRe: c# classes methods Pin
OriginalGriff20-Dec-15 19:58
mveOriginalGriff20-Dec-15 19:58 
AnswerRe: c# classes methods Pin
BillWoodruff20-Dec-15 23:42
professionalBillWoodruff20-Dec-15 23:42 
QuestionIncorrect syntax near ',' Pin
Member 1144944719-Dec-15 5:00
Member 1144944719-Dec-15 5:00 
This command is not working. It gives the error stated in the subject. Anyone knows how to solve it? Thanks.
C#
SqlCommand Command = new SqlCommand("insert into lojas (NIF, Loja, bloqueado, DataFim, lastupdate, Nome) values ('" + grid_lic.CurrentRow.Cells[1].Value + "', " + grid_lic.CurrentRow.Cells[2].Value + "," + grid_lic.CurrentRow.Cells[3].Value + ",'" + grid_lic.CurrentRow.Cells[4].Value + "','" + grid_lic.CurrentRow.Cells[5].Value + "','" + grid_lic.CurrentRow.Cells[6].Value + "')", connection);
Command.CommandType = CommandType.Text;
Command.ExecuteNonQuery();

AnswerRe: Incorrect syntax near ',' Pin
Dave Kreskowiak19-Dec-15 5:07
mveDave Kreskowiak19-Dec-15 5:07 
GeneralRe: Incorrect syntax near ',' Pin
Member 1144944719-Dec-15 10:18
Member 1144944719-Dec-15 10:18 
GeneralRe: Incorrect syntax near ',' Pin
Dave Kreskowiak19-Dec-15 11:48
mveDave Kreskowiak19-Dec-15 11:48 
GeneralRe: Incorrect syntax near ',' Pin
Foothill21-Dec-15 6:00
professionalFoothill21-Dec-15 6:00 
GeneralRe: Incorrect syntax near ',' Pin
Dave Kreskowiak21-Dec-15 7:09
mveDave Kreskowiak21-Dec-15 7:09 
QuestionHow can I include house address finder in my application? Pin
naouf1019-Dec-15 3:21
naouf1019-Dec-15 3:21 
AnswerRe: How can I include house address finder in my application? Pin
OriginalGriff19-Dec-15 4:08
mveOriginalGriff19-Dec-15 4:08 
GeneralRe: How can I include house address finder in my application? Pin
Mycroft Holmes20-Dec-15 12:01
professionalMycroft Holmes20-Dec-15 12:01 
AnswerRe: How can I include house address finder in my application? Pin
Gerry Schmitz19-Dec-15 8:59
mveGerry Schmitz19-Dec-15 8:59 
GeneralRe: How can I include house address finder in my application? Pin
naouf1019-Dec-15 11:09
naouf1019-Dec-15 11:09 
GeneralRe: How can I include house address finder in my application? Pin
Gerry Schmitz19-Dec-15 12:01
mveGerry Schmitz19-Dec-15 12:01 
GeneralRe: How can I include house address finder in my application? Pin
naouf1020-Dec-15 2:22
naouf1020-Dec-15 2:22 
GeneralRe: How can I include house address finder in my application? Pin
jschell20-Dec-15 11:21
jschell20-Dec-15 11:21 
GeneralRe: How can I include house address finder in my application? Pin
naouf1021-Dec-15 1:56
naouf1021-Dec-15 1:56 
GeneralRe: How can I include house address finder in my application? Pin
jschell30-Dec-15 6:53
jschell30-Dec-15 6:53 
Questioncant run my C# program after installation - only if i Run as administrator Pin
goldsoft18-Dec-15 22:59
goldsoft18-Dec-15 22:59 
AnswerRe: cant run my C# program after installation - only if i Run as administrator Pin
Dave Kreskowiak19-Dec-15 4:18
mveDave Kreskowiak19-Dec-15 4:18 

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.