Click here to Skip to main content
15,868,104 members
Home / Discussions / C#
   

C#

 
QuestionSyntax error: Missing operand after 'Percent' operator. Pin
Richard A Knox11-Feb-22 10:46
Richard A Knox11-Feb-22 10:46 
AnswerRe: Syntax error: Missing operand after 'Percent' operator. Pin
Mycroft Holmes11-Feb-22 11:05
professionalMycroft Holmes11-Feb-22 11:05 
GeneralRe: Syntax error: Missing operand after 'Percent' operator. Pin
Richard A Knox12-Feb-22 2:08
Richard A Knox12-Feb-22 2:08 
GeneralRe: Syntax error: Missing operand after 'Percent' operator. Pin
Mycroft Holmes12-Feb-22 11:16
professionalMycroft Holmes12-Feb-22 11:16 
AnswerRe: Syntax error: Missing operand after 'Percent' operator. Pin
Kelly Herald11-Feb-22 11:46
Kelly Herald11-Feb-22 11:46 
GeneralRe: Syntax error: Missing operand after 'Percent' operator. Pin
Richard A Knox12-Feb-22 2:01
Richard A Knox12-Feb-22 2:01 
QuestionRe: Syntax error: Missing operand after 'Percent' operator. Pin
Eddy Vluggen11-Feb-22 12:35
professionalEddy Vluggen11-Feb-22 12:35 
AnswerRe: Syntax error: Missing operand after 'Percent' operator. Pin
OriginalGriff11-Feb-22 19:22
mveOriginalGriff11-Feb-22 19:22 
As Kelly has said, column names starting with numbers are generally a mistake and need to be enclosed in square brackets in order to be recognised as a column name rather than as a number followed by an operator:
expression = "[40Percent] = 0.355";
Though to be honest, having a column called "40Percent" is probably a bad idea as it relies on the original value column not being changed without updating that column as well. And we all know how easy it is to get data out of step and the problems that causes later!

But to add to that, don't use screen grabs for error messages: use the "Copy Details" link at the bottom of the dialog to get a text version, and paste that into your question - it makes it easier for us and safer for you because many people won't (or can't) go near "random sites" at work as you never know what you will get before you go there!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Syntax error: Missing operand after 'Percent' operator. Pin
Richard A Knox12-Feb-22 2:04
Richard A Knox12-Feb-22 2:04 
GeneralRe: Syntax error: Missing operand after 'Percent' operator. Pin
OriginalGriff12-Feb-22 2:18
mveOriginalGriff12-Feb-22 2:18 
AnswerRe: Syntax error: Missing operand after 'Percent' operator. Pin
jsc4215-Feb-22 5:48
professionaljsc4215-Feb-22 5:48 
QuestionI can not see inside my phone directory branch when I plug it into my PC Pin
_Q12_9-Feb-22 22:51
_Q12_9-Feb-22 22:51 
AnswerRe: I can not see inside my phone directory branch when I plug it into my PC Pin
OriginalGriff9-Feb-22 23:09
mveOriginalGriff9-Feb-22 23:09 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
_Q12_9-Feb-22 23:33
_Q12_9-Feb-22 23:33 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
OriginalGriff10-Feb-22 0:14
mveOriginalGriff10-Feb-22 0:14 
GeneralMessage Closed Pin
10-Feb-22 0:39
_Q12_10-Feb-22 0:39 
GeneralMessage Closed Pin
10-Feb-22 0:52
_Q12_10-Feb-22 0:52 
GeneralMessage Closed Pin
10-Feb-22 0:55
_Q12_10-Feb-22 0:55 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
_Q12_10-Feb-22 1:38
_Q12_10-Feb-22 1:38 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
_Q12_10-Feb-22 3:05
_Q12_10-Feb-22 3:05 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
OriginalGriff10-Feb-22 3:58
mveOriginalGriff10-Feb-22 3:58 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
_Q12_15-Feb-22 1:46
_Q12_15-Feb-22 1:46 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
OriginalGriff15-Feb-22 2:15
mveOriginalGriff15-Feb-22 2:15 
GeneralRe: I can not see inside my phone directory branch when I plug it into my PC Pin
_Q12_9-Feb-22 23:39
_Q12_9-Feb-22 23:39 
AnswerRe: I can not see inside my phone directory branch when I plug it into my PC Pin
trønderen10-Feb-22 6:25
trønderen10-Feb-22 6:25 

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.