[Gambas-user] Code Editor Problem

Kad Mann nospam.nospam.nospam at ...626...
Sat Oct 17 10:54:33 CEST 2009


On Sat, 2009-10-17 at 10:52 +0200, Doriano Blengino wrote:
> Kad Mann ha scritto:
> > This looks like a bug to me.
> >
> > If I create a module name modConstants and add these two lines:
> >
> > PUBLIC CONST BTN_CANCEL AS Integer = 0
> > PUBLIC CONST BTN_OK AS Integer = 1
> >
> > If I then edit, say, FMain, I can then refer to those constants by
> > typing the module name and a period. Gambas will then show me BTN_CANCEL
> > and BTN_OK in a popup window.
> >
> > No such thing happens if the module name is from 1 to 3 characters in
> > length. The problem is, I need a module to be called k, nothing else,
> > and I need the constants to be displayed when I type k and a period.
> >
> > I am working on a huge translation project that has 800+ constants and I
> > want to save both thousands of needless key strokes and needless hours
> > copying and pasting a longer module name.
> >
> > I could find no documentation regarding limitations on the name of
> > modules.
> >   
> I think it is not a limitation on the module's name, but a limitation on 
> the auto-completion routine of the IDE. It seems that auto-completion 
> waits for three characters before starting to clobber your editor with 
> popups windows; but it would make sense to enable anyway the 
> autocompletion if you type in a dot.

Yes, that's what I was thinking.

>  This is not an answer to your 
> question, but may help anyway.

No problem. Thanks for replying.





More information about the User mailing list