Tech Off Post

Single Post Permalink

View Thread: Not Serious - Foolish, Try Catch
  • User profile image
    SEP2007

    W3bbo wrote:
    
    SEP2007 wrote:Try
    Me.Richtextbox.Loadfile("thefile")
    Catch ex as Exception
    Msgbox ex.message
    End Try

    was reformmated as

    '----------------------------------------------------------'
    Try
           Me.Richtextbox.Loadfile("thefile")

                                         Catch Ex as Exception
                                         '*****************'
               
                                           Msgbox ex.message

                                         '*****************'

    End Try
    '----------------------------------------------------------'


    Its a little over the top here but I'm just trying to get across a basic principle. That you could have more than just tabs as formatting.
    And you could specify your own formating rules. And perhaps have different formatting rule (auto-formatting) for say, Events, Subs, Functions, For, While, etc.

    Does that make sense ?


    You can do all that with IDE Macros.


    Ok thanks, can I do it in the VB editor ? Can I have the Macros working in the VB editor ?


    .
    .
    .
    .
    .


    Have been looking at it, I think i can.