Open Brace with nested "if" doesn't work

Open Brace with nested "if" doesn't work

1
NewbieNewbie
1

    Jul 28, 2005#1

    Hi,

    I'm testing software with Ratonal Robot (SQA = basic dialect). In my wordfile I have

    open brace strings ... "If" "Select Case" For"
    close brace strings.... "End If" "End Select" "Next"

    This works fine, as long I do not have nested statements like:

    Code: Select all

          If   bla Then
               If blu Then
                  do something
               Else If
                  do something
               End If  
          Else If 
               If blu Then
                  do something
               Else If
                  do something
               End If  
          End If
    The matching "End If" for the first If is not found. Is there any posibility to get that to work?

    Thanks

    6,683583
    Grand MasterGrand Master
    6,683583

      Jul 17, 2006#2

      The problem here is that the word "If" is also a word in "End If" and in "Else If". UltraEdit cannot know that the "If" in "End If" and "Else If" should be ignored. The only solution I have found is following:

      /Open Brace Strings = "Then" "Select Case" For"
      /Close Brace Strings = "End If" "End Select" "Next"

      Well, not really good, but better than nothing. It's always bad if a language is based on identifier terms and not on identifier words.
      Best regards from an UC/UE/UES for Windows user from Austria