Results 1 to 13 of 13

Thread: stupid qst...

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,937

    stupid qst...

    Why when copy code from post instead the have only a line ... have for each line of code the progressive number of code???? similar:

    1.
    '*************************************************************
    2.
    '* MsgBoxEx() - Written by Aaron Young, February 7th 2000
    3.
    '* - Edited by Philip Manavopoulos, May 19th 2005
    4.
    '*************************************************************
    5.

    6.
    Option Explicit
    7.

    8.
    Private Type CWPSTRUCT
    9.
    lParam As Long
    10.
    wParam As Long
    11.
    message As Long
    12.
    hwnd As Long
    13.
    End Type
    14.

    15.
    'Added by manavo11
    16.
    Private Type RECT
    17.
    Left As Long

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: stupid qst...

    That's a result of poor "code highlighter" implementation - lots of people suffer from that.
    If you quote the post first then you will be able to copy code and paste it into your code editor without any problem.
    Also, code posted with simple CODE tags can be copy/paste without quoting post.

    I personally always use CODE tags - simple but no hassle either.

  3. #3

  4. #4
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: stupid qst...

    The forums should remove [HIGHLIGHT=vb], that is not very useful, if not provide a way to convert back to normal code (like some other forums are doing)
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  5. #5
    Frenzied Member CoachBarker's Avatar
    Join Date
    Aug 2007
    Location
    Central NY State
    Posts
    1,121

    Re: stupid qst...

    All I do is copy it into word, remove the formatting and the numbers then paste it into my project. Takes about 30 seconds.
    Thanks
    CoachBarker

    Code Bank Contribution
    Login/Manage Users/Navigate Records
    VB.Net | C#

    Helpful Links: VB.net Tutorial | C Sharp Tutorial | SQL Basics

  6. #6
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: stupid qst...

    A lot of ways to do it, some ways just take 2 seconds, but none of them should be necessary if the forums remove the tag [HIGHLIGHT=vb] and not allow anyone to use it.

    This problem should not be there in first place. [vb Code] tag gives more problem than it can help, particularly to new comers who has not much programing skills.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  7. #7
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: stupid qst...

    Quote Originally Posted by CoachBarker
    All I do is copy it into word, remove the formatting and the numbers then paste it into my project. Takes about 30 seconds.
    That works and in fact it's the way the two links in my signature work, and using them is faster than doing it manually, but copying to Notepad is the fastest way.

  8. #8

  9. #9
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: stupid qst...

    Yes, I only knew that after my first 100 posts. I think it happens the same to others. Even worst for this OP, after 218 posts he is still suffering. And you are lucky if you have a fast internet access.

    I wrote a small piece of code in an Excel add-in that can do the job properly and quicker than use {Quote}, but I really hate that.

    From time to time you can see someone posts only one line of code such as "Set abc = xzy" and wraps it with [HIGHLIGHT=vb] tags. I don't know why they love to do that.
    Last edited by anhn; Aug 31st, 2008 at 09:31 AM.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: stupid qst...

    The highlight tags are very useful but you need to look at its uses beyond simple vb code. It also have many other syntaxe colorings: VB.NET, C#, SQL, etc
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: stupid qst...

    Quote Originally Posted by RobDog888
    The highlight tags are very useful but you need to look at its uses beyond simple vb code. It also have many other syntaxe colorings: VB.NET, C#, SQL, etc
    I will agree with others who say they are not - just take sql tags as an example and you will quickly realise how horrible color schema is.
    But not only it looks bad - weird colors confuse people who used to color schemas similar to those in SQL Navigator, TOAD, MS SQL, Visual Studio, etc...

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: stupid qst...

    Maybe the color schemes need tweaking but that shouldnt be a reason for it being useless. Everybody has different color preferences but it should stay similar to the native environment.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  13. #13
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: stupid qst...

    Quote Originally Posted by RobDog888
    Maybe the color schemes need tweaking but that shouldnt be a reason for it being useless. Everybody has different color preferences but it should stay similar to the native environment.
    I agree with that statement however there is always one schema in every utility that is known as "default" - it is nothing more than "most popular" color schema and that is what had to be implemented here.
    Since it wasn't and vast majority hate current colors the code highlighter basically became "useless" or perhaps pointless becose you cannot recognize keywords so it's hard to read code, etc, etc, etc...

    ... but that would more than enough arguments from me so I'm zipping up ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width