|
Home > Archive > Programming with dBASE > February 2006 > Number of characters in entryfield
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 |
Number of characters in entryfield
|
|
|
| If I set the MaxLength of an Entryfield to say 75 and Width to say 80 I still can only enter 26 characters (letters) in the Entryfield. Can someone please help me to understand why and to "lift" this limit.
Gratefully Chris
| |
| Jan Hoelterling 2006-02-16, 7:23 am |
| Hi Chris,
your question is a bit vague - can you please clarify under what
circumstances this happens and what version of dBase you are using?
For example, are you datalinking a table field to an entryfield control? If
so, the entryfield will automatically take on the limitations from the table
field. An entryfield without a datalink defaults to a maximum length of 25,
which you can overwrite with the maxlength property.
Jan
| |
| *Lysander* 2006-02-16, 9:23 am |
| Jan Hoelterling schrieb:
> An entryfield without a datalink defaults to a maximum length of 25,
> which you can overwrite with the maxlength property.
.... which in turn does/did not work in dBase 7.01
.... but explicitly writing a string to the value does the trick
.... which is why I am initializing all entryfields which have to
have a capacity of > 25 in the Form.OnOpen-Event like this:
this.EntryField1.Value = space(35)
and, voilá, the internal 25-char-limit is broken.
ciao,
André
| |
|
| *Lysander* Wrote:
> Jan Hoelterling schrieb:
>
> ... which in turn does/did not work in dBase 7.01
> ... but explicitly writing a string to the value does the trick
>
> ... which is why I am initializing all entryfields which have to
> have a capacity of > 25 in the Form.OnOpen-Event like this:
>
> this.EntryField1.Value = space(35)
>
> and, voilá, the internal 25-char-limit is broken.
>
> ciao,
> André
Hey André.
Your solution seems to work fine in Visual dBase 5.7 which I have.
Thanks
Chris
| |
|
| Jan Hoelterling Wrote:
> Hi Chris,
>
> your question is a bit vague - can you please clarify under what
> circumstances this happens and what version of dBase you are using?
>
> For example, are you datalinking a table field to an entryfield control? If
> so, the entryfield will automatically take on the limitations from the table
> field. An entryfield without a datalink defaults to a maximum length of 25,
> which you can overwrite with the maxlength property.
>
> Jan
>
>
Hey Jan.
As you will see from my answer to Andrč I followed his example which seems to work fine.
Thanks
Chris
|
|
|
|
|