Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set value to be empty independent on type('this.value')
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00300386
Message ID:
00301071
Vues:
24
Mark,

I've satisfied with the ResetToDefault() method. I'm also going to make more changes in my classes. I have btcc_multilist.ListClear() method (my collegue designed it), which clears all selections (it goes through all array of list's values). I'll try btcc_multilist.container1.list1.ResetToDefault('selected'). I beleive it should work faster.

>>>The only thing I can think of that works universally is setting the value to null which is not really empty. To the best of my knowledge, to properly do this based on data type, you would have to use a case statement and the Type() function.
>>
>>Mark,
>>
>>I believe that you are correct, however using VarType() instead of Type() would execute faster.
>
>You are correct. The ResetToDefault() method would only work if the Value property [or whatever property] at instantiation is of the desired data type and value.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform