Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo problem with ControlSource
Message
De
11/07/2008 15:07:14
 
 
À
11/07/2008 15:00:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01330691
Message ID:
01330696
Vues:
22
>Here is a fragment of my code:
>
>with someobject
>*!* Populate Item data
>SELECT curItemData
>.txtCustomer.Value = curItemData.customer
>.txtSku.Value = curItemData.sku
>.txQCName.Value = curItemData.fullname
>.pcBarcode = curItemData.barcode
>WITH .cboDefects
> IF EMPTY(.ControlSource)
> TRY
> .ControlSource = 'curItemData.defect_id'
> CATCH TO oErr
> FINALLY
> ENDTRY
> *.ControlSource = 'curItemData.defect_id'
> ENDIF
> .Requery()
>ENDWITH
>endwith
>And here is an error I am getting:
>Alias 'CURITEMDATA' is not found. frmseconds.cbodefects.ControlSource 0
>If it's not found then how come it did not fail in any line above the erroring line?
>
>Thanks for help.

Did you close the cursor somewhere after this code?
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform