[Gambas-user] Maskbox mask & text entry

John Rose john.aaron.rose at ...626...
Wed Mar 18 12:30:12 CET 2015


I have a Maskbox with mask [A-Za-z][A-Za-z]. I noticed that the IDE does
not show the MaxLength property. I want the user to be able to enter
lower case & have the entry displayed as upper case for either of the 2
characters. When I run the attached Test app, it only seems to allow the
entry of 1 characted. When 'a' followed by 'd' is entered, the Maskbox
displays D and the Console shows from the Print statements carried out
by code conversion of lower case to uppercase:
SteckerMaskBox.MaxLength=0
SteckerMaskBox.Length=1
SteckerMaskBox.Text=a
SteckerMaskBox.Mask=[A-Za-z][A-Za-z]
Length=1
SteckerMaskBox.MaxLength=0
SteckerMaskBox.Length=1
SteckerMaskBox.Text=d
SteckerMaskBox.Mask=[A-Za-z][A-Za-z]
Length=1

What is the solution to allow a 2 character entry?

PS I'm using Gambas Stable Builds ppa with gambas version showing as
3.7.90 though Gambas IDE Title bar shows DEVELOPMENT VERSION - USE AT
YOUR OWN RISK. Could this 'Stable' ppa contain a jinxed Gambas version?

-- 

John



-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/gzip
Size: 9337 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150318/1531f185/attachment.gz>


More information about the User mailing list