Weird Press Enter > formatting error in IDE

View: New views
2 Messages — Rating Filter:   Alert me  

Weird Press Enter > formatting error in IDE

by richard terry-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Version 1440.

This should be reproducable.

I'd typed in the  function name and started  writing a comment:

Public Function Letter_Validate_Contents() as Boolean
      'Checks that there is adequate content in a letter
      'if there is returns a true flag
      '-------------------------------------------------
end

But I usually segregate my comments by putting a line top and bottom, so I
clicked on the editor after the word Boolean, thing the <enter> action would
insert a blank line.

What it did was shift the whole of my subroutine contents **After** the  'end'
keyword of the subroutine, as per the followin piccies.

If you look at piccie number 1 you can see the cursor flash captured after the
word Boolean, and in piccie number 2, the result, with the cursor 2 lines
down (I only hit one <enter> action.

Regards


Richard



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

wierd_hit_enter_format_error1.png (14K) Download Attachment
wierd_hit_enter_format_error2.png (15K) Download Attachment

Re: Weird Press Enter > formatting error in IDE

by Benoit Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On lundi 30 juin 2008, richard terry wrote:

> Version 1440.
>
> This should be reproducable.
>
> I'd typed in the  function name and started  writing a comment:
>
> Public Function Letter_Validate_Contents() as Boolean
>       'Checks that there is adequate content in a letter
>       'if there is returns a true flag
>       '-------------------------------------------------
> end
>
> But I usually segregate my comments by putting a line top and bottom, so I
> clicked on the editor after the word Boolean, thing the <enter> action
> would insert a blank line.
>
> What it did was shift the whole of my subroutine contents **After** the
> 'end' keyword of the subroutine, as per the followin piccies.
>
> If you look at piccie number 1 you can see the cursor flash captured after
> the word Boolean, and in piccie number 2, the result, with the cursor 2
> lines down (I only hit one <enter> action.
>
> Regards
>
>
> Richard

This bevahiour is not weird: you must type the END keyword first (like in your
mail, unlike in your screenshots), otherwise the IDE will insert it
automatically.

Regards,

--
Benoit Minisini

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user