Error description: Error DBCMD/2001 Workarea not in use: RDDNAME
Args:
Stack Calls
===========
Called from: => RDDNAME(0)
Called from: Test01.prg => TXBROWSE:SETRDD(3429)
Called from: Test01.prg => MAIN(24)
static function combine(mconscomp)
local mtemp
local oldarea := select()
local mType1 := 0
local oldfilter
local oldorder
local cOldAccount
cursorwait()
retain->(dbseek("z Total"))
retain->cost_price := 1
select csource
mtemp := "1000" //account
gl->(dbseek("0125")) // set flag to calculate consolidated balance sheet
gl->a14 := 1
cursorWait()
gl->(dbseek("1000"))
csource->(dbseek("1000"))
do while .not. eof()
select gl // target
seek mTemp
cOldAccount := mTemp
replace gl->start1 with gl->start1 + csource->start1
replace gl->start2 with gl->start2 + csource->start2
replace gl->ty1 with gl->ty1 + csource->ty1
replace gl->cf1 with gl->cf1 + csource->cf1
replace gl->ty2 with gl->ty2 + csource->ty2
replace gl->cf2 with gl->cf2 + csource->cf2
replace gl->ty3 with gl->ty3 + csource->ty3
replace gl->cf3 with gl->cf3 + csource->cf3
replace gl->ty4 with gl->ty4 + csource->ty4
replace gl->cf4 with gl->cf4 + csource->cf4
replace gl->ty5 with gl->ty5 + csource->ty5
replace gl->cf5 with gl->cf5 + csource->cf5
replace gl->ty6 with gl->ty6 + csource->ty6
replace gl->cf6 with gl->cf6 + csource->cf6
replace gl->ty7 with gl->ty7 + csource->ty7
replace gl->cf7 with gl->cf7 + csource->cf7
replace gl->ty8 with gl->ty8 + csource->ty8
replace gl->cf8 with gl->cf8 + csource->cf8
replace gl->ty9 with gl->ty9 + csource->ty9
replace gl->cf9 with gl->cf9 + csource->cf9
replace gl->ty10 with gl->ty10 + csource->ty10
replace gl->cf10 with gl->cf10 + csource->cf10
replace gl->ty11 with gl->ty11 + csource->ty11
replace gl->cf11 with gl->cf11 + csource->cf11
replace gl->ty12 with gl->ty12 + csource->ty12
replace gl->cf12 with gl->cf12 + csource->cf12
replace gl->ty13 with gl->ty13 + csource->ty13
replace gl->cf13 with gl->cf13 + csource->cf13
// ADD ACTUAL
replace gl->act1 with gl->act1 + csource->act1
replace gl->act2 with gl->act2 + csource->act2
replace gl->act3 with gl->act3 + csource->act3
replace gl->act4 with gl->act4 + csource->act4
replace gl->act5 with gl->act5 + csource->act5
replace gl->act6 with gl->act6 + csource->act6
replace gl->act7 with gl->act7 + csource->act7
replace gl->act8 with gl->act8 + csource->act8
replace gl->act9 with gl->act9 + csource->act9
replace gl->act10 with gl->act10 + csource->act10
replace gl->act11 with gl->act11 + csource->act11
replace gl->act12 with gl->act12 + csource->act12
if account = "3810"
*combine info on sale assets
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
replace gl->aa8 with gl->aa8 + csource->aa8
replace gl->aa9 with gl->aa9 + csource->aa9
replace gl->aa10 with gl->aa10 + csource->aa10
replace gl->aa11 with gl->aa11 + csource->aa11
endif
if account = "6005"
replace gl->dif1 with gl->dif1 + csource->dif1
replace gl->dif2 with gl->dif2 + csource->dif2
replace gl->dif3 with gl->dif3 + csource->dif3
replace gl->dif4 with gl->dif4 + csource->dif4
replace gl->dif5 with gl->dif5 + csource->dif5
replace gl->dif6 with gl->dif6 + csource->dif6
replace gl->dif7 with gl->dif7 + csource->dif7
replace gl->dif8 with gl->dif8 + csource->dif8
replace gl->dif9 with gl->dif9 + csource->dif9
replace gl->dif10 with gl->dif10 + csource->dif10
replace gl->dif11 with gl->dif11 + csource->dif11
replace gl->dif12 with gl->dif12 + csource->dif12
replace gl->dif13 with gl->dif13 + csource->dif13
replace gl->ly1 with gl->ly1 + csource->ly1
replace gl->ly2 with gl->ly2 + csource->ly2
replace gl->ly3 with gl->ly3 + csource->ly3
replace gl->ly4 with gl->ly4 + csource->ly4
replace gl->ly5 with gl->ly5 + csource->ly5
replace gl->ly6 with gl->ly6 + csource->ly6
replace gl->ly7 with gl->ly7 + csource->ly7
replace gl->ly8 with gl->ly8 + csource->ly8
replace gl->ly9 with gl->ly9 + csource->ly9
replace gl->ly10 with gl->ly10 + csource->ly10
replace gl->ly11 with gl->ly11 + csource->ly11
replace gl->ly12 with gl->ly12 + csource->ly12
replace gl->ly13 with gl->ly13 + csource->ly13
replace gl->a14 with gl->a14 + csource->a14
replace gl->aa1 with gl->aa1 + csource->aa1
replace gl->aa2 with gl->aa2 + csource->aa2
replace gl->aa3 with gl->aa3 + csource->aa3
replace gl->aa4 with gl->aa4 + csource->aa4
replace gl->aa5 with gl->aa5 + csource->aa5
replace gl->aa6 with gl->aa6 + csource->aa6
replace gl->aa7 with gl->aa7 + csource->aa7
replace gl->aa8 with gl->aa8 + csource->aa8
replace gl->aa9 with gl->aa9 + csource->aa9
replace gl->aa10 with gl->aa10 + csource->aa10
replace gl->aa11 with gl->aa11 + csource->aa11
replace gl->aa12 with gl->aa12 + csource->aa12
replace gl->aa13 with gl->aa13 + csource->aa13
* replace gl->act1 with gl->act1 + csource->act1
* replace gl->act2 with gl->act2 + csource->act2
* replace gl->act3 with gl->act3 + csource->act3
* replace gl->act4 with gl->act4 + csource->act4
* replace gl->act5 with gl->act5 + csource->act5
* replace gl->act6 with gl->act6 + csource->act6
* replace gl->act7 with gl->act7 + csource->act7
* replace gl->act8 with gl->act8 + csource->act8
* replace gl->act9 with gl->act9 + csource->act9
* replace gl->act10 with gl->act10 + csource->act10
* replace gl->act11 with gl->act11 + csource->act11
* replace gl->act12 with gl->act12 + csource->act12
endif
if account = "6108"
replace gl->a14 with gl->a14 + csource->a14
endif
if account = "7115"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "8415"
replace gl->a14 with gl->a14 + csource->a14
endif
if account = "8431"
replace gl->a14 with gl->a14 + csource->a14
endif
if account = "6109"
replace gl->a14 with gl->a14 + csource->a14
replace gl->aa1 with gl->aa1 + csource->aa1
replace gl->aa2 with gl->aa2 + csource->aa2
replace gl->aa3 with gl->aa3 + csource->aa3
replace gl->aa4 with gl->aa4 + csource->aa4
replace gl->aa5 with gl->aa5 + csource->aa5
replace gl->aa6 with gl->aa6 + csource->aa6
replace gl->aa7 with gl->aa7 + csource->aa7
replace gl->aa8 with gl->aa8 + csource->aa8
replace gl->aa9 with gl->aa9 + csource->aa9
replace gl->aa10 with gl->aa10 + csource->aa10
replace gl->aa11 with gl->aa11 + csource->aa11
replace gl->aa12 with gl->aa12 + csource->aa12
replace gl->aa13 with gl->aa13 + csource->aa13
endif
if account = "7010"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7020"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7030"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7035"
replace gl->a14 with gl->a14 + csource->a14
*combine info on sale assets
replace gl->aa1 with gl->aa1 + csource->aa1
replace gl->aa2 with gl->aa2 + csource->aa2
replace gl->aa3 with gl->aa3 + csource->aa3
replace gl->aa4 with gl->aa4 + csource->aa4
replace gl->aa5 with gl->aa5 + csource->aa5
replace gl->aa6 with gl->aa6 + csource->aa6
replace gl->aa7 with gl->aa7 + csource->aa7
replace gl->aa8 with gl->aa8 + csource->aa8
replace gl->aa9 with gl->aa9 + csource->aa9
replace gl->aa10 with gl->aa10 + csource->aa10
replace gl->aa11 with gl->aa11 + csource->aa11
replace gl->aa12 with gl->aa12 + csource->aa12
replace gl->aa13 with gl->aa13 + csource->aa13
endif
if account = "7037"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7038"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7040"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7050"
replace gl->a14 with gl->a14 + csource->a14
*combine info on sale assets
replace gl->ly1 with gl->ly1 + csource->ly1
replace gl->ly2 with gl->ly2 + csource->ly2
replace gl->ly3 with gl->ly3 + csource->ly3
replace gl->ly4 with gl->ly4 + csource->ly4
replace gl->ly5 with gl->ly5 + csource->ly5
replace gl->ly6 with gl->ly6 + csource->ly6
replace gl->ly7 with gl->ly7 + csource->ly7
replace gl->ly8 with gl->ly8 + csource->ly8
replace gl->ly9 with gl->ly9 + csource->ly9
replace gl->ly10 with gl->ly10 + csource->ly10
replace gl->ly11 with gl->ly11 + csource->ly11
replace gl->ly12 with gl->ly12 + csource->ly12
replace gl->ly13 with gl->ly13 + csource->ly13
endif
if account = "7060"
replace gl->a14 with gl->a14 + csource->a14
*combine info on sale assets
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7100"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7110"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7112"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7120"
replace gl->a14 with gl->a14 + csource->a14
*combine info on sale assets
replace gl->aa1 with gl->aa1 + csource->aa1
replace gl->aa2 with gl->aa2 + csource->aa2
replace gl->aa3 with gl->aa3 + csource->aa3
replace gl->aa4 with gl->aa4 + csource->aa4
replace gl->aa5 with gl->aa5 + csource->aa5
replace gl->aa6 with gl->aa6 + csource->aa6
replace gl->aa7 with gl->aa7 + csource->aa7
replace gl->aa8 with gl->aa8 + csource->aa8
replace gl->aa9 with gl->aa9 + csource->aa9
replace gl->aa10 with gl->aa10 + csource->aa10
replace gl->aa11 with gl->aa11 + csource->aa11
replace gl->aa12 with gl->aa12 + csource->aa12
replace gl->aa13 with gl->aa13 + csource->aa13
endif
if account = "7123"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7130"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
replace gl->a13 with 1 // make certain it is a corp
// CHANGED 1/16/99 TO ALLOW COMBINATION OF NON CORPORATE ENTITY
replace gl->a13 with csource->a13
endif
if account = "7140"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7150"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7160"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "6105"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7125"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "3808"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account = "7999"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account="8000"
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account="8435"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
if account="8440"
replace gl->a14 with gl->a14 + csource->a14
replace gl->a1 with gl->a1 + csource->a1
replace gl->a2 with gl->a2 + csource->a2
replace gl->a3 with gl->a3 + csource->a3
replace gl->a4 with gl->a4 + csource->a4
replace gl->a5 with gl->a5 + csource->a5
replace gl->a6 with gl->a6 + csource->a6
replace gl->a7 with gl->a7 + csource->a7
replace gl->a8 with gl->a8 + csource->a8
replace gl->a9 with gl->a9 + csource->a9
replace gl->a10 with gl->a10 + csource->a10
replace gl->a11 with gl->a11 + csource->a11
replace gl->a12 with gl->a12 + csource->a12
replace gl->a13 with gl->a13 + csource->a13
endif
* if account == "2070" .or. account == "3345" .OR. account == "3452";
* .or. account == "3538"
*
* replace gl->cf1 with 0
* replace gl->cf2 with 0
*
* replace gl->cf3 with 0
* replace gl->cf4 with 0
*
* replace gl->cf5 with 0
* replace gl->cf6 with 0
*
* replace gl->cf7 with 0
* replace gl->cf8 with 0
*
* replace gl->cf9 with 0
* replace gl->cf10 with 0
*
* replace gl->cf11 with 0
* replace gl->cf12 with 0
*
* replace gl->cf13 with 0
*
* endif
* gl->(dbseek("2070"))
* ? gl->cf13
*
* gl->(dbseek("3345"))
* ? gl->cf13
*
* gl->(dbseek("3452"))
* ? gl->cf13
*
* gl->(dbseek("3538"))
* ? gl->cf13
select csource
skip
mtemp = account
enddo
cursorwait()
select gl
seek "2010"
replace1a()// replace ty's with 0,function in calc.prg
seek "2019"
replace1a()// replace ty's with 0,function in calc.prg
seek "2020"
replace1a()// replace ty's with 0,function in calc.prg
seek "2021"
replace1a()// replace ty's with 0,function in calc.prg
seek "2022"
replace1a()// replace ty's with 0,function in calc.prg
//ELIMINATE 7/22/00 KEEP DEPRE OUT OF CASH FLOW
* seek "2023"
* replace1a()// replace ty's with 0,function in calc.prg
seek "2024"
replace1a()// replace ty's with 0,function in calc.prg
seek "2025"
replace1a()// replace ty's with 0,function in calc.prg
seek "2026"
replace1a()// replace ty's with 0,function in calc.prg
seek "2027"
replace1a()// replace ty's with 0,function in calc.prg
seek "2028"
replace1a()// replace ty's with 0,function in calc.prg
seek "2029"
replace1a()// replace ty's with 0,function in calc.prg
seek "2031"
replace1a()// replace ty's with 0,function in calc.prg
seek "2032"
replace1a()// replace ty's with 0,function in calc.prg
seek "2033"
replace1a()// replace ty's with 0,function in calc.prg
seek "2034"
replace1a()// replace ty's with 0,function in calc.prg
seek "2035"
replace1a()// replace ty's with 0,function in calc.prg
seek "2036"
replace1a()// replace ty's with 0,function in calc.prg
seek "2037"
replace1a()// replace ty's with 0,function in calc.prg
seek "2038"
replace1a()// replace ty's with 0,function in calc.prg
seek "2030"
replace1a()// replace ty's with 0,function in calc.prg
seek "2010"
mconsmem1 =cf1
mconsmem2 =cf2
mconsmem3 =cf3
mconsmem4 =cf4
mconsmem5 =cf5
mconsmem6 =cf6
mconsmem7 =cf7
mconsmem8 =cf8
mconsmem9 =cf9
mconsmem10 =cf10
mconsmem11 =cf11
mconsmem12 =cf12
mconsmem13 =cf13
replace1() // cf's to 0 function in calc.prg
seek "2019"
cfchange()
cursorWait()
replace1() // cf's to 0 function in calc.prg
seek "2020"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2021"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2022"
cfchange()
replace1() // cf's to 0 function in calc.prg
//ELIMINATE 7/22/00 KEEP DEPRE OUT OF CASH FLOW
* seek "2023"
* cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2024"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2025"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2026"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2027"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2028"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2029"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2031"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2032"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2033"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2034"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2035"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2036"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2037"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2038"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2030"
cfchange()
replace1() // cf's to 0 function in calc.prg
seek "2040"
cfchange()
replace cf1 with mconsmem1
replace cf2 with mconsmem2
replace cf3 with mconsmem3
replace cf4 with mconsmem4
replace cf5 with mconsmem5
replace cf6 with mconsmem6
replace cf7 with mconsmem7
replace cf8 with mconsmem8
replace cf9 with mconsmem9
replace cf10 with mconsmem10
replace cf11 with mconsmem11
replace cf12 with mconsmem12
replace cf13 with mconsmem13
[color=#404040]
msgwait("The consolidation has been updated with Entity No."+str(mconscomp * 100,2)+".","Notice",1.5)[/color]
csource->(dbclosearea())
cursorwait()
select(oldarea)
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 49 guests