Function Strings (for Visual Basic?)

Function Strings (for Visual Basic?)

35
Basic UserBasic User
35

    Jun 04, 2006#1

    Hi-

    I am having some problems with one of my Function Definition Strings and hope someone can help.

    Here are two lines of relevant code:

    Public Sub CustomOnEnterControl(ControlID)
    Public Sub CustomOnLeaveTab


    The relevant Function String:
    /Function String 2 = "%[ ^t]++^{Public^}^{Private^} ^{Function^}^{Sub^}^(*^)$"


    What I want to display in the Function List:

    Public Sub CustomOnEnterControl
    Public Sub CustomOnLeaveTab

    What I don't know how to do:

    How can I strip any parenthetical strings at the end of these lines: "(ControlID)" in my example?

    I tried replacing "$" with "[($]" but that caused a mess...

    With Regards-
    Sam

    6,675585
    Grand MasterGrand Master
    6,675585

      Re: Function Strings (for Visual Basic?)

      Jun 04, 2006#2

      Try this function string:

      /Function String 2 = "%[ ^t]++^{Public^}^{Private^} ^{Function^}^{Sub^} +^([0-9A-Za-z_]+^)"

      In your function string "^(*^)" selected everything after "Function" or "Sub" till end of line for the function list.

      With my " +^([0-9A-Za-z_]+^)" only the word after "Function" or "Sub" is selected for the function list.
      Best regards from an UC/UE/UES for Windows user from Austria

      35
      Basic UserBasic User
      35

        Re: Function Strings (for Visual Basic?)

        Jun 05, 2006#3

        Thanks again for your help Mofi-
        With Regards-
        Samir