User Profile

Collapse

Profile Sidebar

Collapse
andyoye
andyoye
Last Activity: May 21 '09, 11:14 PM
Joined: May 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • andyoye
    replied to AND statement
    in .NET
    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"...
    See more | Go to post

    Leave a comment:


  • andyoye
    replied to AND statement
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • andyoye
    started a topic AND statement
    in .NET

    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
    ...
    See more | Go to post
    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
Working...