Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with table update
Message
De
06/06/2007 14:21:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Problem with table update
Divers
Thread ID:
01231056
Message ID:
01231056
Vues:
56
AARGHHH!!!
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
** don't know what this line is about UT website wants to put it in = cursorsetprop('buffering', 5, 'companyinfo')  && Enable table buffering
= CURSORSETPROP('Buffering', 5, 'companyinfo')  && Enable table buffering

select companyinfo
set filter to yearproduced = gnSurveyYear
dodefault()
<pre>
The PRG contains:
<pre>
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!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform