Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox
Message
 
 
À
24/04/2001 14:04:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00498679
Message ID:
00499189
Vues:
19
>>Another quick question...
>>
>>How to clear array so that the listbox becomes clear again when selecting a different search type? I tried RELEASE ThisForm.laSQL (error) and RELEASE laSQL (does not work). I also tried Thisform.laSQL[1,1]="" (only clears first row). What should I do?
>>
>>Chuck
>>
>>>>>I took a brief look into the form (didn't have time to work on it in details). I think, the main prioblem was that you have to select into thisform.laSQL and RowSource for ListBox should be thisform.laSQL, not just laSQL, because otherwise it just goes out of scope, that's why you didn't see anything in your listbox. Basically, it was the only change I made (with few small others).
>
>In addition to what Kam said, to clear the array contents you could:
>
STORE "" TO <i>arrayname</i>
Exactly! In Init and before performing search you can put:
store "" to thisform.laSQL and it will work perfectly.

Sorry, haven't responded earlier, since I was busy with some modifications in couple of my projects...
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform