Posted By: SEP2007 | Jan 25th, 2007 @ 7:06 AM
page 1 of 1
Comments: 14 | Views: 4368
SEP2007
SEP2007
"Give Everything Its Home"
This is my new "Try - Catch"  Structure !


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

                        Try
                                                              '****************'
                            try code                     '    PICTURE HERE    '
                            try code                     '    OF CATCH-BLOCK '
                            try code                     '     e.g. Piping       '
                                                              '      Picture.           '
                                                              '                            '
                                                              '****************
           


                                                          Catch ex As Exception
                                                          Msgbox ex.Message
                                                          End Try


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


Maybe should be in Coffee House.
littleguru
littleguru
<3 Seattle
What are you trying to tell us? I really don't understand!
jsampsonPC
jsampsonPC
SampsonBlog.com SampsonVideos.com
What do you mean? Were you trying to create significance in the whitespace or something? If so, maybe you should start coding in python instead of C# or VB Smiley
W3bbo
W3bbo
The Master of Baiters
jsampsonPC wrote:
What do you mean? Were you trying to create significance in the whitespace or something? If so, maybe you should start coding in python instead of C# or VB Smiley


SEP2007 seems to have difficulties in visualising how program code works in his head and wants the IDE to show a visualisation of language constructs in the background of the text-editor. (Like "pipes" and arrows showing program flow)

At least that's how I'm interpreting his incoherent posts.
jsampsonPC
jsampsonPC
SampsonBlog.com SampsonVideos.com
C3PO?

Dunno who that is, but I'm sorry if they jumped on you for not asking a highly-technical question Tongue Out I would, just as a friendly comment, ask that you not respond to people with things like "F8ck off" as your comment...that might get you in trouble with admins.

Anyway, I'm interested in your idea about creating custom formatting in an editor. Unfortunately, I don't understand your visual-demonstration, so could you write up a couple of descriptions, or examples, of what you mean?

Thanks!
W3bbo
W3bbo
The Master of Baiters
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.
W3bbo
W3bbo
The Master of Baiters
SEP2007 wrote:

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.


Yes, you can.



Don't confuse C++/Preprocessor Macros with IDE Macros. One is a form of metaprogramming, the other is just automating IDE tasks (i.e. what you're trying to do)
page 1 of 1
Comments: 14 | Views: 4368
Microsoft Communities