Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Requerying a combo
Message
De
29/05/2011 11:14:05
 
 
À
29/05/2011 11:05:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01512199
Message ID:
01512200
Vues:
109
This message has been marked as the solution to the initial question of the thread.
>Hi All:
>
>I have a combo that is bound to thisform.aView and has the following properties:
>
>rowsource - thisform.aView
>rowsourcetype - array
>
>Why am I seeing the following in the combo:
>
>one
>two
>three
>
>I should be seeing:
>
>one
>two
>
>
>DIMENSION laview[3]
>
>laview[1] = 'one'
>laview[2] = 'two'
>laview[3] = 'three'
>
>
>ACOPY(laView, thisform.aView)
>
>thisform.cboView.clear()
>thisform.cboView.Requery()
>thisform.cboView.refresh()
>thisform.cboView.Value = thisform.aView[1]
>
>
>DIMENSION laview[2]
>
>laview[1] = 'one'
>laview[2] = 'two'
>
>ACOPY(laView, thisform.aView)
>
>thisform.cboView.clear()
>thisform.cboView.Requery()
>thisform.cboView.refresh()
>thisform.cboView.Value = thisform.aView[1]
>
>
>Thanks,
>
>Yossi

ACOPY only expands the target array.
You should shrink thisform.aView before your second ACOPY()
...
DIMENSION thisform.aView[1]
DIMENSION laview[2]

laview[1] = 'one'
laview[2] = 'two'

ACOPY(laView, thisform.aView)
...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform