|
Home > Archive > Programming with dBASE > March 2006 > Entry field wont allow > 10 significane digits
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Entry field wont allow > 10 significane digits
|
|
| Tom Gormley 2006-03-24, 11:24 am |
| Dbase Plus 2.6 seems to impose a maximum of 10 significant digits on entry fields used for numeric input. I cannot understand where this is coming from. See attached bitmap
There a 25 char limit for entryfield class objects that accept strings but it can be increased by setting the value property by using someting like
this.ENTRYFIELD_VALUE.value = space(50)
But do not know how to do this for a entry field on that takes a numeric entry. (the entry field has no datalink because its just accepting user input)
This problem only appeared when i upgraded to dbase plus.
| |
| Les Shewchuk 2006-03-24, 8:24 pm |
| Just tested and I can see what you're saying.
To get around this, don't use numbers, leave it as characters, but use the
picture and function to restrict what the user can enter. This works for 35
characters.
this.ENTRYFIELD1 = new ENTRYFIELD(this)
with (this.ENTRYFIELD1)
height = 1.0
left = 1.0
top = 0.5
width = 36.0
picture = " 99999999999999999999
999999999999999"
function = "#"
value = " "
maxLength = 35
endwith
Les Shewchuk
"Tom Gormley" <tomgormley@sirius-is.co.uk> wrote in message
news:WxAxPX2TGHA.2320@news-server...
> Dbase Plus 2.6 seems to impose a maximum of 10 significant digits on entry
> fields used for numeric input. I cannot understand where this is coming
> from. See attached bitmap
>
> There a 25 char limit for entryfield class objects that accept strings but
> it can be increased by setting the value property by using someting like
> this.ENTRYFIELD_VALUE.value = space(50)
>
> But do not know how to do this for a entry field on that takes a numeric
> entry. (the entry field has no datalink because its just accepting user
> input)
>
> This problem only appeared when i upgraded to dbase plus.
>
>
--------------------------------------------------------------------------------
| |
| Gerald Lightsey 2006-03-25, 3:24 am |
| On Fri, 24 Mar 2006 12:10:12 -0500, in the dbase.programming group, Tom
Gormley said...
> Dbase Plus 2.6 seems to impose a maximum of 10 significant digits on
> entry fields used for numeric input. I cannot understand where this
> is coming from. See attached bitmap
>
> There a 25 char limit for entryfield class objects that accept strings
> but it can be increased by setting the value property by using someting
> like this.ENTRYFIELD_VALUE.value = space(50)
>
> But do not know how to do this for a entry field on that takes a
> numeric entry. (the entry field has no datalink because its just
> accepting user input)
>
> This problem only appeared when i upgraded to dbase plus.
The spinbox seems to be much more comfortable with numeric input. I
have an application where latitudes and longitudes (numeric 18,13 ) are
routinely entered including minus longitudes like -109.1234567890123.
Gerald
|
|
|
|
|