Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with table update
Message
 
 
À
06/06/2007 14:21:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01231056
Message ID:
01231058
Vues:
12
*replace companyinfo.totalsurveys with numrecs
replace totalsurveys with numrecs IN companyinfo
>I had code that was working and now it doesn't. Can someone help me figure out why?
>
>The form load contains
>
>** form.load
>set deleted on
>
>use (addbs(fileloc) + "surveys\companyinfo") in 0 alias companyinfo order CompanyNam
>use (addbs(fileloc) + "surveys\history") in 0 alias tblhistory
>use (addbs(fileloc) + "bluebook\sites") in 0 alias sites order site_name
>use (addbs(fileloc) + "plans\pei") in 0 alias pei order permid
>
>set multilocks on

>= CURSORSETPROP('Buffering', 5, 'companyinfo')  && Enable table buffering
>
>select companyinfo
>set filter to yearproduced = gnSurveyYear
>dodefault()
>
>The PRG contains:
>
>select crsImport
>numrecs = reccount()
>replace companyinfo.totalsurveys with numrecs
>wait window transform(numrecs)     && confirms the proper value
>dimension errorarray(10)
>=tableupdate(0,.f.,'companyinfo','ErrorArray')
>select companyinfo
>
>but the new value for totalsurveys is NOT saved. The code runs without a hitch and I can't seem to get anything out of ErrorArray.
>
>Help please!!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform