Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with table update
Message
From
06/06/2007 14:21:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Problem with table update
Miscellaneous
Thread ID:
01231056
Message ID:
01231056
Views:
55
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!!
Next
Reply
Map
View

Click here to load this message in the networking platform