Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box - preventing truncated field values
Message
From
06/01/2006 11:19:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01083909
Message ID:
01084104
Views:
10
>Hi Cetin,
>
>Not sure if I agree with you <g>, Fabio's solution might be better in this case, but, unless I am mistaken, wouldn't it be more limited? For example, there is a limit in both the number of characters you can write (I believe 261 is the max) and with the content, for example:
>
>
.RowSource = ["Fournier, Michel", "A", "Basoz, Cetin", "B", "Lunardon, Fabio", "C"]
would not work; while
>
.AddListItem("Fournier, Michel",1,1)
> .AddListItem("A",1,2)
> .AddListItem("Basoz, Cetin",2,1)
> .AddListItem("B",2,2)
> .AddListItem("Lunardon, Fabio",3,1)
> .AddListItem("C",3,2)
>
would

The limitation applies to the length of a string constant in VFP (or a string entered in the PEM window), which is 255 characters. You can concatenate them, however, or have the string stored in a memo field somewhere, or in a text file.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform