Tapatalk

Visual Basic Function List

Visual Basic Function List

2
NewbieNewbie
2

    Feb 24, 2005#1

    The VB function list does not include functions.

    e.g. Public Sub main() displays fine. But Public Function Pong() as boolean does not diapley. :(

    I am running v11.00a

    4
    NewbieNewbie
    4

      Aug 22, 2005#2

      I dont suppose you ever found a solution to this.

      I have found that the regular expression for Function strings is probably incorrect in teh WordFile.txt.

      It is

      /Function String = "%*^{Function^}^{Sub^}*("

      but if I use this regexp in UE itself (with UE regexps turned on) then it only
      finds Subs as well.

      If I modify this (in the wordfile) to
      /Function String = "%*^{Sub^}^{Function^}*("

      then it only finds Functions.

      I cant get the OR UE regexp to work properly and I think the help may be wrong - I use unix regexps usually.

      Can anyone help with a regexp to do the trick

        Aug 22, 2005#3

        OK, I have a solution. In the wordfile, replace the single line:

        /Function String = "%*^{Function^}^{Sub^}*("

        by:

        /Function String = "%*^(Sub*^)("
        /Function String 1 = "%*^(Function*^)("
        /Function String 2 = "%*^(Property [LG]et*^)("

        These will also just list the Sub and the name of the sub. If you want the full display then remove the ^( and ^) from each line

        112
        Power UserPower User
        112

          Aug 22, 2005#4

          Doesn't this ONLY work if these words are at the beginning of the line?

          Paolo
          There is no such thing as an inconsistently correct system...
          Therefore, aim for consistency; in the expectation of reaching correctness!

          4
          NewbieNewbie
          4

            Aug 22, 2005#5

            Thats what the %* is for (the % matches theg beginning of the line, and the * matches any char zero or more times)

            It certainly picks up private and public subs OK

            112
            Power UserPower User
            112

              Aug 22, 2005#6

              Cool! 8)

              (Learn something new every day!)

              Thanx,
              Paolo
              There is no such thing as an inconsistently correct system...
              Therefore, aim for consistency; in the expectation of reaching correctness!