topic
stringlengths
1
63
text
stringlengths
1
577k
dbfs on Network : wich performance method?
[b:q784qejs]a question [/b:q784qejs] I have a dbf on the root of application I use it for check : on this file I have the folder of archives and the year of operation sample year => 2007 DBFPATH = > 2007\data then there are info data of school . these data are used on reports and other procedures I must open and manage this file at the same mode ( txdata) or I must open it on esclusive mode ?
dbfs on Network : wich performance method?
Silvio, I first started programming for networks in the old MS-DOS days, using Clipper. That was over 30 years ago. My clients ( small businesses ) may use anywhere from 2 to 20 computers in each location, and they must all be able to work on the same files, inputting data, all day long. My application has been meeting their needs, quickly and easily, for that whole time. Many years ago, when moving to FWH, I also adopted tData ( the tdatabase extension ) that James provided. It has never failed me, and made my programming cleaner and easier. Several years back, I followed James advise on OOPS and moved most of my program into Classes and Methods. I condensed everything to eliminate duplications of processes. It was an excellent move for me, making the code much easier to support, by updates, extensions, and of course debugging. It is a lot of work. I agree to that. But once it is done, everything else falls into place and thereafter it becomes much easier. I also use resource files which I know you do not like. However, these allow me to easily create, and enhance, very complex data screens that provide for what my clients want. I recently have attempted to change to a @ x,y format, and so far I find it very difficult to get what I want. I've looked at samples, what little we have for reference material, and asked questions, but so far nothing comes close to giving me the look and feel of my .rc controls, and dialogs. Change is challenging, but in the end, perhaps we do far better for our customers when we take that step. My clients pay me to meet their needs, and so they will always be my top priority. Finally, for networking, my application will support any number of computers through Microsoft's native networking, but the performance can become very slow and less reliable. So I have put in the capability for them to use the Advantage Database Server, client/server, software. They are then safe and get incredibly fast performance across the network. Some people have experimented with some other Client/Server options but so far no one has posted about success with other systems ( for .dbf ). Tim
dbfs on Network : wich performance method?
Silvio, [quote:2vpx0hwx]I must open and manage this file at the same mode ( txdata) or I must open it on esclusive mode ?[/quote:2vpx0hwx] Generally the only reason you need open files in exclusive mode is to pack and/or reindex them. If every user has to have access to these files, then you need to open them in shared mode. James
dbfs on Network : wich performance method?
Tim, Thanks for your input and the kind words. James
dbfs on Network : wich performance method?
Dear Tim, I too started with the Clipper Autumn 86 and then I purchased the Clipper Summer 87 ( I also have the 4 original floppy dishes 5 1/4) of Nuntucket. On dos it seem too easy I used Netuse made from super lib or Platet lib or another lib I not remember good and it run ok on Network with no problems When moving to FWHon 1992 (I purchade from a farmer of Bolzano called NOMOS the first fivewin 1.44 Package, this farmer made a clipper Magazzine in Italy ) I had my first problems. Before the forum did not exist and in the newsgroup they hardly answered you. Generally I always had the errors that I described in the first post and then I gave up and I only looked for small applications without the local network. [b:34dm2jao]I am a self-taught nobody taught me the basics of programming[/b:34dm2jao] I did classical high school and I started taking the first steps with the zx81, vic20, commodore64 and only in 1987 I used an ibm ps2 / 80 the first year of work when I was 19 years old. It is not true that I do not like the resource file, for an application that ran on w7 I had problems and after I converted the dialog in source @ x, y the program was faster, obviously I use the resources to insert the bitmaps I prefer to make the dialog dynamic and not resources in order not to burden the exes James, What does the tdata class consist of? I think I can not use for now advantage because my budget does not allow me and so I have to make do with what I can have free
dbfs on Network : wich performance method?
James, return on first test sample the function [b:b8p47gcu]BuildIndexes()[/b:b8p47gcu] make the indexes there is an error because I use an old release of customer not have the field ID but it make the same the index [b:b8p47gcu]Index on "id" tag "custno" to customer[/b:b8p47gcu] as you can see on this picture [img:b8p47gcu]https://i.postimg.cc/Y0Rhy96S/hhhh.jpg[/img:b8p47gcu] How it can happen ? [b:b8p47gcu]Dear Enrico ( Emg)[/b:b8p47gcu] how it can happen ? with your emagdbu read the tag on field but there is not the field ID ?..it's strange [img:b8p47gcu]https://i.postimg.cc/prSptSSN/nnn.jpg[/img:b8p47gcu]
dbfs on Network : wich performance method?
Probably you are using the new CDX with the old DBF. Try to rebuild the CDX. EMG
dbfs on Network : wich performance method?
Silvio, All of my formal training is in. psychology and education. I was asked to write programs in dBase II starting in 1982. I live close to Ashton Tate, and Nantucket so I was very familiar with their software and all the developers who used to come for conferences. I learned on my own by reading books and attending the conferences. You can use ADS Local for free. If you build your program with ADS, it can recognize and use the REMOTE option ( the actual client server ) or run using the Microsoft networking ( LOCAL ) for free. One set of code does it automatically for you and is very easy to implement. Using tdatabase ( or tdata as an extension ) makes programming, and networking, so easy and your code far more readable. Tim
dbfs on Network : wich performance method?
[quote="Enrico Maria Giordano":2stzw86t]Probably you are using the new CDX with the old DBF. Try to rebuild the CDX. EMG[/quote:2stzw86t] I erased the customer.cdx before and I use the test of James to recreate the index
dbfs on Network : wich performance method?
Can you send me the DBF and the CDX to reproduce the problem here, please? EMG
dbfs on Network : wich performance method?
[quote="Enrico Maria Giordano":2d29bf1o]Can you send me the DBF and the CDX to reproduce the problem here, please? EMG[/quote:2d29bf1o] SENT
dbfs on Network : wich performance method?
Ok, thank you. As you can check for yourself, the CDX contains a tag with "id" key. So it's just a corrupted CDX. Please delete it, rebuild it and let me know. EMG
dbfs on Network : wich performance method?
I erase the cdx. then I run the test made from James it create the cdx then open emagdbu , open customer database Open the cdx and set the tag id the same
dbfs on Network : wich performance method?
The example from James is not valid for your customer.dbf because it builds the wrong tag: [code=fw:oudfnry2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #ff0000;">"id"</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: #0000ff;">to</span> customer</div>[/code:oudfnry2] Your customer.dbf doesn't have a field named "id". EMG
dbfs on Network : wich performance method?
yes of cource but... why the code ( test.prg) compiled create the cdx if is not valid ? we Know it's is not valid but the exe crete the cdx
dbfs on Network : wich performance method?
I don't know, sorry. EMG
dbfs on Network : wich performance method?
James, I wanted understand why the command : [code=fw:edqxi440]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #ff0000;">"id"</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: #0000ff;">to</span> customer</div>[/code:edqxi440] create the cdx and not make error It seem we can index any field not exist into a dbf ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
dbfs on Network : wich performance method?
I just realized that this syntax is uncorrect: [code=fw:3pyzijex]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #ff0000;">"id"</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: #0000ff;">to</span> customer</div>[/code:3pyzijex] The correct one is: [code=fw:3pyzijex]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">id</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: #0000ff;">to</span> customer</div>[/code:3pyzijex] Or, even better: [code=fw:3pyzijex]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">Index</span> <span style="color: #0000ff;">on</span> FIELD -> <span style="color: #0000ff;">id</span> tag <span style="color: #ff0000;">"custno"</span> <span style="color: #0000ff;">to</span> customer</div>[/code:3pyzijex] EMG
dbfs on Network : wich performance method?
Sorry if I sent the wrong customer file. It is disconcerting that the CDX was created without any error message. That would be hard to track down as we have just seen. Silvio, were you able to get the sample to run now? James
dbfs on Network : wich performance method?
Enrico, Thanks for finding that. I did a search of all my source and I did find a couple of other times I used quotes. It would be nice if this generated an error. I must have been going nuts trying to figure out why those indexes weren't working. Enrico, would this be a (x)Harbour issue. If so, would you mind reporting it? James
dbfs on Network : wich performance method?
This is not a bug. Is perfectly legal to build an index on a constant key: [code=fw:1zy2m8kb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> .T. <span style="color: #0000ff;">TO</span> TEST</div>[/code:1zy2m8kb] EMG
dbfs on Network : wich performance method?
Ok. I am curious of what use that would be?
dbftortf
any solution or sample test?
dbftortf
TRcihEdt5 CLASS -> Method ViewDbf Sample: FwExplor
dbftortf
thanks
dbgobottom() en SQL
En Clipper/FW para llegar al final del dbf e incrementar por ejemplo el folio haciamos algo asi. base->( dbgobottom()) nRegistro := base->registro+1 y listo, teniamos el siguiente folio, pero en MySql como se hace? Saludos, Mauricio
dbgobottom() en SQL
Si trabajas con ado podés usar esta función oRecordSet : MoveLast()
dbgobottom() en SQL
Si usas TMysQl Prueba usando cQuery:RecCount() + 1 Espero que te sirva
dbgobottom() en SQL
Modifica el campo para que tenga las propiedades "NOT NULL" "AUTO INC" Y asi cada que insertes un registro en esa tabla, tu ya no te preocupas por ese dato. Saludos
dbgobottom() en SQL
En Eagle1 sería así: nRegistro := oBase:LastRec() + 1 o de una forma análoga como tú lo hacias: oBase:gobottom() nRegistro := oBase:RecNo() + 1 Aunque tal vez lo mejor sea crear un campo auto-incremental, hay que saber el contexto. Para más información sobre Eagle1 mira aquí: <!-- m --><a class="postlink" href="http://es.groups.yahoo.com/group/eagle1">http://es.groups.yahoo.com/group/eagle1</a><!-- m -->
dbgobottom() en SQL
Gracias a todos, probare las soluciones que comentan, saludos, Mauricio
dbinfo
I have a problem in that in sqlrdd with xharbour builder when i use the function below I get a gpf. This only happens with sql and only if using fivewin. If I compile just using xharbour then it does not gpf. I am using the latest libs that Antonio sent me Thanks Peter
dbinfo
Sorry the function is dbOrderInfo(DBOI_KEYCOUNTRAW)
dbinfo
Peter, There may be a function name conflict. Don't you get an error with the calls stack ? What functions are listed ? Please report it also to xharbour newsgroup. Thanks
dbinfo
Antonio the stack problems were fixed by the new libs that you sent me. I have posted this problem in the xharbour forums and Marcelo has reported that it works fine without fivewin Any other ideas Peter
dbinfo.ch header file
Hello friends, I only discovered this file today. Best regards, Otto [code=fw:2x0g696h]<div class="fw" id="{CB}" style="font-family: monospace;"><br />include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><br /><span style="color: #00C800;">function</span> main<br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"nInfoType determines the type of information, as specified by the constants below. Note, however, that not all constants are supported for all RDDs. These constants are defined in the dbinfo.ch header file, which must be included (#include) in your application."</span><br /><br /><br />&nbsp;&nbsp; &nbsp;use <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"customer2.dbf"</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">new</span><br />&nbsp;&nbsp; &nbsp;? &nbsp; rddInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ? &nbsp; rddInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp;&nbsp; &nbsp;GOTO <span style="color: #000000;">1</span><br />&nbsp;&nbsp; &nbsp;? <span style="color: #ff0000;">"DBRI_RAWRECORD &nbsp; &nbsp;"</span> + DBRECORDINFO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"DBRI_RAWMEMOS &nbsp; &nbsp; "</span> + DBRECORDINFO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"DBRI_RAWDATA &nbsp; &nbsp; &nbsp;"</span> + DBRECORDINFO<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br /><span style="color: #00C800;">return</span> <br /><br /><span style="color: #0000ff;">INIT</span> PROCEDURE PrgInit<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp; SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-98</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; SET DELETED <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp; SET EXCLUSIVE OFF<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; REQUEST HB_Lang_DE<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DE"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; SET DATE <span style="color: #0000ff;">TO</span> GERMAN<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; rddsetdefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; EXTERN DESCEND<br />&nbsp; &nbsp; <br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:2x0g696h]
dbrowse.prg
Mod_harbor is a great project. I think it will give a new life to the harbour and its community. I installed mod_harbur on windows 10(64bit) ( XAMPP 64bit) and started to study the work of dbrowse.prg program. In normal operation everything works correctly . When I press the button NEXT quickly several times the program stops working. I'm also sending a log for error analysis Sory for my english [Thu Oct 31 22:02:12.216629 2019] [ssl:warn] [pid 5992:tid 608] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:12.375628 2019] [core:warn] [pid 5992:tid 608] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Thu Oct 31 22:02:12.383629 2019] [ssl:warn] [pid 5992:tid 608] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:12.436629 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00455: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.10 configured -- resuming normal operations [Thu Oct 31 22:02:12.436629 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00456: Apache Lounge VC15 Server built: Aug 11 2019 12:20:04 [Thu Oct 31 22:02:12.436629 2019] [core:notice] [pid 5992:tid 608] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Thu Oct 31 22:02:12.443630 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00418: Parent: Created child process 5856 [Thu Oct 31 22:02:13.670629 2019] [ssl:warn] [pid 5856:tid 720] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:13.819629 2019] [ssl:warn] [pid 5856:tid 720] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:13.878629 2019] [mpm_winnt:notice] [pid 5856:tid 720] AH00354: Child: Starting 150 worker threads. Unrecoverable error 6005: Exception error: Exception Code:C0000005 ACCESS_VIOLATION Exception Address:00007FFFE921B8E8 RAX:0000000000000000 RBX:0000000000000020 RCX:0000000000000002 RDX:000002DB212CB7C8 RSI:00007FFFE8FB0000 RDI:000002DB21273D08 RBP:0000000000000001 R8 :0000000000000000 R9 :00007FFFE9491A40 R10:0000000000000FF8 R11:000002DB21273D08 R12:0000000000000000 R13:0000000000000000 R14:0000000000000000 R15:000002DB1FC424A0 CS:RIP:0033:00007FFFE921B8E8 SS:RSP:002B:000000F263F3F570 DS:002B ES:002B FS:0053 GS:002B Flags:00010203 Exception Parameters: 0000000000000000 0000000000000008 Modules: 00007FF6F6B90000 000000000000C000 C:\xampp\apache\bin\httpd.exe 00007FF83BC60000 00000000001F0000 C:\Windows\SYSTEM32\ntdll.dll 00007FF83AD60000 00000000000B2000 C:\Windows\System32\KERNEL32.DLL 00007FF8383E0000 00000000002A3000 C:\Windows\System32\KERNELBASE.dll 00007FF838730000 00000000000FA000 C:\Windows\System32\ucrtbase.dll 00007FF8173A0000 0000000000072000 C:\xampp\apache\bin\libhttpd.dll 00000000659C0000 0000000000047000 C:\xampp\apache\bin\libaprutil-1.dll 00007FF83A250000 000000000006F000 C:\Windows\System32\WS2_32.dll 00007FF83A3B0000 0000000000120000 C:\Windows\System32\RPCRT4.dll 00007FF8394E0000 00000000000A3000 C:\Windows\System32\ADVAPI32.dll 00007FF83A190000 000000000009E000 C:\Windows\System32\msvcrt.dll 00007FF83B300000 0000000000097000 C:\Windows\System32\sechost.dll 0000000065980000 0000000000037000 C:\xampp\apache\bin\libapr-1.dll 00007FF839870000 00000000006E2000 C:\Windows\System32\SHELL32.dll 00007FF8391F0000 000000000004A000 C:\Windows\System32\cfgmgr32.dll 00007FF839740000 00000000000A9000 C:\Windows\System32\shcore.dll 00007FF83AA20000 0000000000336000 C:\Windows\System32\combase.dll 00007FF838830000 0000000000080000 C:\Windows\System32\bcryptPrimitives.dll 00007FF8388D0000 000000000077C000 C:\Windows\System32\windows.storage.dll 00007FF838690000 000000000009E000 C:\Windows\System32\msvcp_win.dll 00007FF8381D0000 000000000001F000 C:\Windows\System32\profapi.dll 00007FF838210000 000000000004A000 C:\Windows\System32\powrprof.dll 00007FF8381A0000 0000000000010000 C:\Windows\System32\UMPDC.dll 00007FF83A4D0000 0000000000052000 C:\Windows\System32\shlwapi.dll 00007FF83B5B0000 0000000000026000 C:\Windows\System32\GDI32.dll 00007FF839240000 0000000000021000 C:\Windows\System32\win32u.dll 00007FF839050000 0000000000194000 C:\Windows\System32\gdi32full.dll 00007FF839F60000 0000000000193000 C:\Windows\System32\USER32.dll 00007FF8381F0000 0000000000011000 C:\Windows\System32\kernel.appcore.dll 00007FF8388B0000 0000000000017000 C:\Windows\System32\cryptsp.dll 00007FF8157D0000 0000000000064000 C:\xampp\apache\bin\pcre.dll 00007FF8324A0000 0000000000016000 C:\Windows\SYSTEM32\VCRUNTIME140.dll 0000000065970000 000000000000D000 C:\xampp\apache\bin\libapriconv-1.dll 00007FF8379B0000 0000000000067000 C:\Windows\SYSTEM32\MSWSOCK.dll 00007FF83B8D0000 000000000002E000 C:\Windows\System32\IMM32.DLL 00007FF837520000 0000000000033000 C:\Windows\system32\rsaenh.dll 00007FF8383B0000 0000000000026000 C:\Windows\System32\bcrypt.dll 00007FF837B80000 000000000000C000 C:\Windows\SYSTEM32\CRYPTBASE.dll 00007FF812230000 00000000000AC000 C:\xampp\apache\bin\libssl-1_1-x64.dll 00007FFFF7A10000 0000000000349000 C:\xampp\apache\bin\libcrypto-1_1-x64.dll 00007FF833C90000 0000000000009000 C:\xampp\apache\modules\mod_access_compat.so 00007FF833B60000 0000000000008000 C:\xampp\apache\modules\mod_actions.so 00007FF833B50000 000000000000A000 C:\xampp\apache\modules\mod_alias.so 00007FF833B00000 0000000000007000 C:\xampp\apache\modules\mod_allowmethods.so 00007FF82F7E0000 0000000000007000 C:\xampp\apache\modules\mod_asis.so 00007FF82F4E0000 0000000000009000 C:\xampp\apache\modules\mod_auth_basic.so 00007FF82F1A0000 0000000000009000 C:\xampp\apache\modules\mod_authn_core.so 00007FF82E5F0000 0000000000008000 C:\xampp\apache\modules\mod_authn_file.so 00007FF82E530000 000000000000A000 C:\xampp\apache\modules\mod_authz_core.so 00007FF82E1A0000 0000000000009000 C:\xampp\apache\modules\mod_authz_groupfile.so 00007FF822D40000 0000000000009000 C:\xampp\apache\modules\mod_authz_host.so 00007FF822D30000 0000000000007000 C:\xampp\apache\modules\mod_authz_user.so 00007FF822D20000 000000000000D000 C:\xampp\apache\modules\mod_autoindex.so 00007FF822D10000 000000000000A000 C:\xampp\apache\modules\mod_cgi.so 00007FF822D00000 000000000000A000 C:\xampp\apache\modules\mod_dav_lock.so 00007FF822C90000 000000000001A000 C:\xampp\apache\modules\mod_dav.so 00007FF822CF0000 0000000000009000 C:\xampp\apache\modules\mod_dir.so 00007FF822C80000 0000000000007000 C:\xampp\apache\modules\mod_env.so 00007FF822C70000 000000000000A000 C:\xampp\apache\modules\mod_headers.so 00007FF822C60000 0000000000010000 C:\xampp\apache\modules\mod_include.so 00007FF8226B0000 000000000000C000 C:\xampp\apache\modules\mod_info.so 00007FF821120000 000000000000C000 C:\xampp\apache\modules\mod_isapi.so 00007FF821110000 000000000000D000 C:\xampp\apache\modules\mod_log_config.so 00007FF821100000 000000000000C000 C:\xampp\apache\modules\mod_cache_disk.so 00007FF81E980000 0000000000012000 C:\xampp\apache\modules\mod_cache.so 00007FF81D060000 000000000000A000 C:\xampp\apache\modules\mod_mime.so 00007FF81D050000 000000000000D000 C:\xampp\apache\modules\mod_negotiation.so 00007FF81CC60000 000000000001E000 C:\xampp\apache\modules\mod_proxy.so 00007FF81D040000 000000000000F000 C:\xampp\apache\modules\mod_proxy_ajp.so 00007FF81CC40000 0000000000014000 C:\xampp\apache\modules\mod_rewrite.so 00007FF81CC30000 0000000000009000 C:\xampp\apache\modules\mod_setenvif.so 00007FF81CC20000 000000000000A000 C:\xampp\apache\modules\mod_socache_shmcb.so 00007FF81B9D0000 0000000000032000 C:\xampp\apache\modules\mod_ssl.so 00007FF81C890000 000000000000B000 C:\xampp\apache\modules\mod_status.so 00007FF81C440000 0000000000008000 C:\xampp\apache\modules\mod_version.so 00007FF81C420000 000000000001B000 C:\xampp\apache\modules\mod_harbour.so 00007FFFE9AB0000 0000000000908000 C:\xampp\php\php7ts.dll 00007FF839380000 0000000000156000 C:\Windows\System32\ole32.dll 00007FF8376C0000 000000000003A000 C:\Windows\SYSTEM32\IPHLPAPI.DLL 00007FF837700000 00000000000CA000 C:\Windows\SYSTEM32\DNSAPI.dll 00007FF83A180000 0000000000008000 C:\Windows\System32\NSI.dll 00007FF81ABC0000 0000000000033000 C:\xampp\php\libpq.dll 00007FF82B3A0000 000000000000C000 C:\Windows\SYSTEM32\Secur32.dll 00007FF838090000 000000000002F000 C:\Windows\SYSTEM32\SSPICLI.DLL 00007FF81B9C0000 000000000000D000 C:\xampp\php\php7apache2_4.dll 00007FF81A0E0000 0000000000019000 C:\xampp\php\ext\php_bz2.dll 00007FF811D30000 0000000000089000 C:\xampp\php\ext\php_curl.dll 00007FF83B900000 0000000000068000 C:\Windows\System32\WLDAP32.dll 00007FF83A170000 0000000000008000 C:\Windows\System32\Normaliz.dll 0000000180000000 000000000003B000 C:\xampp\apache\bin\libssh2.dll 00007FF818060000 0000000000026000 C:\xampp\apache\bin\nghttp2.dll 00007FFFE9580000 0000000000529000 C:\xampp\php\ext\php_fileinfo.dll 00007FF80DEA0000 00000000001A2000 C:\xampp\php\ext\php_gd2.dll 00007FF81A0C0000 0000000000012000 C:\xampp\php\ext\php_gettext.dll 00007FF800900000 000000000015E000 C:\xampp\php\ext\php_mbstring.dll 00007FF818040000 0000000000015000 C:\xampp\php\ext\php_exif.dll 00007FF817560000 000000000001E000 C:\xampp\php\ext\php_mysqli.dll 00007FF81B0B0000 000000000000C000 C:\xampp\php\ext\php_pdo_mysql.dll 00007FFFFF690000 00000000000E1000 C:\xampp\php\ext\php_pdo_sqlite.dll 00007FF816AE0000 0000000000022000 C:\xampp\php\ext\php_openssl.dll 00007FF838260000 0000000000149000 C:\Windows\System32\CRYPT32.dll 00007FF8381B0000 0000000000012000 C:\Windows\System32\MSASN1.dll 00007FF812210000 0000000000012000 C:\xampp\php\ext\php_ftp.dll 00007FF83A2E0000 00000000000C4000 C:\Windows\System32\OLEAUT32.dll 00007FF834BC0000 00000000000EF000 C:\Windows\SYSTEM32\PROPSYS.dll 00007FFFE8FB0000 00000000005CC000 c:\xampp\htdocs\libharbour.dll 00007FF83B3A0000 00000000000CF000 C:\Windows\System32\COMDLG32.dll 00007FFFFC4E0000 0000000000100000 C:\xampp\apache\bin\libcurl.dll 00007FF82F3D0000 00000000000A9000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.18362.295_no Called from HBARRAY(112) [Thu Oct 31 22:02:36.688040 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00428: Parent: child process 5856 exited with status 3221225477 -- Restarting. [Thu Oct 31 22:02:36.959137 2019] [ssl:warn] [pid 5992:tid 608] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:37.035161 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00455: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.10 configured -- resuming normal operations [Thu Oct 31 22:02:37.035161 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00456: Apache Lounge VC15 Server built: Aug 11 2019 12:20:04 [Thu Oct 31 22:02:37.035161 2019] [core:notice] [pid 5992:tid 608] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Thu Oct 31 22:02:37.048673 2019] [mpm_winnt:notice] [pid 5992:tid 608] AH00418: Parent: Created child process 16304 [Thu Oct 31 22:02:38.447755 2019] [ssl:warn] [pid 16304:tid 620] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:38.604755 2019] [ssl:warn] [pid 16304:tid 620] AH01909: <!-- m --><a class="postlink" href="http://www.example.com:443:0">http://www.example.com:443:0</a><!-- m --> server certificate does NOT include an ID which matches the server name [Thu Oct 31 22:02:38.661756 2019] [mpm_winnt:notice] [pid 16304:tid 620] AH00354: Child: Starting 150 worker threads.
dbrowse.prg
thank you Yes, we are aware of such errors, still wondering why they happen and how to avoid them... Welcome!
dbrowse.prg
After searching the web the solution to this problem is : Step 1: Open httpd-ssl.conf at here: C:\xampp\apache\conf\extra Step 2: Hash the line, and change to “localhost” #ServerName <!-- w --><a class="postlink" href="http://www.example.com:443">www.example.com:443</a><!-- w --> ServerName localhost Step 3: Save and restart Apache. Done ( <!-- m --><a class="postlink" href="https://medium.com/@chongfai13/fixed-www-example-com-443-0-418087630e94">https://medium.com/@chongfai13/fixed-ww ... 8087630e94</a><!-- m -->) Although it may still interrupt the program with fast key press .
dbrowse.prg
Many thanks!
dbrowse.prg
How link dbedit.prg into dbrowse.prg to edit a record ?
dbrowse.prg
I did not link anything, everything is done by mod_harbur. I'm still in the beginning in studying mod_barbour.
dbrowse.prg
Hello, is this only a problem when we use localhost. I never saw this error but I always work through internet. Best regards Otto
dbseek
I not understood a command on old clipper source I must converte I found OR->(dbSeek(Str(DO->(RecNo()), 3))) the Od dbf id index on a field numeric 3 N (prof) Question : the recno() is allways a number or on old clipper could be also a string ? and then I have while (or->prof == DO->(RecNo())) but == is wrong ?
dbseek
[quote="Silvio.Falconi":3chlpj71]Question : the recno() is allways a number or on old clipper could be also a string ?[/quote:3chlpj71] No, it's always been a number. EMG
dbseek
but on dos run ok how it is possible ?
dbseek
perhaps I resolve ... on dos I saw the index is another INDEX ON str(PROF,3)+upper(CLASSE)+upper(GG_ORA)+ORESEQ) in this case the expression OR->(dbSeek(Str(DO->(RecNo()), 3))) is right ? also this while (or->prof == DO->(RecNo()))
dbseek
Silvio, [quote:2q75g7e2]in this case the expression OR->(dbSeek(Str(DO->(RecNo()), 3))) is right ?[/quote:2q75g7e2] Don't confuse the valtype of recno() with the use of str(recno()) to do a seek on an index. I admit this is some very strange programming--I have never seen anything like it. Either the original programmer is brilliant, or very confused--I'm not sure which. Only on very rare occasions do I use recno() for anything, and I can't ever remember using it in an index.
dbseek
the app use the search on numberof recno in two database it open teacher .dbf and make a loop it take the number od REcno on teacher.dbf first and then try to search this code number on another dbf Orario.dbf where is a field numeric with the number of recno od teacher on 1992 on clipper on dos it runned good . now I can modify it but I must undestood how I made it first
dbseek
The problem with recno() is that these values change when records are deleted and the file packed. I would never use recno. Create an ID field instead. I almost always create an sequential ID field as the number one field. This is the primary key. The only exception is files used for one-to-many relationships. It is a good system that has never failed me. A system using recno() as the primary key is going to fail miserably on you eventually. James
dbseek
[quote:1lbnvdo6]The problem with recno() is that these values change when records are deleted and the file packed. I would never use recno. Create an ID field instead. I almost always create an sequential ID field as the number one field. This is the primary key. [/quote:1lbnvdo6] This is a universally accepted good practice. Now DBFCDX provides *safe* autoinc field by specifying field type as '+' instead of 'N' [quote:1lbnvdo6]The only exception is files used for one-to-many relationships. [/quote:1lbnvdo6] Even here we can continue to follow the same rule of unique primary key. Another field will contain non-unique values of parent-id. This is generally known as foreign-key.
dbseek
Nages, [quote:1oudk9fd]Now DBFCDX provides *safe* autoinc field by specifying field type as '+' instead of 'N'[/quote:1oudk9fd] Wow, that's news to me. This is a great feature. Is the value inserted numeric or string? I always use a string for easy formatting. Why did you star "safe?" I wrote a database sub-class to add auto-incrementing. Maybe now I won't need it. Why would you need a unique primary key for a one-to-many table? One-to-many tables are usually contain non-unique values in both fields. For instance let's say you have a customer file and you want to have six phone numbers available. You could add six phone number fields, but most of them would remain empty. And as soon as you run into a situation where a customer has 7 phones then you have to restructure the customer file. If you use a one-to-many relationship, you create a file with two fields, custno, and phone. You can have an unlimited number of phones for each customer. CUSTNO, PHONE 01111, 124-9999 01111, 124-9995 01112, 678-0000 In this example the phone number field contains unique numbers, but only because the phone system requires it. If the field contained, say, computers owned by make and model, then they could be non-unique. Certainly you could add a primary key field, but I have never needed one. Or, maybe I'm not understanding what you are saying? James
dbseek
James, [quote="James Bott":28tzl7bd]Why would you need a unique primary key for a one-to-many table?[/quote:28tzl7bd] Essentially, a table needs a unique primary key for record identity purpose. EMG
dbseek
Now I have another problem with Dbseek I have Orario.dbf and some index ( i use cdx) with 992 records USE ORARIO ALIAS OR INDEX ON OR->PROF TAG ORARIO1 TO ORARIO INDEX ON (str(PROF,3)+upper(CLASSE)+upper(GG_ORA)+ORESEQ) TAG ORARIO2 TO ORARIO INDEX ON (upper(OR->CLASSE)+upper(OR->GG_ORA)) TAG ORARIO3 TO ORARIO tha function I need I used to control if a classrom is free or not the search is on the same file the function search the classroom sample "1A" + the day and Hour sample "11" for a sample : id found "1A11" then return .T. ( classroom is occupated) I think it can be only one record with the same "1A11" it is possible have two or many records with the same code [code=fw:2epiaate]<div class="fw" id="{CB}" style="font-family: monospace;"># include <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> ngiorno<br /><span style="color: #00C800;">local</span> nOra<br /><span style="color: #00C800;">Local</span> nGiornoOra<br /><br />USE ORARIO <span style="color: #0000ff;">ALIAS</span> OR<br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> OR->PROF TAG ORARIO1  <span style="color: #0000ff;">TO</span> ORARIO<br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>PROF,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+upper<span style="color: #000000;">&#40;</span>CLASSE<span style="color: #000000;">&#41;</span>+upper<span style="color: #000000;">&#40;</span>GG_ORA<span style="color: #000000;">&#41;</span>+ORESEQ<span style="color: #000000;">&#41;</span> TAG ORARIO2  <span style="color: #0000ff;">TO</span> ORARIO<br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span>   <span style="color: #000000;">&#40;</span>upper<span style="color: #000000;">&#40;</span>OR->CLASSE<span style="color: #000000;">&#41;</span>+upper<span style="color: #000000;">&#40;</span>OR->GG_ORA<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> TAG ORARIO3  <span style="color: #0000ff;">TO</span> ORARIO<br /><br /> or-><span style="color: #000000;">&#40;</span>dbSetOrder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /> OR-><span style="color: #000000;">&#40;</span>dbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /> <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> .not. or-><span style="color: #000000;">&#40;</span>eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />           <span style="color: #00C800;">for</span> ngiorno= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">6</span><br />              <span style="color: #00C800;">for</span> nOra:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">6</span><br />                  nGiornoOra := str<span style="color: #000000;">&#40;</span>ngiorno,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>+str<span style="color: #000000;">&#40;</span>nOra,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><br />                 <span style="color: #00C800;">If</span> CLASSELIB<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, ngiorno, nOra<span style="color: #000000;">&#41;</span><br />                       or->gg_ora:=  nGiornoOra<br />                       or->blocco:= <span style="color: #ff0000;">"*"</span><br />                     exit<br />                  exit<br />                <span style="color: #00C800;">Endif</span><br />               <span style="color: #00C800;">next</span><br />            <span style="color: #00C800;">next</span><br /><br />             OR-><span style="color: #000000;">&#40;</span>dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">Enddo</span><br /><br />            <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /> <span style="color: #00C800;">function</span> CLASSELIB<span style="color: #000000;">&#40;</span>num, ngiorno, nOra<span style="color: #000000;">&#41;</span><br /><br />     nclasse:= or->classe<br />     nRecord:= or-><span style="color: #000000;">&#40;</span>RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />     Local3:= <span style="color: #000000;">1</span><br /><br />      or-><span style="color: #000000;">&#40;</span>dbSetOrder<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      OR-><span style="color: #000000;">&#40;</span>dbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> n= <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> num - <span style="color: #000000;">1</span><br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>or-><span style="color: #000000;">&#40;</span>dbSeek<span style="color: #000000;">&#40;</span>nclasse + Str<span style="color: #000000;">&#40;</span>ngiorno, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> + iif<span style="color: #000000;">&#40;</span>nOra + n ;<br />            == <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"0"</span>, Str<span style="color: #000000;">&#40;</span>nOra + n, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         or-><span style="color: #000000;">&#40;</span>dbSetOrder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         or-><span style="color: #000000;">&#40;</span>dbGoto<span style="color: #000000;">&#40;</span>nRecord<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">return</span> .F.<br />      <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">next</span><br /><br />   or-><span style="color: #000000;">&#40;</span>dbSetOrder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   or-><span style="color: #000000;">&#40;</span>dbGoto<span style="color: #000000;">&#40;</span>nRecord<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">return</span> .T.<br /> </div>[/code:2epiaate] it is possible it found many records because there are teachers have some hour on a classroom with different materia [img:2epiaate]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/02/test4&#46;jpg[/img:2epiaate] How I can resolve ?
dbskipper intermitent error
All: Ocassionally I get a the error message indicated. It happens at a msgwait() function in the code. Anything i need to fix. METHOD seems to be looking for a oDbf. I do use a browse without a oDbf.. it calls an array. Works fine for me but once in awhile my users get the error. HArvey [code=fw:3cr0ri5g]<div class="fw" id="{CB}" style="font-family: monospace;">  Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">N</span>:\cashFlow\plat2005\cashver3.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">*********</span> bytes<br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">2</span> mins <span style="color: #000000;">1</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">09</span>/<span style="color: #000000;">28</span>/<span style="color: #000000;">09</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">46</span>:<span style="color: #000000;">11</span><br />   Error description: <span style="color: #000000;">Error</span> DBCMD/<span style="color: #000000;">2001</span>  Workarea not in use: <span style="color: #000000;">DBSKIPPER</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => DBSKIPPER<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TDATABASE:<span style="color: #000000;">SKIPPER</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>SETODBF<span style="color: #000000;">&#40;</span><span style="color: #000000;">3427</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\<span style="color: #0000ff;">xbrowse</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TXBROWSE<span style="color: #000000;">&#40;</span><span style="color: #000000;">296</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TXBROWSE:<span style="color: #000000;">SKIP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TXBROWSE:<span style="color: #0000ff;">PAINT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1030</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TXBROWSE:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">854</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\MSGRUN.PRG => MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\MSGRUN.PRG => MSGWAIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\NEWFRESH.PRG => COMBINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">2301</span><span style="color: #000000;">&#41;</span></div>[/code:3cr0ri5g]
dbskipper intermitent error
I can confirm that my clients occaisonally get this error too - i don't use xBrowse in their system, so i will get the error log that they get and post it here later Regards, Pete
dbskipper intermitent error
This is the error i am getting: Application =========== Path and name: Q:\WEIGMOD.EXE (32 bits) Size: 3,497,984 bytes Time from start: 0 hours 37 mins 17 secs Error occurred at: 24/09/2009, 08:27:04 Error description: Error DBCMD/2001 Workarea not in use: DBSKIPPER Args: Stack Calls =========== Called from: => DBSKIPPER(0) Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:SKIP(1588) Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:PAINT(716) Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:DISPLAY(2040) Called from: .\source\classes\CONTROL.PRG => TWBROWSE:HANDLEEVENT(1423) Called from: .\source\classes\WINDOW.PRG => _FWH(3333) Called from: => DIALOGBOX(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
dbskipper intermitent error
Peter, Harvey I have seen this error as well .. using Hernan's twbrowse .. best I can tell this error occurs when the last row has been deleted from the listbox and you use an UpStable() call .. Take a look there to see if you can pin it down. Rick Lipkin
dbskipper intermitent error
Harvey, et. al.; If you are setting the codeblocks yourself, please post that code here. If you are you should probably be using setRDD() instead (unless you need some special codeblock actions). I suspect that you have a database function in one of your codeblocks that is not using an alias. This is another good reason to use database objects--you never have alias problems. Also, it is helpful when you post a question to include the version of FWH that you are using. James
dbskipper intermitent error
I have this error on some of my clients pcs randomly, i think it has to be adressed. here it a copy of the error.log Error description: Error DBCMD/2001 Workarea not in use: DBSKIPPER Stack Calls =========== Called from: => DBSKIPPER(0) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => (b)TXBROWSE:SETRDD(3312) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => (b)TXBROWSE:TXBROWSE(308) Called from: => TXBROWSE:SKIP(0) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => TXBROWSE:PAINT(1280) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => TXBROWSE:DISPLAY(927) Called from: .\source\classes\CONTROL.PRG => TXBROWSE:HANDLEEVENT(0) Called from: C:\PRODUCTION\CBATIPROD\window.prg => _FWH(3342) Called from: => WINRUN(0) Called from: C:\PRODUCTION\CBATIPROD\window.prg => TWINDOW:ACTIVATE(957) Called from: C:\PRODUCTION\CBATIPROD\CBATIWIN.PRG => MAIN(241) PS : I don't think it is an alias problem, this is handled by my app, and i have changed the setrdd method to handle this here is my setrdd method [code=fw:3w1ei6o6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> SetRDD<span style="color: #000000;">&#40;</span> lAddColumns, lAutoOrder, aFldNames <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oCol, aStruct<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cAlias, cAdsKeyNo, cAdsKeyCount<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nFields, nFor<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">cAlias</span> == <span style="color: #00C800;">nil</span> &nbsp;<span style="color: #B900B9;">// chidiak</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cAlias</span> := <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lCreated</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nDataType</span> == DATATYPE_RDD<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameDbfStruct<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cAlias</span> := <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">ClearBlocks</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aCols</span> &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lAddColumns &nbsp; &nbsp; &nbsp;:= Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span> .or. ! Empty<span style="color: #000000;">&#40;</span> aFldNames <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lAutoOrder &nbsp; &nbsp; &nbsp; := ::<span style="color: #000000;">lAutoSort</span><br /><br />&nbsp; &nbsp;cAlias &nbsp; &nbsp; &nbsp;:= ::<span style="color: #000000;">cAlias</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #0000ff;">SELECT</span><span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span> &nbsp;<span style="color: #B900B9;">// Chidiak</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nDataType</span> := DATATYPE_RDD<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">bGoTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">bGoBottom</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbGoBottom<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">bSkip</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>| n | iif<span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>, n := <span style="color: #000000;">1</span>, <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbSkipper<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">bBof</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Bof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">bEof</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">bBookMark</span> := <span style="color: #000000;">&#123;</span>| n | iif<span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbGoto<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> <span style="color: #ff0000;">"ADS"</span>$<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .or. <span style="color: #ff0000;">'ADT'</span> $ <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cAdsKeyNo &nbsp; &nbsp;:= <span style="color: #ff0000;">"{| n, Self | iif( n == nil, "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Round( "</span> + cAlias + <span style="color: #ff0000;">"->( ADSGetRelKeyPos() ) * Self:nLen, 0 ), "</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cAlias + <span style="color: #ff0000;">"->( ADSSetRelKeyPos( n / Self:nLen ) ) ) }"</span><br /><br />&nbsp; &nbsp; &nbsp; cAdsKeyCount := <span style="color: #ff0000;">"{|| "</span> + cAlias + <span style="color: #ff0000;">"->( ADSKeyCount(,,1) )}"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">bKeyNo</span> &nbsp; &nbsp;:= &cAdsKeyNo ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">bKeyCount</span> := &cAdsKeyCount<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">bKeyNo</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>| n | iif<span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyGoto<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">bKeyCount</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lAddColumns<br />&nbsp; &nbsp; &nbsp; aStruct &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> dbstruct<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> aFldNames <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nFields &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nFields &nbsp; &nbsp; &nbsp;:= Len<span style="color: #000000;">&#40;</span> aStruct <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nFields<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCol &nbsp; &nbsp;:= ::<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCol &nbsp; &nbsp;:= SetColFromRDD<span style="color: #000000;">&#40;</span> oCol, nFor, ::<span style="color: #000000;">cAlias</span>, aStruct, lAutoOrder <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">next</span> nFor<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nFields &nbsp; &nbsp;:= Len<span style="color: #000000;">&#40;</span> aFldNames <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nFields<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCol &nbsp; &nbsp;:= ::<span style="color: #000000;">AddCol</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oCol &nbsp; &nbsp;:= SetColFromRDD<span style="color: #000000;">&#40;</span> oCol, aFldNames<span style="color: #000000;">&#91;</span>nFor<span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">cAlias</span>, aStruct, lAutoOrder <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">next</span> nFor<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;elseif lAutoOrder<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> nFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdNumber<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cSortOrder</span> := ::<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nFor <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span> nFor<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lAutoOrder<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">bSeek</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> |c| <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbSeek<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">bLock</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbrLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">bUnlock</span> &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbrUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lCreated</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">Adjust</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:3w1ei6o6]
dbskipper intermitent error
Richard: Do youR fix in the method is a permanent fix or are you still waiting for a fix?
dbskipper intermitent error
Harvey still waiting for a fix Richard
dbskipper intermitent error
Richard, I am not sure why you need those cAlias traps. I don't see how you can create a browse without an alias since it is automatically created in the New() method. Do you know under what circumstances it is giving the alias error? Can you provide a small sample showing the error? Regards, James
dbskipper intermitent error
James There is an alias in my browse definition It looks like , somewhere, xbrowse is losing the alias This is why i am using all these traps The code is big, i can show it no problem , i am not sure it will help Richard
dbskipper intermitent error
Richard, >There is an alias in my browse definition >It looks like , somewhere, xbrowse is losing the alias I did a search of cAlias in TDatabase (dated 6/9/09) and I cannot find anywhere where cAlias is assigned nil or "". The only other possibility I can think of is that the database is never opened. Are you opening it via TDatabase or outside of TDatabase? Are you opening it in exclusive mode? James
dbskipper intermitent error
James The file is opened in shared mode , here is the code below Thanks for your help, Richard [code=fw:1g1nahht]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">IF</span> APP1 = <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;LDEFAPP := .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> DNUM = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">11</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span>TBTN,<span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! NETOPEN<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SAVVISI"</span>,,<span style="color: #000000;">5</span>,<span style="color: #ff0000;">"VISI"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;VISI-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"IDPVIS"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! NETOPEN<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SAVPVIS"</span>,,<span style="color: #000000;">5</span>,<span style="color: #ff0000;">"PVIS"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;PVIS-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CLI"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! NETOPEN<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SAVAPPEH"</span>,,<span style="color: #000000;">5</span>,<span style="color: #ff0000;">"APPEH"</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// HISTORIQUE</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;APPEH-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DATE"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! NETOPEN<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SAVAPPEL"</span>,,<span style="color: #000000;">5</span>,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;ASTRU := APPEL-><span style="color: #000000;">&#40;</span>DBSTRUCT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;APPEL-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DATE"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;APPEL-><span style="color: #000000;">&#40;</span>DBGOTOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> aFONT <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> APP1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" "</span> &nbsp;<span style="color: #0000ff;">MDICHILD</span> <span style="color: #0000ff;">OF</span> APPWND<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> APP1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">50</span> 3D<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\N</span>OUVEAU.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> APPNEW<span style="color: #000000;">&#40;</span>TABSEC,OBRWAPP,AFONT,DNUM,DNOM,NFOCUS,ASTRU<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Nouveau Message"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\M</span>ODIFIER.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> APPMAJ<span style="color: #000000;">&#40;</span>TABSEC,OBRWAPP,AFONT,DNUM,DNOM,NFOCUS,ASTRU<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Modifier Appel"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\S</span>UPPRIMER.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> SUPAPPEL<span style="color: #000000;">&#40;</span>OBRWAPP<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Supprimer Appel"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\L</span>ETTRED.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> TRAITAPPEL<span style="color: #000000;">&#40;</span>OBRWAPP,DNUM,DNOM,ASTRU<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Traiter l'appel"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">09</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\P</span>RINT2.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> LISTAPPEL<span style="color: #000000;">&#40;</span>,OBRWAPP,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">09</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Liste des Appels"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\P</span>LANNING.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> PLANNINGDEP<span style="color: #000000;">&#40;</span>TABSEC,APPEL->CLI,APPEL->IDMOTIF,APPEL->CLINOM<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Planning"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\M</span>ESSAGES.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip <span style="color: #ff0000;">"Messagerie"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> SAVMSG<span style="color: #000000;">&#40;</span>DNUM,DNOM<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;TBTN<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> = <span style="color: #ff0000;">"Messagerie"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\E</span>VENEMENT.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip <span style="color: #ff0000;">"Gestion des Evénements"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> SAVEVENT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> FILE DIRAPPLI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"BMP<span style="color: #000000;">\D</span>EFAUT.BMP"</span> <span style="color: #0000ff;">OF</span> OBAR ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolTip <span style="color: #ff0000;">"Restituer tailles colonnes"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>LDEFAPP := .T., RESETDEF<span style="color: #000000;">&#40;</span>@obrwAPP,ADEF,@ASIZE,,<span style="color: #ff0000;">"X"</span><span style="color: #000000;">&#41;</span>,ASIZE := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>,oBrwAPP:<span style="color: #000000;">GetDisplayColsWidth</span><span style="color: #000000;">&#40;</span>@ASIZE <span style="color: #000000;">&#41;</span>,ECRSIZE<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"S34"</span>,ASIZE<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">8</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span>ASIZE,<span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;CREADEF<span style="color: #000000;">&#40;</span>ASIZE,@ADEF<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LIRESIZE<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"S34"</span>,@ASIZE<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBrwAPP := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> APP1 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| TRNDATE<span style="color: #000000;">&#40;</span>APPEL->DATE<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Date"</span> + CRLF + <span style="color: #ff0000;">"Appel"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| APPEL->HEURE <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Heure"</span> + CRLF + <span style="color: #ff0000;">"Appel"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| APPEL->CLINOM <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Client"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| APPEL->PERS <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Appel"</span> + CRLF + <span style="color: #ff0000;">"Pris par"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| APPEL->MOTIF <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Motif"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| TRNDATE<span style="color: #000000;">&#40;</span>APPEL->TRAITELE<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Appel"</span> + CRLF + <span style="color: #ff0000;">"Traité le"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| APPEL->PERSPAR <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHeader</span> &nbsp;:= <span style="color: #ff0000;">"Traité"</span> + CRLF + <span style="color: #ff0000;">"Par"</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oCol:=oBrwAPP:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| APPELTCH<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bLClickHeader</span> := <span style="color: #000000;">&#123;</span>|| APPELPRO<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span>,oBrwAPP,@NFOCUS,<span style="color: #ff0000;">"APPEL"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> aFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">bClrHEADER</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, COULDLG<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"TD"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">bSeek</span> := <span style="color: #000000;">&#123;</span>|c| DbSeek<span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">blDblClick</span> := <span style="color: #000000;">&#123;</span> | nRow, nCol, nKey | APPMAJ<span style="color: #000000;">&#40;</span>TABSEC,oBrwAPP,AFONT,DNUM,DNOM,NFOCUS,ASTRU<span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">bKeyDown</span> &nbsp; := <span style="color: #000000;">&#123;</span>|nKey| iif<span style="color: #000000;">&#40;</span>nKey=VK_RETURN, APPMAJ<span style="color: #000000;">&#40;</span>TABSEC,oBrwAPP,AFONT,DNUM,DNOM,NFOCUS,ASTRU<span style="color: #000000;">&#41;</span> ,<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nKey = VK_DELETE,SUPAPPEL<span style="color: #000000;">&#40;</span>oBrwAPP<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">lColDividerComplete</span> := .t.<br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, CLR_WHITE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">bClrHEADER</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLUE, COULDLG<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SD"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">cAlias</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"APPEL"</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">nHeaderLines</span> &nbsp;:= <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>oBrwAPP:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>I<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span> &nbsp;:= ASIZE<span style="color: #000000;">&#91;</span>I<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;oBrwAPP:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;APP1:<span style="color: #000000;">oClient</span> := oBrwAPP<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> APP1 <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">VALID</span><span style="color: #000000;">&#40;</span> APP1 := <span style="color: #00C800;">NIL</span>, .T. <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>oBrwAPP:<span style="color: #000000;">SETFOCUS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AFONT:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;APP1:<span style="color: #000000;">SETFOCUS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;</div>[/code:1g1nahht]
dbskipper intermitent error
Richard, Your code is too complex to make a guess about the problem. But, any one of those functions called by the buttons could be closing the database under some circumstances. Another possibility is that there is a non-alias reference call in TXbrowse and it only becomes a problem when the workarea is changed. One of your functions could be changing the workarea and not restoring it. James
dbskipper intermitent error
Richard: Where in your code does it bomb out. Mine seems to be at a msgWait()
dbskipper intermitent error
Harvey, I just did a search of all the FWH source code and the only place msgWait() occurs is in the definition of the msgWait() function. So, if you are getting an error at msgwait() it must be in your code. James
dbskipper intermitent error
James It looks like Richard getting same error at msgwait(). See his first post. Odd that we both get the dbskipper error at the same place. Lets see if he confirms this.
dbskipper intermitent error
James It looks like he may have the error at msgwait() also. Strange.
dbskipper intermitent error
James, I did a research in those functions , none of them closes the database, this database is always open As per changing the workarea , my netopen function makes sure the database is opened in the same area in case of , this is why i tried to trapp if select(calias) = 0 return nil endif Harvey , sorry i do not have a msgwait in this part of my app Richard
dbskipper intermitent error
Richard, >I did a research in those functions , none of them closes the database, this database is always open Did you do a global search of all your code looking for places where databases are closed? It may be in another function called from one of those functions. >As per changing the workarea , my netopen function makes sure the database is opened in the same area in case of , this is why i tried to trapp I was referring to the workarea being changed by any called function (or any function called by one of those functions) not in the section of code shown. James
dbskipper intermitent error
Jmaes: 130 prgs. Big job.
dbskipper intermitent error
Richard, My apologies, I am trying to follow too many threads at once and I got confused. Please ignore my previous message about functions. You are getting a "workarea not in use" error with dbskipper(). And here is your definition of bSkip: oBrwAPP:bSeek := {|c| DbSeek( Upper( c ) ) } Do you see anything wrong with the above line? James
dbskipper intermitent error
Harvey, >Jmaes: >130 prgs. Big job. You need Copernic Desktip Search. Its global searches are very fast and you can preview each find on the screen without opening an editor. I can seach my entire hard disk in about 2 seconds. Ironically, it takes slightly longer to search a directory since you have to specify the directory. It took me about 5 seconds to search all of the FWH source for "msgWait." James
dbskipper intermitent error
Harvey, After reviewing your error report again, I think you have the same problem as Richard. Take a look at my previous message to him. Richard and Harvey: I'll give you a hint. If you were using database objects you would never have these obscure, intermitant, and hard to find errors. James
dbskipper intermitent error
I understand you comments but 130 prgs is a nightmare.
dbskipper intermitent error
Harvey, >I understand your comments but 130 prgs is a nightmare. Well, I don't disagree. However, I have recently been working on an application that I didn't write that is 104 PRGs, and Copernic has been extremely helpful. It would take me 10-100 times as long without Copernic. I highly recommend it (and I am not easily impressed). Regards, James
dbskipper intermitent error
With due respects to one and all here, I can guarantee that this dbskipper error would NEVER occur, IF obrw:cAlias is explicity assigned and then oBrw;SetRDD is called, unless this alias is closed in some other code of the program. Conditions: 1) oBrw:cAlias ---> SHOULD BE EXPLCITLY ASSIGNED. ( many programmers depend on the default behavior and it is dangerous ) 2) Call oBrw:SetRDD() explicitly after assigning oBrw:cAlias 3) Make sure no other part of the program closes this alias by mistake while the browse is still being displayed. If these three conditions are satisfied, this dbskipper should never occur ( unless the network gets disconnected momentarily or otherwise ) And, if we get this error, it means one of the above 3 conditions are not satisfied or if the dbf is referred from a networked computer, the network is inaccessible temporarily or otherwise.
dbskipper intermitent error
Richard, Obviously, I need some sleep (I've been up all night). >And here is your definition of bSkip: >oBrwAPP:bSeek := {|c| DbSeek( Upper( c ) ) } I misread the above line to be dbskip not dbseek(). Nevertheless this line still needs fixing. It may, or may not, be causing the dbskip error. I suggest also doing as Rao suggests, calling setRDD() right after assigning the alias. James
dbskipper intermitent error
James Rao is right , i agree with the 3 points After making further research , it looks like my file is closed somewhere in my app, it does not show on the active databases in the error.log Nevertheless i am puzzled how we get to the error and why all the traps did not work, so i have some questions : in setrdd() function , this line got executed ::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) },; while ::bSkip := {| n | iif( n == nil, n := 1, ), ( ::cAlias )->( DbSkipper( n ) ) },; bombed the error.log the following trap did not work , again i am puzzled, why select(calias) did not return 0 when the file is closed ? cAlias := ::cAlias IF SELECT(cAlias) = 0 return nil ENDIF is there a way to make sure the database is active in the paint process ? in other words, can i put a real trap to exit It is not easy to reproduce the error, occurs on some customers rarely, it is part of a mdi environment, i will make further research to check why and how the file was closed, meanwhile i am still looking for a trap to prevent the error.log Thanks for your help Richard
dbskipper intermitent error
Not sure but if this code is what you looking for. it will let you know if the databas is open. It seems my app (Very large) closes out files i just reopen rather then spend hours looking for the close that happened. Not great programing but it works. [code=fw:2tk1tb1n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span>  IsAlias<span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> lIsUsed := .f.<br /><br />  <br />   <span style="color: #00C800;">if</span> <span style="color: #0000ff;">select</span><span style="color: #000000;">&#40;</span>cAlias<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />      lIsUsed := .t.<br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">return</span> lIsUsed<br /> </div>[/code:2tk1tb1n]
dbskipper intermitent error
Richard, Logic would say that the dbgotop() worked because the database was still open when it was called. Logic would also say that the if select( cAlias ) = 0 trap didn't work because the alias was still valid at that point. Possibly, it is a timing issue that a sysrefresh() or dbcommit() would solve. Or maybe, ::cAlias is nil and thus select( ::cAlias ) just returns the current workarea which is not zero. Did you add the setRDD() to your code? James
dbskipper intermitent error
James yes i did add setrdd() to my code Still puzzled, this is the part where the error occured , in the default part .... the first 2 lines were executed not the third. DEFAULT ::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) },; ::bGoBottom := {|| ( ::cAlias )->( DbGoBottom() ) },; ::bSkip := {| n | iif( n == nil, n := 1, ), ( ::cAlias )->( DbSkipper( n ) ) },; ::bBof := {|| ( ::cAlias )->( Bof() ) },; ::bEof := {|| ( ::cAlias )->( Eof() ) },; ::bBookMark := {| n | iif( n == nil,; ( ::cAlias )->( RecNo() ),; ( ::cAlias )->( DbGoto( n ); ) ) }
dbskipper intermitent error
James what does setrdd() do??
dbskipper intermitent error
Richard, >Still puzzled, this is the part where the error occured , in the default part .... the first 2 lines were executed not the third. Well, it is all actually only one line as far as the compiler is concerned, so I am wondering what makes you think it is erroring where you say it is? James
dbskipper intermitent error
The error.log shows this line
dbskipper intermitent error
Harvey, SetRRD() does (amoung other things) sets the codeblocks you see in Richards last message. Since you are using a database object you need to call setoDBF(oDBF) instead. James
dbskipper intermitent error
Richard, >The error.log shows this line Please post that section of the error log. James
dbskipper intermitent error
james here it is below Error occurred at: 12/10/2009, 14:07:09 Error description: Error DBCMD/2001 Workarea not in use: DBSKIPPER Stack Calls =========== Called from: => DBSKIPPER(0) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => (b)TXBROWSE:SETRDD(3312) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => (b)TXBROWSE:TXBROWSE(308) Called from: => TXBROWSE:SKIP(0) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => TXBROWSE:PAINT(1280) Called from: C:\PRODUCTION\CBATIPROD\xbrowse.prg => TXBROWSE:DISPLAY(927) Called from: .\source\classes\CONTROL.PRG => TXBROWSE:HANDLEEVENT(0) Called from: C:\PRODUCTION\CBATIPROD\window.prg => _FWH(3342) Called from: => WINRUN(0) Called from: C:\PRODUCTION\CBATIPROD\window.prg => TWINDOW:ACTIVATE(957) Called from: C:\PRODUCTION\CBATIPROD\CBATIWIN.PRG => MAIN(241) PS : i am using a modified version of xbrowse Richard
dbskipper intermitent error
Richard, OK, that is the one you posted earlier. I am not exactly sure what that means. It doesn't make sense that it was in the setRDD() when it crashed because that would mean that the browse was never initialized. I don't see how this could happen because the file was just opened and no other functions were called before the browse was initialized. I think it is only saying that it crashed when the bSkip codeblock was called; presumably because the file was closed. We really need to be able to recreate the error on demand to be able to figure out eactly where the error is happening.
dbskipper intermitent error
Richard, OK, I tried something different. I tried to recreate the error by modifing TXBrowse(). First I tried splitting the default line between the bGotop and bSkip and closed the database between the lines. I got a differnt error. [code=fw:3pw41zdn]<div class="fw" id="{CB}" style="font-family: monospace;">   Error description: <span style="color: #000000;">Error</span> DBCMD/<span style="color: #000000;">2001</span>  Workarea not in use: <span style="color: #000000;">RDDNAME</span><br />   Args:<br /><br /><span style="color: #000000;">Stack</span> Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => RDDNAME<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Test01</span>.prg => TXBROWSE:<span style="color: #000000;">SETRDD</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3429</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">Test01</span>.prg => MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#41;</span></div>[/code:3pw41zdn] So the error is not occuring where you thought it was. Then instead i just added these two lines at the end of the setRDD() method. close databases ::skip() And now I get the same error as you did. So, this means that your database is being closed sometime during the execution of your program. You can confirm this by adding a button and using the ACTION dbcloseall(). Then you should get the same erorr. Regards, James
dbskipper intermitent error
Let me point out two possibilities: 1. If he is using he should use oBrw:SetoDbf( oDbf ) and definitely not SetRDD() 2. if the browse is created in a window ( other than main window ) and the dbf or odbf is closed after ACTIVATE WINDOW statement this error occurs. Because the dbf is closed even before the browse is painted.
dbskipper intermitent error
Rao, Richard is using setRDD() because he is not using a database object. Harvey is using a database object--or at least it appears so from his error message. Perhaps he will confirm or deny this. Your point about MDI is helpful, but in this case Richard says the error has only been occuring occasionally and he has been unable to reproduce it on demand. I think he has a function calling another function, etc. under certain conditions, and one of these functions is closing the database. James
dbskipper intermitent error
Yes odbf. The error ocurrs at the msgwait() line. Makes no sense and only occasionaly happens. Here is the function where the error occurs. Nothing makes sense. No skip jsut bails out. Not often. Message wait at bottom of code produces the error. [code=fw:1svwb5pf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> combine<span style="color: #000000;">&#40;</span>mconscomp<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> mtemp<br />   <span style="color: #00C800;">local</span> oldarea := <span style="color: #0000ff;">select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">local</span> mType1  := <span style="color: #000000;">0</span>   <br />   <span style="color: #00C800;">local</span> oldfilter  <br />   <span style="color: #00C800;">local</span> oldorder   <br />   <span style="color: #00C800;">local</span> cOldAccount    <br /><br />   cursorwait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   retain-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"z              Total"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   retain->cost_price := <span style="color: #000000;">1</span><br /><br />   <span style="color: #0000ff;">select</span> csource<br /><br />   mtemp := <span style="color: #ff0000;">"1000"</span>  <span style="color: #B900B9;">//account</span><br /><br />   gl-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"0125"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// set flag to calculate consolidated balance sheet</span><br />   gl->a14 := <span style="color: #000000;">1</span><br /><br />   cursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>     <br />   gl-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"1000"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br /><br />   csource-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"1000"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>    <br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> .not. eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />      <span style="color: #0000ff;">select</span> gl <span style="color: #B900B9;">// target </span><br /><br />      seek mTemp<br /><br />      cOldAccount := mTemp<br /><br />      replace gl->start1 with gl->start1 + csource->start1<br />      replace gl->start2 with gl->start2 + csource->start2<br /><br />      replace gl->ty1 with gl->ty1 + csource->ty1<br />      replace gl->cf1 with gl->cf1 + csource->cf1<br /><br />      replace gl->ty2 with gl->ty2 + csource->ty2<br />      replace gl->cf2 with gl->cf2 + csource->cf2<br /><br />      replace gl->ty3 with gl->ty3 + csource->ty3<br />      replace gl->cf3 with gl->cf3 + csource->cf3<br /><br />      replace gl->ty4 with gl->ty4 + csource->ty4<br />      replace gl->cf4 with gl->cf4 + csource->cf4<br /><br />      replace gl->ty5 with gl->ty5 + csource->ty5<br />      replace gl->cf5 with gl->cf5 + csource->cf5<br /><br />      replace gl->ty6 with gl->ty6 + csource->ty6<br />      replace gl->cf6 with gl->cf6 + csource->cf6<br /><br />      replace gl->ty7 with gl->ty7 + csource->ty7<br />      replace gl->cf7 with gl->cf7 + csource->cf7<br /><br />      replace gl->ty8 with gl->ty8 + csource->ty8<br />      replace gl->cf8 with gl->cf8 + csource->cf8<br /><br />      replace gl->ty9 with gl->ty9 + csource->ty9<br />      replace gl->cf9 with gl->cf9 + csource->cf9<br /><br />      replace gl->ty10 with gl->ty10 + csource->ty10<br />      replace gl->cf10 with gl->cf10 + csource->cf10<br /><br />      replace gl->ty11 with gl->ty11 + csource->ty11<br />      replace gl->cf11 with gl->cf11 + csource->cf11<br /><br />      replace gl->ty12 with gl->ty12 + csource->ty12<br />      replace gl->cf12 with gl->cf12 + csource->cf12<br /><br />      replace gl->ty13 with gl->ty13 + csource->ty13<br />      replace gl->cf13 with gl->cf13 + csource->cf13<br /><br /><br />      <span style="color: #B900B9;">// ADD ACTUAL</span><br /><br />      replace gl->act1  with gl->act1  + csource->act1  <br />      replace gl->act2  with gl->act2  + csource->act2  <br />      replace gl->act3  with gl->act3  + csource->act3  <br />      replace gl->act4  with gl->act4  + csource->act4  <br />      replace gl->act5  with gl->act5  + csource->act5  <br />      replace gl->act6  with gl->act6  + csource->act6  <br />      replace gl->act7  with gl->act7  + csource->act7  <br />      replace gl->act8  with gl->act8  + csource->act8  <br />      replace gl->act9  with gl->act9  + csource->act9  <br />      replace gl->act10 with gl->act10 + csource->act10<br />      replace gl->act11 with gl->act11 + csource->act11<br />      replace gl->act12 with gl->act12 + csource->act12<br /><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"3810"</span><br />         *combine info <span style="color: #0000ff;">on</span> sale assets<br />         replace gl->a1   with gl->a1   + csource->a1<br />         replace gl->a2   with gl->a2   + csource->a2<br />         replace gl->a3   with gl->a3   + csource->a3<br />         replace gl->a4   with gl->a4   + csource->a4<br />         replace gl->a5   with gl->a5   + csource->a5<br />         replace gl->a6   with gl->a6   + csource->a6<br />         replace gl->a7   with gl->a7   + csource->a7<br />         replace gl->a8   with gl->a8   + csource->a8<br />         replace gl->a9   with gl->a9   + csource->a9<br />         replace gl->a10  with gl->a10  + csource->a10<br />         replace gl->a11  with gl->a11  + csource->a11<br />         replace gl->a12  with gl->a12  + csource->a12<br />         replace gl->a13  with gl->a13  + csource->a13<br />         replace gl->aa8  with gl->aa8  + csource->aa8<br />         replace gl->aa9  with gl->aa9  + csource->aa9<br />         replace gl->aa10 with gl->aa10 + csource->aa10<br />         replace gl->aa11 with gl->aa11 + csource->aa11<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"6005"</span><br />         replace gl->dif1  with gl->dif1  + csource->dif1<br />         replace gl->dif2  with gl->dif2  + csource->dif2<br />         replace gl->dif3  with gl->dif3  + csource->dif3<br />         replace gl->dif4  with gl->dif4  + csource->dif4<br />         replace gl->dif5  with gl->dif5  + csource->dif5<br />         replace gl->dif6  with gl->dif6  + csource->dif6<br />         replace gl->dif7  with gl->dif7  + csource->dif7<br />         replace gl->dif8  with gl->dif8  + csource->dif8<br />         replace gl->dif9  with gl->dif9  + csource->dif9<br />         replace gl->dif10 with gl->dif10 + csource->dif10<br />         replace gl->dif11 with gl->dif11 + csource->dif11<br />         replace gl->dif12 with gl->dif12 + csource->dif12<br />         replace gl->dif13 with gl->dif13 + csource->dif13<br /><br />         replace gl->ly1  with gl->ly1  + csource->ly1<br />         replace gl->ly2  with gl->ly2  + csource->ly2<br />         replace gl->ly3  with gl->ly3  + csource->ly3<br />         replace gl->ly4  with gl->ly4  + csource->ly4<br />         replace gl->ly5  with gl->ly5  + csource->ly5<br />         replace gl->ly6  with gl->ly6  + csource->ly6<br />         replace gl->ly7  with gl->ly7  + csource->ly7<br />         replace gl->ly8  with gl->ly8  + csource->ly8<br />         replace gl->ly9  with gl->ly9  + csource->ly9<br />         replace gl->ly10 with gl->ly10 + csource->ly10<br />         replace gl->ly11 with gl->ly11 + csource->ly11<br />         replace gl->ly12 with gl->ly12 + csource->ly12<br />         replace gl->ly13 with gl->ly13 + csource->ly13<br /><br />         replace gl->a14  with gl->a14  + csource->a14<br />         replace gl->aa1  with gl->aa1  + csource->aa1<br />         replace gl->aa2  with gl->aa2  + csource->aa2<br />         replace gl->aa3  with gl->aa3  + csource->aa3<br />         replace gl->aa4  with gl->aa4  + csource->aa4<br />         replace gl->aa5  with gl->aa5  + csource->aa5<br />         replace gl->aa6  with gl->aa6  + csource->aa6<br />         replace gl->aa7  with gl->aa7  + csource->aa7<br />         replace gl->aa8  with gl->aa8  + csource->aa8<br />         replace gl->aa9  with gl->aa9  + csource->aa9<br />         replace gl->aa10 with gl->aa10 + csource->aa10<br />         replace gl->aa11 with gl->aa11 + csource->aa11<br />         replace gl->aa12 with gl->aa12 + csource->aa12<br />         replace gl->aa13 with gl->aa13 + csource->aa13<br /><br />         * replace gl->act1  with gl->act1  + csource->act1<br />         * replace gl->act2  with gl->act2  + csource->act2<br />         * replace gl->act3  with gl->act3  + csource->act3<br />         * replace gl->act4  with gl->act4  + csource->act4<br />         * replace gl->act5  with gl->act5  + csource->act5<br />         * replace gl->act6  with gl->act6  + csource->act6<br />         * replace gl->act7  with gl->act7  + csource->act7<br />         * replace gl->act8  with gl->act8  + csource->act8<br />         * replace gl->act9  with gl->act9  + csource->act9<br />         * replace gl->act10 with gl->act10 + csource->act10<br />         * replace gl->act11 with gl->act11 + csource->act11<br />         * replace gl->act12 with gl->act12 + csource->act12<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"6108"</span><br />         replace gl->a14  with gl->a14  + csource->a14<br />      <span style="color: #00C800;">endif</span>     <br /><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7115"</span><br />         replace gl->a14  with gl->a14  + csource->a14<br />         replace gl->a13  with gl->a13  + csource->a13<br />      <span style="color: #00C800;">endif</span>     <br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"8415"</span><br />         replace gl->a14  with gl->a14  + csource->a14<br />      <span style="color: #00C800;">endif</span>     <br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"8431"</span><br />         replace gl->a14  with gl->a14  + csource->a14<br />      <span style="color: #00C800;">endif</span>     <br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"6109"</span><br />         replace gl->a14  with gl->a14  + csource->a14<br />         replace gl->aa1  with gl->aa1  + csource->aa1<br />         replace gl->aa2  with gl->aa2  + csource->aa2<br />         replace gl->aa3  with gl->aa3  + csource->aa3<br />         replace gl->aa4  with gl->aa4  + csource->aa4<br />         replace gl->aa5  with gl->aa5  + csource->aa5<br />         replace gl->aa6  with gl->aa6  + csource->aa6<br />         replace gl->aa7  with gl->aa7  + csource->aa7<br />         replace gl->aa8  with gl->aa8  + csource->aa8<br />         replace gl->aa9  with gl->aa9  + csource->aa9<br />         replace gl->aa10 with gl->aa10 + csource->aa10<br />         replace gl->aa11 with gl->aa11 + csource->aa11<br />         replace gl->aa12 with gl->aa12 + csource->aa12<br />         replace gl->aa13 with gl->aa13 + csource->aa13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7010"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7020"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7030"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7035"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br /><br />         *combine info <span style="color: #0000ff;">on</span> sale assets<br />         replace gl->aa1  with gl->aa1  + csource->aa1<br />         replace gl->aa2  with gl->aa2  + csource->aa2<br />         replace gl->aa3  with gl->aa3  + csource->aa3<br />         replace gl->aa4  with gl->aa4  + csource->aa4<br />         replace gl->aa5  with gl->aa5  + csource->aa5<br />         replace gl->aa6  with gl->aa6  + csource->aa6<br />         replace gl->aa7  with gl->aa7  + csource->aa7<br />         replace gl->aa8  with gl->aa8  + csource->aa8<br />         replace gl->aa9  with gl->aa9  + csource->aa9<br />         replace gl->aa10 with gl->aa10 + csource->aa10<br />         replace gl->aa11 with gl->aa11 + csource->aa11<br />         replace gl->aa12 with gl->aa12 + csource->aa12<br />         replace gl->aa13 with gl->aa13 + csource->aa13<br /><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7037"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7038"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7040"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7050"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br /><br />         *combine info <span style="color: #0000ff;">on</span> sale assets<br />         replace gl->ly1  with gl->ly1  + csource->ly1<br />         replace gl->ly2  with gl->ly2  + csource->ly2<br />         replace gl->ly3  with gl->ly3  + csource->ly3<br />         replace gl->ly4  with gl->ly4  + csource->ly4<br />         replace gl->ly5  with gl->ly5  + csource->ly5<br />         replace gl->ly6  with gl->ly6  + csource->ly6<br />         replace gl->ly7  with gl->ly7  + csource->ly7<br />         replace gl->ly8  with gl->ly8  + csource->ly8<br />         replace gl->ly9  with gl->ly9  + csource->ly9<br />         replace gl->ly10 with gl->ly10 + csource->ly10<br />         replace gl->ly11 with gl->ly11 + csource->ly11<br />         replace gl->ly12 with gl->ly12 + csource->ly12<br />         replace gl->ly13 with gl->ly13 + csource->ly13<br /><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7060"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br /><br />         *combine info <span style="color: #0000ff;">on</span> sale assets<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br /><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7100"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7110"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7112"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7120"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br /><br />         *combine info <span style="color: #0000ff;">on</span> sale assets<br />         replace gl->aa1  with gl->aa1  + csource->aa1<br />         replace gl->aa2  with gl->aa2  + csource->aa2<br />         replace gl->aa3  with gl->aa3  + csource->aa3<br />         replace gl->aa4  with gl->aa4  + csource->aa4<br />         replace gl->aa5  with gl->aa5  + csource->aa5<br />         replace gl->aa6  with gl->aa6  + csource->aa6<br />         replace gl->aa7  with gl->aa7  + csource->aa7<br />         replace gl->aa8  with gl->aa8  + csource->aa8<br />         replace gl->aa9  with gl->aa9  + csource->aa9<br />         replace gl->aa10 with gl->aa10 + csource->aa10<br />         replace gl->aa11 with gl->aa11 + csource->aa11<br />         replace gl->aa12 with gl->aa12 + csource->aa12<br />         replace gl->aa13 with gl->aa13 + csource->aa13<br /><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7123"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7130"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />         replace gl->a13 with <span style="color: #000000;">1</span> <span style="color: #B900B9;">// make certain it is a corp</span><br /><br />         <span style="color: #B900B9;">// CHANGED 1/16/99 TO ALLOW COMBINATION OF NON CORPORATE ENTITY    </span><br />         replace gl->a13 with csource->a13<br /><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7140"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7150"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7160"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"6105"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7125"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span>     <br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"3808"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account = <span style="color: #ff0000;">"7999"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1  with gl->a1  + csource->a1<br />         replace gl->a2  with gl->a2  + csource->a2<br />         replace gl->a3  with gl->a3  + csource->a3<br />         replace gl->a4  with gl->a4  + csource->a4<br />         replace gl->a5  with gl->a5  + csource->a5<br />         replace gl->a6  with gl->a6  + csource->a6<br />         replace gl->a7  with gl->a7  + csource->a7<br />         replace gl->a8  with gl->a8  + csource->a8<br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account=<span style="color: #ff0000;">"8000"</span><br />         replace gl->a1 with gl->a1 + csource->a1<br />         replace gl->a2 with gl->a2 + csource->a2<br /><br />         replace gl->a3 with gl->a3 + csource->a3<br />         replace gl->a4 with gl->a4 + csource->a4<br /><br />         replace gl->a5 with gl->a5 + csource->a5<br />         replace gl->a6 with gl->a6 + csource->a6<br /><br />         replace gl->a7 with gl->a7 + csource->a7<br />         replace gl->a8 with gl->a8 + csource->a8<br /><br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br /><br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br /><br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account=<span style="color: #ff0000;">"8435"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1 with gl->a1 + csource->a1<br />         replace gl->a2 with gl->a2 + csource->a2<br /><br />         replace gl->a3 with gl->a3 + csource->a3<br />         replace gl->a4 with gl->a4 + csource->a4<br /><br />         replace gl->a5 with gl->a5 + csource->a5<br />         replace gl->a6 with gl->a6 + csource->a6<br /><br />         replace gl->a7 with gl->a7 + csource->a7<br />         replace gl->a8 with gl->a8 + csource->a8<br /><br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br /><br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br /><br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      <span style="color: #00C800;">if</span> account=<span style="color: #ff0000;">"8440"</span><br />         replace gl->a14 with gl->a14 + csource->a14<br />         replace gl->a1 with gl->a1 + csource->a1<br />         replace gl->a2 with gl->a2 + csource->a2<br /><br />         replace gl->a3 with gl->a3 + csource->a3<br />         replace gl->a4 with gl->a4 + csource->a4<br /><br />         replace gl->a5 with gl->a5 + csource->a5<br />         replace gl->a6 with gl->a6 + csource->a6<br /><br />         replace gl->a7 with gl->a7 + csource->a7<br />         replace gl->a8 with gl->a8 + csource->a8<br /><br />         replace gl->a9  with gl->a9  + csource->a9<br />         replace gl->a10 with gl->a10 + csource->a10<br /><br />         replace gl->a11 with gl->a11 + csource->a11<br />         replace gl->a12 with gl->a12 + csource->a12<br /><br />         replace gl->a13 with gl->a13 + csource->a13<br />      <span style="color: #00C800;">endif</span><br /><br />      * <span style="color: #00C800;">if</span> account == <span style="color: #ff0000;">"2070"</span> .or.   account == <span style="color: #ff0000;">"3345"</span>   .OR. account == <span style="color: #ff0000;">"3452"</span>;<br />      *      .or. account == <span style="color: #ff0000;">"3538"</span><br />      * <br />      *    replace gl->cf1 with <span style="color: #000000;">0</span><br />      *    replace gl->cf2 with <span style="color: #000000;">0</span><br />      * <br />      *    replace gl->cf3 with <span style="color: #000000;">0</span><br />      *    replace gl->cf4 with <span style="color: #000000;">0</span><br />      * <br />      *    replace gl->cf5 with <span style="color: #000000;">0</span><br />      *    replace gl->cf6 with <span style="color: #000000;">0</span><br />      * <br />      *    replace gl->cf7 with <span style="color: #000000;">0</span><br />      *    replace gl->cf8 with <span style="color: #000000;">0</span><br />      * <br />      *    replace gl->cf9  with <span style="color: #000000;">0</span><br />      *    replace gl->cf10 with <span style="color: #000000;">0</span><br />      * <br />      *    replace gl->cf11 with <span style="color: #000000;">0</span><br />      *    replace gl->cf12 with <span style="color: #000000;">0</span><br />      * <br />      *    replace gl->cf13 with <span style="color: #000000;">0</span><br />      * <br />      * <span style="color: #00C800;">endif</span><br /><br />      * gl-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"2070"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      * ? gl->cf13  <br />      * <br />      * gl-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"3345"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      * ? gl->cf13  <br />      * <br />      *  gl-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"3452"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      * ? gl->cf13  <br />      * <br />      * gl-><span style="color: #000000;">&#40;</span>dbseek<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"3538"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />      * ? gl->cf13  <br /><br /><br />      <span style="color: #0000ff;">select</span> csource<br /><br />      skip<br />      mtemp = account<br /><br />   <span style="color: #00C800;">enddo</span><br /><br />   cursorwait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #0000ff;">select</span> gl <br /><br />   seek <span style="color: #ff0000;">"2010"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br /><br />   seek <span style="color: #ff0000;">"2019"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br /><br />   seek <span style="color: #ff0000;">"2020"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br /><br />   seek <span style="color: #ff0000;">"2021"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2022"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   <span style="color: #B900B9;">//ELIMINATE 7/22/00 KEEP DEPRE OUT OF CASH FLOW                          </span><br />   * seek <span style="color: #ff0000;">"2023"</span><br />   * replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2024"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2025"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2026"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2027"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2028"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2029"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2031"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2032"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2033"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2034"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2035"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2036"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2037"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2038"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2030"</span><br />   replace1a<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// replace ty's with 0,function in calc.prg </span><br /><br />   seek <span style="color: #ff0000;">"2010"</span><br /><br />   mconsmem1   =cf1<br />   mconsmem2   =cf2<br />   mconsmem3   =cf3<br />   mconsmem4   =cf4<br />   mconsmem5   =cf5<br />   mconsmem6   =cf6<br />   mconsmem7   =cf7<br />   mconsmem8   =cf8<br />   mconsmem9   =cf9<br />   mconsmem10  =cf10<br />   mconsmem11  =cf11<br />   mconsmem12  =cf12<br />   mconsmem13  =cf13<br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2019"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   cursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>     <br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2020"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2021"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2022"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br /><br />   <span style="color: #B900B9;">//ELIMINATE 7/22/00 KEEP DEPRE OUT OF CASH FLOW                          </span><br />   * seek <span style="color: #ff0000;">"2023"</span><br />   * cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2024"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2025"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2026"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2027"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2028"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2029"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2031"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2032"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2033"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2034"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2035"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2036"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2037"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2038"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2030"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// cf's to 0 function in calc.prg</span><br /><br />   seek <span style="color: #ff0000;">"2040"</span><br />   cfchange<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   replace cf1  with mconsmem1 <br />   replace cf2  with mconsmem2 <br />   replace cf3  with mconsmem3 <br />   replace cf4  with mconsmem4 <br />   replace cf5  with mconsmem5 <br />   replace cf6  with mconsmem6 <br />   replace cf7  with mconsmem7 <br />   replace cf8  with mconsmem8 <br />   replace cf9  with mconsmem9 <br />   replace cf10 with mconsmem10 <br />   replace cf11 with mconsmem11 <br />   replace cf12 with mconsmem12 <br />   replace cf13 with mconsmem13 <br /><span style="color: #000000;">&#91;</span><span style="color: #0000ff;">color</span>=#<span style="color: #000000;">404040</span><span style="color: #000000;">&#93;</span><br /> msgwait<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"The consolidation has been updated with Entity No."</span>+str<span style="color: #000000;">&#40;</span>mconscomp * <span style="color: #000000;">100</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"."</span>,<span style="color: #ff0000;">"Notice"</span>,<span style="color: #000000;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>/<span style="color: #0000ff;">color</span><span style="color: #000000;">&#93;</span><br />        <br />   csource-><span style="color: #000000;">&#40;</span>dbclosearea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   cursorwait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #0000ff;">select</span><span style="color: #000000;">&#40;</span>oldarea<span style="color: #000000;">&#41;</span> <br /><br />   <span style="color: #00C800;">return</span>   <span style="color: #00C800;">nil</span><br /> </div>[/code:1svwb5pf]
dbskipper intermitent error
Harvey, First, I don't see any database objects--where is it? Second, I do see lots of database functions being called without aliasing. This is very risky. There are a number of function calls and any one of them may be changing the workarea or closing the database. Using a database object eliminates the aliasing problem and the database closing problem. As a design suggestion I highly recommend against using confirmation messages (your msgWait() ). Users find these annoying. It would be better to only put up a message if there was a problem--and hopefully this is a very rare occurance. Think in terms of trying to not get in the way of the user getting their job done. Another unecessary message means another unnecessary mouse click (or a wait). Banish confirmation messages. Regards, James
dbskipper intermitent error
Harvey, An idea just came to me. Rather than your msgwait() I would write that same info to an audit file (especially since it is an accounting app). Such an audit file also helps in troubleshooting code problems. You can also have an option in the program to turn auditing on and off. James
dbskipper intermitent error
Harvey, I looked at your error message again and I don't think the error is occuring at the msgwait(). Like Richard's problem, your database is being closed and then the program is erroring out in the browse when it attempts to skip, probably when redisplaying the browse after the msgwait() display is removed. I note that at the end of the code you posted you are closing a database--I don't know if it is the one in the browse. James
dbskipper intermitent error
James What i did to secure my browse is to add this oBrwAPP:bGotFocus := {|| IF(SELECT("APPEL") = 0, (OBRWAPP := NIL,APP1:SetFocus(),APP1:PostMsg(WM_CLOSE),APP1 := NIL ) , ) } Richard