No, If I check ANY of the three (txtC1, txtC2, txtC3) alone, it works ...meaning they all equates to "false"
if(txtC1 =="false") .... this statement works
if(txtC2== "false)".....th is statement works
if(txtC3 == "false") .... this statement also works.
Problem is when I try to AND them, then it doesnt work.
(if txtC1 == "false"...
User Profile
Collapse
-
Sorry for not mentioning what i am looking to achieve.
Goal: If the form is Not new AND txtC1 AND txtC2 AND txtC3 == "false", dont open the form.
I put a line break on line 15 and looks like all values are "false".
As menetioned in original post, if I try
txtC1 == "false" or txtC2 == "false" or txtC3 == "false" individually, I get the desired...Leave a comment:
-
AND statement
Code:public void FormEvents_Loading(object sender, LoadingEventArgs e) { XPathNavigator root = MainDataSource.CreateNavigator(); XPathNavigator C1 = this.CreateNavigator(); string txtC1 = C1.SelectSingleNode("/my:myFields/my:field76", this.NamespaceManager).Value; XPathNavigator C2 = this.CreateNavigator(); string
Last edited by tlhintoq; May 21 '09, 03:26 PM. Reason: [CODE] ... your code here ... [/CODE] tags added
No activity results to display
Show More
Leave a comment: