Datatable.Compute using Filter for Boolean Field.

Hi,

What's wrong with my code?

dtTable.Compute("SUM(PayAmount)", "Selected = TRUE")

Thank you.
LVL 1
emi_sastraAsked:
Who is Participating?
 
BTosonConnect With a Mentor Commented:
Try the following:
dtTable.Compute("SUM(PayAmount)", "Selected = 1")
0
 
Juan_BarreraCommented:
Hi,

What's the error you get?

Anyway, there is nothing obviously wrong. except that I would try:
 
dtTable.Compute("SUM(PayAmount)", "Selected = 1")

but, without more information, it's just a guess.
0
 
Juan_BarreraCommented:
Sorry BToson, just typing at the same time :)
0
 
emi_sastraAuthor Commented:
Hi BToson,

Thank you very much for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.