Detab in IDE and Error info

Discussion in 'Basic4ppc Wishlist' started by agraham, Nov 11, 2007.

  1. agraham

    agraham Expert Licensed User

    A couple for the wishlist.

    I would like to see the detab function, as implemented in the device, provided in the IDE. I like my code to look neat and properly indented. When cutting and pasting and arranging indents I would find it easier to to it with spaces, make a selection, and then retab.

    I would also like somes means, like global variables or an error control/object to be able to access a string describing the last error and maybe an error number to select ..case on.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You could change the TabSize to 1 (Tools - IDE Options - Tab Size) to get a similar effect.
    I agree about the error info, and it will be implemented in the future.
    The message string is not too reliable as it changes based on the device language.
     
  3. agraham

    agraham Expert Licensed User

    The effect is similar but not quite the same as you still need to use the tab key. With spaces I could "rock" with my right hand between the space bar and delete or backspace keys to get the indentation pattern that I want and then retab to my chosen tab size. BTW I use the mouse with my left hand. I guess the tab key is more convenient if you use the mouse with your right hand
     
  4. agraham

    agraham Expert Licensed User

    I would have thought that was a good thing as you can then use it in a message box if you want to. But yes, programmatically, you would also need some locale independent indicator such as an error number.
     
Loading...