Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record is out of range error
Message
De
25/09/2013 04:37:51
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Record is out of range error
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01584061
Message ID:
01584061
Vues:
54
Hi,
I have a form for user to input the customer code and then load their inventory lot record to the cursor.
I created a method to load the records from a file to the cursor and use in
the combobox control.
First or second time to call the method are no error, but sometime, randomly happend "Record is out of range" error when
run to the statement -> thisform.cboCusLotNo.ControlSource = "curCustLot.cuslotno"

Please advise.
Derek
* load_recrod()
IF USED('cusfile')
    SELECT cusfile 
    USE
ENDIF 
USE cusfile IN 0 ALIAS cusfile NOUPDATE    
SELECT cusfile
SELECT * FROM cusfile INTO CURSOR curCustLot ORDER BY cusfile.cuslotno
SELECT curCustLot
thisform.cboCusLotNo.ControlSource = "curCustLot.cuslotno"
thisform.cboCusLotNo.RowSource = "curCustLot.cuslotno,itmcode,bal"
thisform.cboCusLotNo.ListIndex = 1
thisform.cboCusLotNo.Refresh()
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform