Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
sharayuanap

Member
Registered:
Posts: 10
Reply with quote  #1 
I'm trying to access the check box value(on ework designer) in server side vb script.
for example: if (ework.check1 = true) then..... end if.
In this case if i checked it, its working fine.
Then if i uncheck it still its working fine.
But if i check it again then it gives an exception "Conversion from text to boolean failed: Type mismatch.."

I'm getting same error if I do the reverse way i.e. uncheck, check, uncheck
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
It will be a 1 or 0, not true or false. Works when unchecked because 0 is the same as false, but 1 is not the same as true.

Could be 0 and -1, BTW, but to test the value just use:
Quote:
(ework.check1 != 0)

(Not sure if != is VBSpeak)


__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!