Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serious bug in our application
Message
De
20/03/2006 19:14:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/03/2006 18:47:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01105978
Message ID:
01106059
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
>>Hi everybody,
>>
>>We're using a special combobox class, which uses 5 as RowSourceType (array). We have NULL in our field table which is a controlsource for the combobox. We should be able to choose this value. The array has NULL in it. However, the combo's value becomes empty (and not NULL) when we switch to this value. (this.aRowSource[this.ListIndex, this.BoundColumn] shows NULL, but value shows empty)
>>
>>Is where a way to fix our class to work correctly with NULLs? Or comboboxes could not handle NULLs at all? Or it's only the problem with certain RowSourceTypes? We could not find anything regarding NULLs in the Help for comboboxes...
>>
>>Our whole application has this serious problem, which I found today accidentally. We need a way to fix the problem.
>>
>>Thanks in advance.
>
>VFP convert every List's item into the SET("NULLDISPLAY") string,
>and put the selected list's item into the controlsource
>( with VAL() conversion for an numeric source )
>
>NULL is not usable

In that case, how about this workaround: have a special string, say "(null)" in the combo for where we should have real nulls, then when saving, if there's this string in the field that's cbo's controlsource, replace that string with a real null.

How bout that?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform