[Gambas-user] Code Editor Problem

Doriano Blengino doriano.blengino at ...1909...
Sat Oct 17 10:52:50 CEST 2009


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. This is not an answer to your 
question, but may help anyway.

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."





More information about the User mailing list