[Gambas-user] Correct strategy for VB static var conversion to Gambas?

Christof Thalhofer chrisml at deganius.de
Wed Jun 2 09:15:43 CEST 2021

Am 01.06.21 um 17:14 schrieb John Anderson:

> I saw your good guy / bad guy message and snorted coffee all over my 
> keyboard.   Yeah, I see how it works with the Gambas guys 
> now...<Laughing!!>


I like to have some fun at work. But not everyone can always follow that.

> Now you know why I wanted a "static" declare - that dramatically changes 
> the whole conversion process when we deal with many state machine 
> functions.   And now you know why I wanted a Data Breakpoint feature.  
> And seeing how some of these sequenced state machines have 5 states, and 
> others have hundreds of states...you know why I was asking about a how 
> to show just one procedure at a time in IDE.


> If you're looking at a module file with many long procedures, it would 
> be helpful if there was a way to keep the window vertical scroller bar 
> limited to the current procedure or declare section. That makes it 
> easy-er to scroll up and down over one very long procedure in a file 
> without overshooting top or bottom.  For instance - nothing changes on 
> the IDE as it is.  BUT if I open a file with long procedures I can tick 
> on an option where the vertical scroller is limited to just one 
> procedure or declaration section at a time.  In that mode I select 
> procedures to view with the drop-down box that is already there.  Or 
> maybe it's MouseAlt-Drag on scroller bar engages "Limit to One 
> Procedure" function (ie. use  "Left mouse" button, but we never use that 
> term any more so as to not discriminate against left-handers who use 
> reversed mouse devices - new docs rules).  It looks like MouseAlt 
> function is available on scroller bar.  Or whatever method works best

I agree that this would be a handy feature but I personally wouldn't
need it.

As I said to you earlier: Please have a look at the bookmark feature
first. When I have the "joy" to work with very large methods – this is
something that happens when speed is important and one works with
GoSub/Return to simulate functions inside functions but without leaving
the scope, I use bookmarks.

Usually I have two or three bookmarks set inside the method with Ctrl-B
at the places I'm currently working on and then jump with
Alt-Pgup/Pgdown from one to the other.

Did you try it?

Did you also try Ctrl-Alt-Enter and Ctrl-Enter?

Alles Gute

Christof Thalhofer

Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210602/4872d787/attachment.sig>

More information about the User mailing list