Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5.0a Listbox from an array
Message
De
17/04/1998 11:44:20
 
 
À
17/04/1998 11:38:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00092903
Message ID:
00092906
Vues:
21
>I'm not sure if anyone out there has run into this, or if its something that I'm doing wrong. But, when I try to use an array as the rowsource of a listbox in VFP 5.0a it displays fine when you run the app from within VFP. But, when you compile it to an EXE and execute it, the listbox is empty. The array is there, its just that it doesn't display within the listbox.
>
>I've followed step-by-step from Microsoft's Knowledge Base article #Q129329 and it produces the same problem. To give a short synopsis of the article, it says to:
>
>1) Set the array as a new property of the form.
>
>2) Create the array from a SQL Select making sure to reference it as an object of the form within the forms Load method.
>
>3) Set the RowSourceType as 5-Array
>
>4) Set the RowSource as the array making sure to reference it as an object.
>
>This works fine as long as you only run the program within VFP, but as a compiled app the listbox is empty, though the array exists and has data.
>
>Is this another problem like having to have the main screen visible to use the Report Preview? I've tried that and it didn't help. So, if someone has seen this and solved it, please let me know what the answer is!
>
>Thanks
>Joe Pace

Two things:
1. Fire List.Requery at the end
2. It's better to use cursor as List.rowsource
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform