Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mover listbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Divers
Thread ID:
00689910
Message ID:
00696624
Vues:
13
Bill:

Putting this code in the form's Init is the wrong place. You are dimensioning your mover arrays in the form's Init so they are scoped to the Init event. As soon as the Init method finishes processing, the arrays go out of scope and cease to exist. I suspect the one item in the mover display is just a value "hangover".

Also, your table handling technique is probably better handled with a SQL-Select into an array. The locfile() stuff shouldn't be necessary as long as the file can be found along the Codemine path(s).

HTH

>Hi Steve
>Guess what, I've got that same problem where the source mover listbox only shows first item ( even through there are 66 in the table). Am using VFP 7 and CM 7. Am using the frmdataformcustom and put the array code in the form init event. I've never used the mover listbox before so have no experience to rely on. Here is the code. Maybe you can spot something.
>*================
>LOCAL m.count
>if used ("names")
> SELECT names
>else
> select 0
> use (locfile("names.dbf","DBF","Where is names?"));
> again alias names
>endif
>SCATTER MEMVAR MEMO
>COUNT TO m.count
>IF EMPTY(m.count)
> WAIT WINDOW "No names records in this Module" NOWAIT
> USE
> RETURN
>ENDIF
>DIMENSION aList[m.count], aPicked[m.count]
>COPY TO ARRAY aList FIELDS names.name_id
>thisform.cntmoverlistpair1.setvalue(@aList, @aPicked)
>return dodefault()
>*====================
>All help appreciated.
>Bill
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform