topic
stringlengths
1
63
text
stringlengths
1
577k
ADS Índice Composto ( SOLUCIONADO )
No caso do ADS, não seria: [code=fw:28hglxwo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CREATE <span style="color: #0000ff;">INDEX</span> ??<br />&nbsp;</div>[/code:28hglxwo]
ADS Índice Composto ( SOLUCIONADO )
Falta en el Dbseek un ".T." [code=fw:1on1b8ak]<div class="fw" id="{CB}" style="font-family: monospace;">Utilizando ADS - Não funciona :<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> <br />nContaRegistros := <span style="color: #000000;">0</span><br />clientes-><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>, dbseek<span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span>nFilial,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> clientes->filial = nFilial .and. clientes-><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 />nContaRegistros ++<br />clientes-><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 />? nContaRegistros <span style="color: #B900B9;">// total 5 &nbsp;:( </span></div>[/code:1on1b8ak]
ADS Índice Composto ( SOLUCIONADO )
Obrigado a todos, segue a solução: <!-- m --><a class="postlink" href="http://devzone.advantagedatabase.com/dz/Content.aspx?Key=17&RefNo=031204-1609">http://devzone.advantagedatabase.com/dz ... 31204-1609</a><!-- m --> Title: Slow Performance, Unexpected Sort Order, Incorrect SQL Results After Converting From DBF to ADT Tables Problem Description: With DBF format tables creating a multi-segmented index is done with the plus ( + ) operator. A multi-segmented index expression would look like this: Field1 + Field2 + Field3. If this type of index expression is used in an ADT table there are potential performance issues, as well as a possibility for unexpected sort order results. In version 6.x the performance issue is a result of the Advantage Server incorrectly using the multi-segmented index which contains the plus operator. In version 7.0 the Advantage Server was changed such that indexes with the plus operator were ignored. In either case performance is adversely affected. The incorrect sort order problem is due to the fact that if one field in a multi-segmented index is NULL, the entire index key will evaluate to null. The null key can also cause problems for queries as the index would be used to to optimize a search. Solution: The solution to these problems is to change the operator used to create the multi-segmented index from the plus ( + ) operator to the semicolon ( ; ) operator. Using the semicolon operator will avoid all the problems mentioned above.
ADS(linux) Error 5004
Recentemente adquirimos a licença referente ao Advanced Database Server e estou com problemas referente a conexão no servidor linux Utilizando a função: AdsConnect60( //192.168.1.27:6262/home/sg/bases/sguario/ser.ads.chico/sgsdatabase.add, 7, "ADSSYS" ,"" , 0, @hConnection ) Error 5004: Either ACE could not find the specified file, or you do not have sufficient rights to access the file. The data dictionary file (//192.168.1.27:6262/home\sg\bases\sguario\ser.ads.chico\sgsdatabase.add) is not found on the server.
ADS(linux) Error 5004
Mira se ayuda: [url:3gavmops]http&#58;//infocenter&#46;sybase&#46;com/help/index&#46;jsp?topic=/com&#46;sybase&#46;infocenter&#46;dc01698&#46;0211/doc/html/mqu1304034541948&#46;html[/url:3gavmops]
ADS(linux) Error 5004
Karinha, obrigado por responder, eu já tinha visto esta solução, mais no meu caso é LINUX. obrigado
ADS(linux) Error 5004
Viu isto? [url:2kezonrt]http&#58;//harbourlanguage&#46;blogspot&#46;com&#46;br/2012/03/understanding-harbour-rddads&#46;html[/url:2kezonrt] [url:2kezonrt]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=22084[/url:2kezonrt]
ADS(linux) Error 5004
Karinha, isso não tinha visto, parece interessante, vou testar e aviso se deu certo! obrigado
ADS(linux) Error 5004
Pessoal, conseguimos resolver, tem haver com configuração de rede(RESOLV.CONF do linux) Re-configuramos e funcionou. muito obrigado
ADS(linux) Error 5004 (solved)
We recently acquired the license for the Advanced Database Server and I am having problems regarding the connection on the linux server Using the function: AdsConnect60( //192.168.1.27:6262/home/sg/bases/sguario/ser.ads.chico/sgsdatabase.add, 7, "ADSSYS" ,"" , 0, @hConnection ) Error 5004: Either ACE could not find the specified file, or you do not have sufficient rights to access the file. The data dictionary file (//192.168.1.27:6262/home\sg\bases\sguario\ser.ads.chico\sgsdatabase.add) is not found on the server.
ADS(linux) Error 5004 (solved)
Sgs, ADS for linux is case sensitive. Pay attention for the name of the files. In Linux, customer is different of CUSTOMER.
ADS(linux) Error 5004 (solved)
Vilian, Thanks for replying, I'm theoretically aware of what you're mentioning, but even then the problem occurs.
ADS(linux) Error 5004 (solved)
Sgs, I have solved this problem here changing the name of all files to lowercase.
ADS(linux) Error 5004 (solved)
thanks Vilian
ADS(linux) Error 5004 (solved)
I also like to use server aliases to avoid all those long path names. On adsserver.ini have this line: [ServerAliases] Mp10=/long path name Now change your long path name to Mp10. That's all. BTW, you don't need to share the directory. I like to keep it owned by the "advantage" user/group and set to 660 which means that only the owner can read/write. In this manner no other user but the server service has access to the data. Workstations can only access data when rightfully connected to the data dictionary. Reinaldo.
ADS(linux) Error 5004 (solved)
Thank you all for your help. We have identified that the problem has to do with the LINUX network configuration: resolv.conf, we had to reconfigure.
ADS.CH ¿ Dónde encontralo ?
Hola a todos. En las últimas versiones de xharbour/harbour que tengo de FTDN, no encuentro este archivo de cabercera, "ads.ch" ¿ Ya no es necesario ?. Necesito cambiar una aplicación para usar Advantage Database Server. Hace unos años hice una aplicación usando este gestor de bases de datos y en la versión que usé, la 0.99. de xharbour, si traía dicho archivo de cabecera. ¿¿ Valdría en la que tengo ahora la 1.2.1. ó ya no es necesario. ?? Muchas gracias Un saludo. xharbour 1.2.1 fivewin 13.01
ADS.CH ¿ Dónde encontralo ?
RL, Si, es necesario. Usa el que tengas o busca en la web del autor. Googlea con "Advantage Database Server" y lo tendrás. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
ADS.CH ¿ Dónde encontralo ?
Muchas gracias Rolando por la aclaración a mi duda.
ADS.CH ¿ Dónde encontralo ?
Ya tengo la aplicación funcionando en Advantage. Muchas gracias Rolando.
ADS.CH ¿ Dónde encontralo ?
Este es el sitio oficial de descargas para ADS: [url:dhenxnnr]http&#58;//www&#46;sybase&#46;com/products/databasemanagement/advantagedatabaseserver/client-engine-api[/url:dhenxnnr]
ADS.CH ¿ Dónde encontralo ?
Antonio, Quizás sería bueno por favor que en las builds de Fivetech se incluya include\ads.ch y ace32.lib y rddads.lib por defecto, para facilitar a los usuarios las actualizaciones. Muchas gracias.
ADS.CH ¿ Dónde encontralo ?
Saludos ! En la carpeta xharbour\winmake\readme.txt consigues informacion donde descargar varios ficheros para las contribs, su contenido es este /* * $Id: readme.txt 9768 2012-10-18 00:39:45Z andijahja $ * Notes on building xHarbour */ The following are some environment set-ups which are required to build custom xHarbour: SET HB_NO_BACKGROUND= When set to 1, xHarbour will not use background task routines in ST mode SET HB_GUI= When set to 1, xHarbour will disregard keyboard interrupt wiich is not very useful in GUI mode SET HB_NO_VM_ALL= When set, VM modules will not be amalgamated. SET HB_NO_FM_DL_ALLOC= When set, xHarbour will use compiler's native memory manager SET HB_DIR_POSTGRESQL=<install dir> Required to build libhbpg.lib and sddpg.lib Download URL: <!-- m --><a class="postlink" href="http://postgresql.org/download/">http://postgresql.org/download/</a><!-- m --> SET HB_DIR_OCILIB=<install dir> Required to build sddoci.lib Download URL: <!-- m --><a class="postlink" href="http://orclib.sourceforge.net/">http://orclib.sourceforge.net/</a><!-- m --> SET HB_DIR_MYSQL=<install dir> Required to build mysql.lib and sddmy.lib Download URL: <!-- m --><a class="postlink" href="http://mysql.com/">http://mysql.com/</a><!-- m --> SET HB_DIR_FIREBIRD=<install dir> Required to build firebird.lib and sddfb.lib Download URL: <!-- m --><a class="postlink" href="http://firebirdsql.org/">http://firebirdsql.org/</a><!-- m --> SET HB_DIR_CAIRO=<install dir> Required to build hbcairo.lib Download URL: <!-- m --><a class="postlink" href="http://cairographics.org/">http://cairographics.org/</a><!-- m --> SET HB_DIR_CURL=<install dir> Required to build hbcurl.lib Download URL: <!-- m --><a class="postlink" href="http://curl.haxx.se/">http://curl.haxx.se/</a><!-- m --> SET HB_DIR_OPENSSL=<install dir> Required to build tipssl.lib Download URL: <!-- m --><a class="postlink" href="http://slproweb.com/products/Win32OpenSSL.html">http://slproweb.com/products/Win32OpenSSL.html</a><!-- m --> SET HB_DIR_ALLEGRO=<install dir> Required to build gtalleg.lib Download URL: <!-- m --><a class="postlink" href="http://alleg.sourceforge.net/">http://alleg.sourceforge.net/</a><!-- m --> SET HB_DIR_MAGIC=<install dir> Required to build hbmagic.lib Download URL: <!-- m --><a class="postlink" href="ftp://ftp.astron.com/pub/file/file-5.04.tar.gz">ftp://ftp.astron.com/pub/file/file-5.04.tar.gz</a><!-- m --> SET HB_DIR_ADS=<install dir> Required to build rdads.lib Download URL: <!-- m --><a class="postlink" href="http://devzone.advantagedatabase.com/dz/content.aspx?Key=20">http://devzone.advantagedatabase.com/dz ... spx?Key=20</a><!-- m -->
ADS.CH ¿ Dónde encontralo ?
Muchas gracias a todos por tan importante ayuda. A vuestra disposición. Un saludo.
ADS: Por favor saquenme de esta duda.
Si uso indices CDX con ads, ¿puedo usar EVAL al indexar un archivo?. Estoy haciendo algunas pruebas y aparentemente ignora los comandos que envio en el EVAL. [code:n26phb1r] use Agentes New Exclusive if &#40;!NETERR&#40;&#41;&#41; pack erase&#40;"Agentes&#46;cdx"&#41; index on Numero tag Numero for &#46;not&#46; deleted&#40;&#41; EVAL &#40;msginfo&#40;'indexando registro'&#41;&#41; EVERY 1 endIf [/code:n26phb1r] Uso FWH 2.4,XHarbour 0.99.3 y ADS local 7.1 De antemano muchas gracias. José Rìos.
ADS: Por favor saquenme de esta duda.
Vamos, tan solo quiero que alguien me diga si no se puede usar EVAL al indexar usando ADS. Me interesa usar EVAL para poner un meter en mi rutina de reindexacion, pero no si si estoy haciendo algo mal o simplemente EVAL no es una funcion admitida por ADS. ¿Alguien ha usado EVAL reindexando con ADS?. Saludos.
ADS: Por favor saquenme de esta duda.
No es posible hacer lo que quieres. Hay que entender un poco como funciona ADS cuando se hace un indice contra lo que hace xHarbour o Clipper Bajo Clipper / (x)Harbour un proceso de reindexacion, en realidad lo que hace es un DO WHILE EOF para todos los registros de la base de datos. Cada registro de la base de datos es enviado al maquina que esta corriendo indices se realiza el indice, se incluye en el archivo NTX/CDX y se continua con el proceso, por eso, tu puedes utilizar la clausula EVAL, la cual se va a evaluar EVERY numero de registros. Ya que tu programa tiene el control, puede ejecutar las instrucciones que tienes en EVAL cada "x" numeros de registros. Con ADS no pasa esto, cuando tu pidex indexar un DBF, la instruccion de indexacion no es procesada por tu programa, tu programa le envia a ADS la instruccion de indexacion, y a partir de ahi, tu ya no tienes control sobre el proceso, ADS se encargara de hacer el indice y solo retomaras el control del programa hasta que ADS termine de indexar. Por ello no es posible utilizar la clausula EVAL.
ADS: Por favor saquenme de esta duda.
Muchas gracias por la respuesta Rene. Saludos.
ADS: Por favor saquenme de esta duda.
Trata este codigo. A mi me funciona pero la barra del meter pasa tan rapido, si es que pasa, que no se nota nada en 250,000 registros // launch ADS's callback function adsRegCallBack( {|nPct| ; oMeter:set( oMeter:nTotal * Int( nPct / 10000 ) ), ; SysRefresh(), .F. } ) // return .F. is aborting not allowed // your indexing routine goes here INDEX ON FIELD->TRAN_NO TAG iTraNo FOR .NOT. DELETED() ; EVAL (oMeter:SET(recno()),oMeter:Refresh(), !lEnd) EVERY nTimes oMeter:Set(Reccount()) oMeter:Refresh() SysRefresh() // release ADS's callback function adsClrCallBack()
ADS: Por favor saquenme de esta duda.
Gracias por el tip George. Lo voy a Probar. Saludos. José Ríos.
ADSBEGINTRANSACTION(<hConnect>)
Hi, How I can get <hConnect> to use in ADSBEGINTRANSACTION()?
ADSBEGINTRANSACTION(<hConnect>)
Hi, Use AdsConnection() Might I suggest that you put your ads questions on the Xhb newsgroup? You'll find a lot more ads users there <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Alex
ADSBEGINTRANSACTION(<hConnect>)
Hi, check the parameter #6 of the adsconnect60 function saludos Marcelo
ADSBEGINTRANSACTION(<hConnect>)
Hi, Thanks
ADSCDX 9006: HB-xgrab memory allocation error
Two of my clients have suddenly started experiencing a problem that generates an ADS error 9006 ( cannot allocate memory ) with HB_xgrab. I cannot replicate, nor can I create a small code sample. The problem does not create an error.log file with this problem so I don't know what code triggers it. I do know that it happens across two different versions of xBuilder ( March 06, and October 05 ) , and their appropriate versions of FWH. The software on the October release has been running since December without a problem and suddenly this error started occuring this morning. The installation with the March release actually started having problems last week with memory related issues using the older release, then upgraded to the newer version and the problem increased. The problem will occur when trying to run an area of the program where multiple files are opened and data is stored in memory for display on a series of folder pages ( FWH ). The software uses ADS, but one system uses LOCAL server and the other is using CLIENT SERVER. Other clients with the same versions do not yet experience any problems. It is my guess that either a piece of intrusive software is at play, but nothing shows up in testing, or a new security patch from Microsoft auto installed that may now conflict with xHarbour memory management. Has anyone seen any evidence of this error recently, and does anyone have any clues. Tim
ADSCDX 9006: HB-xgrab memory allocation error
Tim, The problem you describe is very specific and it looks as a xharbour ADS RDD issue. > ADS error 9006 ( cannot allocate memory ) with HB_xgrab. You could create a log file from such ADS call, so when the error happens then you will know what memory amount is requested to be allocated.
ADSCDX 9006: HB-xgrab memory allocation error
Tim: That problem happends with DBF with memofields created with Clipper, SixDriver or Comix. The problem is with the memosize block, which is not totally compatible with DBFCDX original format. The 3rd. parties create the memo field with a size of 16 bytes, however, with the "REAL" FoxPro DBFCDX, the memo field should always been a 64 bytes long. How to solve the problem: You will need to create a brand new structure using the ARC tool. Create a fresh structure with memofields with a memoblock size of 64 (default). After creating the new empty dbf, using CLIPPER, (you read it, CLIPPER) open the new created DBF, Clipper will open it without any problem, and then, using an APPEND FROM, import the data from the old database into the new created structure. Is very important that you create the new structre with ARC or using a xHarboour program.
ADSCDX 9006: HB-xgrab memory allocation error
Rene, You should report this issue to Przemek as many users may face the same problem. Thanks.
ADSCDX 9006: HB-xgrab memory allocation error
OK ... I hate to complicate the theory, but here are the facts: 1) The DBF and FPT were created with xHarbour / FWH and the ADS DBFCDX driver. 2) These have worked without failure now for several years. 3) The company using ADS Client Server found a virus on one workstation, disconnected it from the network, and still had the problem. They restored to a point prior to the virus, after cleaning all of the computers, and everything works. 4) The company using ADS LOCAL SERVER reports all machines are clean. However, apparently something occured on one computer that caused it to pass back corrupted data on two files. They did not have a viable backup. I tried exporting the data with ARC but that wouldn't work. dBase can't copy it either. dSalvage fixed a couple of small problems and says its OK. However, what worked was when I did an export using dClip41 ... but now apparently the client can't do an append to the files ! I have posted this on the xHarbour board.
ADSCDX/5035 The requested lock culd not be guaranted.
Hola a todos. Hace ya algunas semanas cambie mis libs de borland 5.8.2 cw32.lib a cw32mt.lib, tenia q hacer este cambio, pq empece a usar HDO (SQLite) de Manu Expósito y necesita esta lib, por el uso q hace de las funciones [b:28phx1cc]'__endthreadex'[/b:28phx1cc] y[b:28phx1cc] '__beginthreadex'.[/b:28phx1cc] Desde ese momento noto q mi app q usa Advantage me genera aleatoriamente este error : [b:28phx1cc]ADSCDX/5035 The requested lock culd not be guaranted.[/b:28phx1cc] y la aplicación se vuelve bastante inestable. Me gustaría saber si alguien le ha ocurrido algo similar y si ha conseguido solucionarlos, no me gustaría dejar de usar HDO, pq quiero empezar el largo proceso de migrar mis tablas a SQL, y HDO me es de mucha utilidad y va realmente bien. Gracias a todos los q me podáis ayudar. Saludos.
ADSCDX/5035 The requested lock culd not be guaranted.
Mira esto: [url:1eyamvop]http&#58;//devzone&#46;advantagedatabase&#46;com/dz/Content&#46;aspx?Key=17&RefNo=040116-1620[/url:1eyamvop]
ADSCDX/5035 The requested lock culd not be guaranted.
Manu no uso triggers. Saludos.
ADSCDX/5035 The requested lock culd not be guaranted.
Aqui [url:2gyn4lrt]http&#58;//devzone&#46;advantagedatabase&#46;com/dz/webhelp/advantage9&#46;1/mergedProjects/adserror/err5xxx/advantage_5xxx_error_codes&#46;htm[/url:2gyn4lrt] tienes la lista de errores 5xx mira el 5035 a ver si es de eso... Por lo que he podido leer parece que otro ha bloqueado ese registro o antes de ser actualizado se ha borrado. Si buscas en google esto "advantage error 5035" te salen respuestas que tal vez te valgan...
ADSCDX/5035 The requested lock culd not be guaranted.
Manu, ya he buscado en google y lo q encuentro no me ha valido para nada de momento. Gracias por tu interés.
ADSCDX/5035 The requested lock culd not be guaranted.
[quote="manuelcalerosolis":10i0zi34]Hola a todos. Hace ya algunas semanas cambie mis libs de borland 5.8.2 cw32.lib a cw32mt.lib, tenia q hacer este cambio, pq empece a usar HDO (SQLite) de Manu Expósito y necesita esta lib, por el uso q hace de las funciones [b:10i0zi34]'__endthreadex'[/b:10i0zi34] y[b:10i0zi34] '__beginthreadex'.[/b:10i0zi34] Desde ese momento noto q mi app q usa Advantage me genera aleatoriamente este error : [b:10i0zi34]ADSCDX/5035 The requested lock culd not be guaranted.[/b:10i0zi34] y la aplicación se vuelve bastante inestable. Me gustaría saber si alguien le ha ocurrido algo similar y si ha conseguido solucionarlos, no me gustaría dejar de usar HDO, pq quiero empezar el largo proceso de migrar mis tablas a SQL, y HDO me es de mucha utilidad y va realmente bien. Gracias a todos los q me podáis ayudar. Saludos.[/quote:10i0zi34] Try adding this parameter at startup [code=fw:10i0zi34]<div class="fw" id="{CB}" style="font-family: monospace;"><br />AdsTestRecLocks<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:10i0zi34]
ADSCDX/5035 The requested lock culd not be guaranted.
The requested lock could not be granted. The file or record may be locked by another user. This error can also occur when using the Advantage proprietary table type (ADTs) and the current record has been deleted. Linux Note If using a pre-2.4 kernel, it is possible to get this error because of an incorrect lock offset range. See USE_LOW_LOCK_OFFSETS for more details.
ADSCDX/6082 Error open : xxxxx.dbf
Que otra vez yo!.. Gracia a la ayuda de nuestro amigo antonio pude compilar mi primer programas para quere usar el RDD, pero cuando intento abrir una base de datos me da el error ADSCDX/6082, me podrìan decir por favor a que se debe este error? Donde puedo encontrar el detalle de los errores como salian antes en el clipper con el NG? PD: estoy siguiendo los pasos del ejemplo que trae el FWH, el programa testxbrw.prg Muchas gracias.
ADSCDX/6082 Error open : xxxxx.dbf
Me contesto, realizando muchas pruebas este error se corrige copiando el adsloc32.dll en el directorio de mi archivos DBF......Es impresionante ver la rapidez con la que se crean lo indices con el ADS....me he quedado atonito!!!....espectacular!!!!!!!Por favor si alguien tiene alguna documentacion sobre este manejador se lo agradeceria
ADSCDX\5023 error
Dear All, I've got this error while to use DbCloseAll() function with ADS. It has data open but error as subject and code. [code=fw:199vu93a]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />==========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span> : <span style="color: #000000;">D</span>:\V5\EZ4POS\<span style="color: #0000ff;">Release</span>\EZ4POS5.EXE <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Gr??e : <span style="color: #000000;">4</span>,<span style="color: #000000;">847</span>,<span style="color: #000000;">616</span> bytes<br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start : <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">14</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span> : <span style="color: #000000;">11</span>/<span style="color: #000000;">09</span>/<span style="color: #000000;">13</span>, <span style="color: #000000;">13</span>:<span style="color: #000000;">38</span>:<span style="color: #000000;">24</span><br />&nbsp; &nbsp;Error description : <span style="color: #000000;">Error</span> ADSCDX/<span style="color: #000000;">5023</span> &nbsp;Read error<br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> : <span style="color: #000000;">D</span>:\V5\EZ4POS\EZCASH1.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>CASHIER<span style="color: #000000;">&#40;</span><span style="color: #000000;">41</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> : &nbsp;=> DBCLOSEALL<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> : <span style="color: #000000;">D</span>:\V5\EZ4POS\EZPOS.PRG => NOWQUIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">2979</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> : <span style="color: #000000;">D</span>:\V5\EZ4POS\EZPOS.PRG => LOGOFF<span style="color: #000000;">&#40;</span><span style="color: #000000;">3949</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> : <span style="color: #000000;">D</span>:\V5\EZ4POS\EZPOS.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">466</span><span style="color: #000000;">&#41;</span></div>[/code:199vu93a] Thank you in advance for any help and idea.
ADSCDX\5023 error
......... hb_waEval( {|| (Alias())->(DbClearRelation())} ) dbCloseAll()
ADSCDX\5023 error
Dear Dima, I think so. Because the new xHarbour 1.2.3, I cannot close the main database file before close related file. It will show an error "Read Error". Which library has contain the hb_waEval() function? I cannot compile with xHB 1.2.3 and FWH1305. [quote="Dima":8wwfrv0d]......... hb_waEval( {|| (Alias())->(DbClearRelation())} ) dbCloseAll()[/quote:8wwfrv0d] Thanks in advance.
ADSCDX\5023 error
hb_waEval() -> Harbour 2.0 [code=fw:u1i2xdsy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />amas:=aGetWorkAreas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// FW</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>amas<span style="color: #000000;">&#41;</span>#<span style="color: #000000;">0</span><br /> <span style="color: #00C800;">for</span> each als in amas<br /><span style="color: #000000;">&#40;</span>als<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbClearRelation<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:u1i2xdsy]
ADSCDX\5023 error
Dear Dima, Thank you so much, it works fine now.
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Me ha sido imposible hasta el momento estrenar mi FW701, porque la tdbfh, no encuentra estas funciones, alguien podria decime que hacer, El caso es que la version que tengo Fw24 funciona perfecto. Yarecompila mi tdbf con el xharbour que trae el cd de fw701 . ayuda por favor...
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Puedes enviarme por email la clase tdbfh ? gracias,
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Las funciones que comentas estan en el módulo HBFORCE.C de la librería. Tienes que compilarlo e incluirlo al enlazar.
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Antonio: Ya incluí la hbforce, esos errores quedaron resueltos, solo quq ahora me dice que falta la funcion _ADS , la llama del TUTIL de la TDBFH con REQUEST , y aparte en mi modulo principal: #ifdef __HARBOUR__ #INCLUDE "ADS.CH" REQUEST _ADS REQUEST AdsKeyNo REQUEST AdsKeyCount REQUEST AdsGetRelKeyPos REQUEST AdsSetRelKeyPos #endif de donde me falto ponerla?
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Cambia REQUEST _ADS por REQUEST ADS
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
ya avance mas ahora tengo esto: Error occurred at: 29/03/2007, 15:06:10 Error description: Error BASE/1005 Message not found: TINDEX:_ODBF Stack Calls =========== Called from: => TINDEX:ERROR(175) Called from: tobject.prg => (b)HBOBJECT:HBOBJECT(105) Called from: => TINDEX:MSGNOTFOUND(0) Called from: TIndex.PRG => TINDEX:_ODBF(167) Called from: TIDXUTIL.PRG => GETIDXNONE(84) Called from: TDBF.PRG => TACACHAZA:NEW(341) Called from: TDBF.PRG => TACACHAZA:NEWOPEN(354) Called from: cachaza.PRG => CACHAZAXHORA(216) Called from: cachaza.PRG => (b)CACHAZA(103) Called from: WINDOW.PRG => TMDIFRAME:ACTIVATE(0) Called from: cachaza.PRG => CACHAZA(10
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Por favor, vuelve a enviarme el ZIP con las clases por email, gracias
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel Debes colocar la libreria antes de las de fivewin ( fiveh(x) ) o bien elimina la tindex.obj de la fiveh(X) saludos Patricio
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Patricio, Eso es lo que pensé <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> por eso quería comprobar las clases de TDbf para ver si hay colisión en los nombres Tu solución posiblemente es la correcta <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Aqui voy de nuevo, gracias por su ayuda. Ya depuró todo 0 error, 0 warning, peeeeero,, ¿porque no muestra nada? solo se activa en al administrador de tareas. en el error anterior spor lo menos me abria el dialogo para pedir el usuario y contraseña. ¿?
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Posiblemente no estás enlazando tu primer PRG ó no lo has compilado con /n. Por eso se construye un EXE pero no comienza en tu código sino en el primer símbolo que encuentra la máquina virtual de harbour
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Aqui si ya no entendí. Solo tengo un programa cachaza.prg y un cachaza.rc. Te decia que el error anterior me abria el dialogo por lo menos. ¿?
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Pon un MsgInfo( "aqui" ) en tu PRG y comprueba si se muestra
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
¡Ya estoy viendo la luz!.... ya abre el dialog, muestra el menu pero Tengo algunas dudas 1.- No leyo mi archivo .INI. 2.- Cada que le toca procesar algo se cicla. Agradezco su ayuda. Les recuerdo que este programa esta funcionando perfecto con la anterior version (fw24). Saludos
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, Muestranos tu PRG para que podamos construirlo y asi ayudarte
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
#define _OBJECTS_CH #define _VIDEO_CH #define _DDE_CH #define _ODBC_CH #define _DLL_CH #define _TREE_CH #include "Fivewin.ch" #include "TSBrowse.ch" #Include "TDBFDBF.CH" #ifdef __HARBOUR__ #INCLUDE "ADS.CH" REQUEST ADS REQUEST AdsKeyNo REQUEST AdsKeyCount REQUEST AdsGetRelKeyPos REQUEST AdsSetRelKeyPos #endif #define CLR_PINK nRgb(200,225,245) //nRGB( 255, 128, 128) #define CLR_NBLUE nRGB(200,255,200) //nRGB( 128, 128, 192) //Graficas #define GRAPH_TYPE_BAR 1 #define GRAPH_TYPE_LINE 2 #define GRAPH_TYPE_POINT 3 #define GRAPH_TYPE_ALL 4 static oWnd, lInit MEMVAR cEmpresa, nEmpresa, oBmpLogo, oBmp, cFntW, cBmp, cFont //----------------------------------------------------------------------------// function cachaza() local oBar, oBrush, oIcon, oTimer, oIni //local cFileMp3 := "f:\campo\bas\LunaFies.mp3" LOCAL cBmpFondo := "" local cFileMp3 := "" PUBLIC cEmpresa, nEmpresa, oBmp, cFntW, cFont, cBmp SET 3DLOOK ON SET CENTURY On SET DATE TO FRENCH SET EPOCH TO 1999 lInit := .T. /* INI oIni FILE ".\TABHRA.ini" GET cEmpresa SECTION "EMPRESA" ENTRY "NomEmp" OF oIni GET nEmpresa SECTION "EMPRESA" ENTRY "NumEmp" OF oIni GET cFont SECTION "EMPRESA" ENTRY "fuente" OF oIni DEFAULT "Arial" GET cFntW SECTION "EMPRESA" ENTRY "hFont" OF oIni ENDINI */ //SetHandleCount( 99 ) DbfCdx() // DEFINE BRUSH oBrush FILE ".\INGFAGSA.bmp" cEmpresa := "Fagsa" nEmpresa := 1 cFont := "Arial" cFtntW :="" DEFINE ICON oIcon NAME "Truck" DEFINE WINDOW oWnd MDI ; //FROM 4,10 TO (MaxRow()-4), (MaxCol()-10) ; MENU gMenu() ; TITLE "Salida de cachaza por Horas " ; ICON oIcon DEFINE BUTTONBAR oBar OF oWnd 3D DEFINE BUTTON NAME "tabla" NOBORDER OF oBar ; ACTION ( CachazaXHora() ); TOOLTIP "Cachaza por horas" SET MESSAGE OF oWnd ; TO "Fomento Azucarero del Golfo, S.A. de C.V. Pánuco, Veracruz, México, <!-- w --><a class="postlink" href="http://www.ifagsa.com.mx">www.ifagsa.com.mx</a><!-- w -->" ; CENTERED DATE TIME KEYBOARD oWnd:bPainted := { |hDc| DrawBmp( hDc , oWnd , cBmpFondo ) } ACTIVATE WINDOW oWnd maximized //; // on init CachazaXHora() return( nil ) //----------------------------------------------------------------------------// static function gMenu() local oMenu MENU oMenu MENUITEM "&Consultas" MENU MENUITEM "&Cachaza por hora..." ; ACTION CachazaXHora() SEPARATOR MENUITEM "&Salir" ACTION oWnd:End() ENDMENU * MENUITEM "&Ventanas" MENU MENUITEM "&Titulo Vertical" ACTION oWnd:Tile() ; WHEN Len( oWnd:oWndClient:aWnd ) > 0 MENUITEM "&Titulo Horizontal" ACTION oWnd:Tile( .t. ) ; WHEN Len( oWnd:oWndClient:aWnd ) > 0 MENUITEM "&Cascada" ACTION oWnd:Cascade() ; WHEN Len( oWnd:oWndClient:aWnd ) > 0 MENUITEM "&Siguiente ventana" + Chr( 9 ) + "Ctrl+F6" ; ACTION oWnd:NextWindow() ; WHEN Len( oWnd:oWndClient:aWnd ) > 1 SEPARATOR MENUITEM "&Alinea Iconos" ACTION oWnd:ArrangeIcons() ; WHEN Len( oWnd:oWndClient:aWnd ) > 0 MENUITEM "&Iconiza Todo" ACTION oWnd:IconizeAll() ; WHEN Len( oWnd:oWndClient:aWnd ) > 0 MENUITEM "C&ierra Todo" ACTION oWnd:CloseAll() ; WHEN Len( oWnd:oWndClient:aWnd ) > 0 ENDMENU oMenu:AddHelp( "FAGSA", "JLAS" ) ENDMENU return( oMenu ) //-------------------------------------------------------------------------------// STATIC FUNCTION Refr_Wnd( hDC ) LOCAL hWnd, nColor := 255 LOCAL aRect, nSteps LOCAL oBrush, nI LOCAL aCoor IF lInit aCoor := GetCoors(GetDeskTopWindow()) // Coordenadas de ventana IF aCoor[ 3 ] >= 768 // si > 600x800 la centra aCoor[ 1 ] := ( aCoor[ 3 ] - 580 ) / 2 aCoor[ 2 ] := ( aCoor[ 4 ] - 800 ) / 2 aCoor[ 3 ] := 580 aCoor[ 4 ] := 800 oWnd:Move( aCoor[ 1 ], aCoor[ 2 ], aCoor[ 4 ], aCoor[ 3 ] ) ELSE oWnd:Maximize() ENDIF lInit:=.F. ENDIF hWnd := oWnd:hWnd aRect := GetClientRect( hWnd ) nSteps:=( aRect[ 3 ] - aRect[ 1 ] ) / 3 aRect[ 3 ] := 0 FOR nI := 1 to nSteps aRect[ 3 ] += 3 DEFINE BRUSH oBrush COLOR RGB( nColor, nColor, nColor ) FillRect( hDC, aRect, oBrush:hBrush ) RELEASE BRUSH oBrush aRect[ 1 ] += 3 nColor -= 1 NEXT nI SetBkMode( hDC, 1 ) SetTextColor( hDC, CLR_WHITE ) DrawText(hDC, "© Miguel Salas",{oWnd:nHeight - 105, oWnd:nWidth - 135, oWnd:nHeight - 10, oWnd:nWidth - 10 } ) RETURN (NIL) //----------------------------------------------------------------------------// function CachazaXHora() local oWndChild, oBar, oLbx, oACachaza local bData, oBtn, oGet, oFont, bcolor, ; oFont1, oIco //Local aBrush := Array(2) LOCAL aArr := {} LOCAL nTot := ARRAY(10) LOCAL nAcumAnt[ 1 ] LOCAL nPromedio := 0, dFecha1 LOCAL nTonSem[ 1 ] DATABASE NEW oACachaza FILE ".\dat\acachaza.DBF" SHARED via "DBFCDX" ; INDEX aCachaza.CDX oACachaza:lBuffer := .T. oACachaza:Setorder(1) IF oACachaza:LASTREC() == 0 MsgInfo("Tabla vacia" + CRLF + "No hay nada que mostrar") oACachaza:End() return nil ENDIF oACachaza:last() dFecha1 := oACachaza:AH_fecha // CursorWait() DEFINE FONT oFont1 NAME "MS Sans Serif" SIZE 0, -12 DEFINE ICON oIco NAME "alert.ico" DEFINE WINDOW oWndChild MDIchild ; OF oWnd DEFINE BUTTONBAR oBar OF oWndChild 3D DEFINE BUTTON NAME "Primero" ; NOBORDER OF oBar TOOLTIP "Inicio de Zafra" ; ACTION ( oACachaza:first(), dFecha1 := oACachaza:AH_fecha, aArr := {},; CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, @nPromedio, oWndChild, @nTonSem ) ) DEFINE BUTTON NAME "Previo" ; NOBORDER OF oBar TOOLTIP "Dia Anterior"; ACTION ( dFecha1--, aArr := {},; CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, @nPromedio, oWndChild, @nTonSem) ) DEFINE BUTTON NAME "Siguiente" ; NOBORDER OF oBar TOOLTIP "Siguiente Registro"; ACTION ( dFecha1++, aArr := {}, ; CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt,dFecha1, @nPromedio, oWndChild, @nTonSem) ) DEFINE BUTTON NAME "Ultimo" ; NOBORDER OF oBar TOOLTIP OemToAnsi( "Ultimo Registro" ) ; ACTION ( oACachaza:LAST() , dFecha1 := oACachaza:AH_fecha, aArr := {}, ; CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, @nPromedio, oWndChild, @nTonSem ) ) DEFINE BUTTON NAME "Buscar" ; NOBORDER OF oBar TOOLTIP "Busca una Fecha especifica"; ACTION ( dFecha1 := msgdate(,"Dia de Zafra"), aArr := {}, ; CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, @nPromedio, oWndChild, @nTonSem ) ) DEFINE BUTTON NAME "Impresora" GROUP ; NOBORDER OF oBar TOOLTIP "Imprimir "; ACTION oLbx:Report("Salida de Cachaza por hora", .T.) DEFINE BUTTON NAME "Histogr" ; NOBORDER OF oBar TOOLTIP "Gráfica de la entrada por horas"; ACTION msginfo( "Hola" ) //Graficar( aArr, dFecha1, nPromedio ) DEFINE BUTTON NAME "Actualizar" GROUP ; NOBORDER OF oBar TOOLTIP "Refresca datos"; ACTION aArr := {},; CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, @nPromedio, oWndChild, @nTonSem ) DEFINE BUTTON NAME "Salir" GROUP ; NOBORDER OF oBar TOOLTIP "Salir de esta pantalla"; ACTION oWndChild:End() @ 00, 00 BROWSE oLbx ALIAS ARRAY OF oWndChild UPDATE CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, @nPromedio, oWndChild, @nTonSem ) ? "hola3" bColor := { || If( oLbx:nAt % 2 == 0, CLR_PINK, CLR_NBLUE ) } oLbx:lCellbrw := .T. // oLbx:SetColor( { 2, 4 }, { aBrush[1], aBrush[2] } ) oLbx:SetColor( { 1, 3, 5, 6, 13, 15 }, ; { CLR_BLUE, CLR_YELLOW, CLR_BLUE, ; { CLR_WHITE, CLR_HRED }, ; // degraded cursor background color CLR_WHITE, CLR_HRED } ) // text colors oLbx:SetColor( { 2, 4, 14 }, ; { { CLR_WHITE, CLR_HBLUE }, ; // degraded cells background color { CLR_HGRAY, CLR_BLACK }, ; // degraded headers backgroud color { CLR_HRED, CLR_HGREEN } } ) // degraded order column background color ADD COLUMN TO BROWSE oLbx DATA ARRAY ELEMENT 1; TITLE "Dia" ; SIZE 70 ; COLORS CLR_BLACK, bColor; // background color from a Code Block 3DLOOK TRUE, TRUE, TRUE; // cells, titles, footers ALIGN DT_LEFT, DT_CENTER, DT_RIGHT ; // cells, title, footer FOOTER { || "Dia Anterior" + CRLF +; "Del dia" + CRLF + ; "A LA SEMANA" + CRLF +; "Dia Anterior" + CRLF +; "Del Dia" + CRLF +; "Total" } ADD COLUMN TO BROWSE oLbx DATA ARRAY ELEMENT 2; TITLE "Hora" ; ALIGN DT_CENTER, DT_CENTER; // let's align cells to right and center title SIZE 44 ; COLORS CLR_BLACK, bColor ; // background color from a Code Block 3DLOOK TRUE, TRUE, TRUE ; // cells, titles, footers FOOTER "=" ADD COLUMN TO BROWSE oLbx DATA ARRAY ELEMENT 3; TITLE "Bruto" ; ALIGN DT_RIGHT, DT_CENTER; SIZE 240 ; COLORS CLR_BLACK, bColor; 3DLOOK TRUE, TRUE, TRUE; FOOTER { || Transform( nTonsem[ 1 ], "#,###,###.###" ) + CRLF +; /* >Dia Anterior */ Transform( nTot[ 1 ], "##,###.###" ) + CRLF +; /* Del dia */ Transform( nTonsem[ 1 ] + nTot[ 1 ], "###,###.###" ) + CRLF +; /* A LA SEMANA */ Transform( nAcumAnt[1], "#,###,###.###" ) + CRLF +; /* >Dia Anterior */ Transform( nTot[ 1 ], "##,###.###" ) + CRLF +; /* Del Dia */ Transform( nAcumAnt[ 1 ] + nTot[ 1 ], "#,###,###.###" ) } /* >Total */ ADD SUPER HEADER TO oLbx FROM COLUMN 3 TO COLUMN 3 ; TITLE OemToAnsi("Toneladas de cachaza por horas") 3DLOOK oLbx:nHeightCell += 6 oLbx:nHeightSuper += 7 oLbx:ChangeFont( oFont1,, 1) //oLbx:SetColor( {3,4},{CLR_BLACK,CLR_HGRAY} ) oLbx:SetColor({9},{CLR_RED},) // 3D text bas-relief in all headers oLbx:Set3DText( .T., .T.,, 3 ) // 3D text raised in cells of column 2 //oLbx:Set3DText( .T., .T., 2, 1 ) // adjust the header height oLbx:nHeightHead := 25 oWndChild:SetControl(oLbx) ? "hola4" ACTIVATE WINDOW oWndChild ; VALID ( oLbx:End(), oFont1:End(), oIco:End(), SysRefresh(),; oACachaza:End(), .T. ) return nil /*-------------------------------------------------------------*/ static function CargaDatos( oACachaza, oLbx, aArr, nTot, nAcumAnt, dFecha1, nPromedio, oWndChild, nTonSem ) local nTGCN := 0, n local dFecha2, dFechaini LOCAL oDb := oACachaza:Clone() //Clonamos la base datos en memoria LOCAL nPromTH := 0, nPromHras := 0, nTonsHra := 0 Afill( nTot, 0) IF oACachaza:Ah_fecha == DATE() IF oACachaza:Ah_Hora < "06" dFecha1-- ENDIF ENDIF dFecha2 := dFecha1 + 1 // busca la fecha a consultar ( B£squeda aproximada ) oACachaza:SEEK(dtos(dFecha1)+"06", .T., .F. ) IF oACachaza:Eof() .OR. oACachaza:AH_fecha != dFecha1 MsgAlert("Sin Informaci¢n en :"+dtoc(dfecha1)) RETURN .F. ENDIF oACachaza:Prior() if oACachaza:bof() FOR n := 1 TO 1 nAcumAnt[ n ] := 0 nTonSem[ n ] := 0 NEXT else nAcumAnt[ 1 ] := oACachaza:ah_a_tonbr oACachaza:Next() FOR n := 1 TO 1 nTonSem[ n ] := 0 NEXT dFechaIni := oDb:aH_fecha - ( dow( oDb:ah_fecha ) - 1 ) IF dFechaIni != dFecha1 oDb:Setscope( dtos( dFechaIni )+ "06", DTOS( dFecha1 ) + "05" ) do while ! oDb:Eof() nTonSem[ 1 ] += oDb:ah_h_tonbr oDb:next():qload() ENDDO ENDIF ENDIF nTGCN := 0 oACachaza:setscope(dtos( dFecha1) + "06", DTOS(dFecha2) + "05" ) DO WHILE ( ! oACachaza:eof() ) nTGCN += oACachaza:ah_h_tonbr AADD( aArr, {transform(oACachaza:ah_fecha, "@D"),; strzero(val(oACachaza:ah_hora) + 1,2),; oACachaza:ah_h_tonbr, ; nTGCN,; oACachaza:ah_a_tonbr } ) oACachaza:skip(1) ENDDO // Totalizar columnas AEval( aArr, { | e | nTot[1] += e[ 3 ], ; // Tons Brutas nTot[2] := nTGCN , ; // Acumulado parcial nTonsHra += e[ 4 ] }) nPromedio := round( nTot[1] / len( aArr ), 3 ) nPromTH := nTonsHra / nTGCN oWndChild:SetText( "Dia de Zafra: "+ DTOC( dFecha1 ) +space(10)+; "Promedio por Hora:"+LTRIM( str( nPromedio ) ) + " Tons." ) oLbx:SetArray( aArr ) oLbx:refresh() oACachaza:ClearScope() return .T. //----------------------------------------------------------------------------// FUNCTION DrawBmp( hDc , oWnd , cBmpFile ) /* FUNCTION DrawBmp( hDc , oWnd , cBmpFile ) Autor : Víctor Manuel Tomás Díaz Vikthor */ LOCAL nTop, nLeft, nBottom, nRight LOCAL oBmpFondo LOCAL nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() DEFAULT cBmpFile := "" DEFINE BITMAP oBmpFondo FILE ( cBmpFile ) IF oWnd:oMsgBar != nil // Si la ventana tiene Barra de mensajes nHeight -= oWnd:oMsgBar:nHeight ENDIF IF oWnd:oBar != nil // Si la Ventana tiene Barra de botones nHeight -= oWnd:oBar:nHeight ENDIF nHeight -= 40 // +- Altura de la barra de titulo y menu #IFDEF __HARBOUR__ DrawBitmap( hDC, oBmpFondo:hBitmap , 0, 0, nWidth, nHeight ) #ELSE IF At("2.1",FWVERSION) > 0 DrawBitmap( hDC, oBmpFondo:hBmpPal , 0, 0, nWidth, nHeight ) ELSE DrawBitmap( hDC, oBmpFondo:hBitmap , 0, 0, nWidth, nHeight ) ENDIF #ENDIF oBmpFondo:End() RETURN( NIL )
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
> 2.- Cada que le toca procesar algo se cicla. Que error te da ?
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Hola a todos, hace días que empecé a revisar/modificar TDBF, y ya consigo utilizarla aún sin eliminar TIndex de Fivewin. Creo que el método Clone() es erróneo para la versión actual de Harbour, me explico. Este método realiza: oClon:aTField := __objClone( oDb:aTField ) oClon:aTIndex := __objClone( oDb:aTIndex ) #else oClon:aTField := oClone( oDb:aTField ) oClon:aTIndex := oClone( oDb:aTIndex ) clonando en realidad unas ARRAYs de objetos. Por tanto debería realizarse un Aclone() y posteriormente un Oclone() de cada elemento de la nueva ARRAY. Saludos. Carlos G.
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
LOCAL oDb := oACachaza:Clone() //Clonamos la base datos en Prueba con sustituir la línea anterior por esta otra: LOCAL oDb := oACachaza:Clone( .T. ) //Clonamos la base datos en Si no me equivoco en la misma función, estás estableciendo un Scope a oDb y otro a oAcachaza cuando ambas tienen el mismo alias/área de trabajo (no me he fijado si hay más cosas). Por otro lado este es el metodo Clone() de Tdbf.prg modificado (sin optimizar) que utilizo con FWH 7.01 y parece que funciona correctamente: Saludos ****************************** METHOD Clone( lNewArea, cComment ) CLASS TDbf local oDb := Self local oClon DEFAULT lNewArea := .f. DEFAULT cComment := ::cComment if lNewArea oClon := DbfServer( oDb:cFile ) oClon:New( oDb:cFile, oDb:cName, oDb:cRDD, cComment, oDb:cPath ) #ifdef __HARBOUR__ //oClon:aTField := __objClone( oDb:aTField ) //oClon:aTIndex := __objClone( oDb:aTIndex ) // 2 línias sustituyen 2 anteriores. CG oClon:aTField := aclone( oDb:aTField ) oClon:aTIndex := aclone( oDb:aTIndex ) #else //oClon:aTField := oClone( oDb:aTField ) //oClon:aTIndex := oClone( oDb:aTIndex ) // 2 línias sustituyen 2 anteriores. CG oClon:aTField := aclone( oDb:aTField ) oClon:aTIndex := aclone( oDb:aTIndex ) #endif oClon:FieldCount := len( oClon:aTField ) AEval( oClon:aTField, { |o| o:oDbf := oClon } ) AEval( oClon:aTIndex, { |o| o:oDbf := oClon } ) oClon:Activate( oDb:lRecycle, oDb:lShared, oDb:lReadOnly, oDb:lProtec ) else #ifdef __HARBOUR__ oClon := __objClone( oDb ) //oClon:aTField := __objClone( oDb:aTField ) //oClon:aTIndex := __objClone( oDb:aTIndex ) // 2 línias sustituyen 2 anteriores. CG oClon:aTField := aclone( oDb:aTField ) oClon:aTIndex := aclone( oDb:aTIndex ) #else oClon := oClone( oDb ) //oClon:aTField := oClone( oDb:aTField ) //oClon:aTIndex := oClone( oDb:aTIndex ) // 2 línias sustituyen 2 anteriores. CG oClon:aTField := aclone( oDb:aTField ) oClon:aTIndex := aclone( oDb:aTIndex ) #endif oClon:cComment := cComment AEval( oClon:aTField, { |o| o:oDbf := oClon } ) AEval( oClon:aTIndex, { |o| o:oDbf := oClon } ) endif // Inicio líneas añadidas CG oClon:AutoField() AEval( oClon:aTField, { |o| o:Activate() } ) oclon:AutoIndex() oClon:IdxActivate() // Fin líneas añadidas CG return( oClon ) ******************************
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
hola podrias pasarme la tdbfh y si tienes la TSbrowse que tienes funcionando con FW701, quizas por alli este el mal, ya que no me deja usar objetos database, set index, etc, esto que estube haciendo me parece demasiado para actualizar mis programas, imaginate si este es uno solo y no he podido hacerlo funcionar, que sera cuando me ponga a corregirlos todos, si me dijeron "nada mas recompila y ya", pues asi debe ser, si todos mis programas funcionan con FW2.4, deden funcionar con 7.01 sin cambios, o minimos cambios.
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
Miguel, FWH siempre mantiene compatibilidad con el código anterior, lo que ocurre es que si se está usando una librería de terceros como en este caso es la clase TDbf, pues pueden aparecer este tipo de errores por el uso de funciones que han cambiado en Harbour, etc.
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
totalmente de acuedo Antonio, por eso pido si alguien tiene funcionando estas libs con 701 , me las haga llegar, talvez desde alli esta mi error. Gracias
ADSISSHAREDADSISREADONLYISSHAREDISREADONLY EN TDBFH
[quote="Miguel Salas":1fxfslgj]totalmente de acuedo Antonio, por eso pido si alguien tiene funcionando estas libs con 701 , me las haga llegar, talvez desde alli esta mi error. Gracias[/quote:1fxfslgj] Prueba con este: <!-- m --><a class="postlink" href="http://hyperupload.com/download/0207653518/Tdbf_Hb1.01.zip.html">http://hyperupload.com/download/0207653 ... 1.zip.html</a><!-- m --> Parece que funciona con Harbour 1.01 y FiveWin 7.04 Saludos Carlos G.
ADT DESDE POCKET PC
Hola termine de desarrollar una aplicacion para la pocket PC y necesito acceder a los datos ADT de mi sistema desarrollado en FiveWin/Harbour, se puede hacer esto de alguna manera o no existe posibilidad de comunicar la Pocket con datos ADT y debo seguir usando DBF? Gracias por la ayuda! Natalia.
ADT DESDE POCKET PC
Natalia, Si te refieres al ADS (Advantage Database server), no existe versión para Pocket PC, que nosotros sepamos
ADT DESDE POCKET PC
Entonces no existe posibilidad de abrir con mi programa de la pocket una Tabla ADT? Tengo que volver a la version DBF todo mi sistema de Windows? Saludos.
ADT DESDE POCKET PC
El ADS que usas en el PC es local ó la versión cliente/servidor ?
ADT DESDE POCKET PC
Antonio: En este momento uso ADS Local, pero ya estoy por comprar la version cliente servidor solo si me sirve con la Pocket ya que ofresco mi sistema windows junto con la extension de la Pocket. Slds.
ADT DESDE POCKET PC
Natalia, Si necesitas acceder a los mismos datos desde el Pocket PC y desde el PC vas a tener que usar DBFCDX como RDD. Advantage requiere unas DLLs y que sepamos no existen dichas DLLs para Pocket PC
ADT DESDE POCKET PC
Muchas gracias Antonio, a pesar de sentir limitacion en este aspecto por lo menos ahora se que no tengo que usar la migracion a ADT hasta que no este resuelto para la Pocket. Gracias por tu tiempo, Slds. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
ADT DESDE POCKET PC
Natalia: ADS requiere de un cliente (DLL) que en este momento no existe para Pocket PC. No se si Extended Systems tenga planes de hacer un cliente Pocket en el corto plazo. Para trabajar con tablas ADT y pockets nosotros usamos una interfaz web que nos permite la portabilidad de la aplicacion, pero no lo hacemos usando FWPPC
ADT DESDE POCKET PC
Hola Rene, Que herramientas necesitaría para utilizar esa interfaz web de la que me comentas?. El sistema que tengo desarrollado para la Pocket con FWPPC usando DBFs, me sirve? O debería hacerlo completo desde cero? Me podrías guiar un poquito. Desde ya muchas gracias. Natalia, Saludos
ADT DESDE POCKET PC
Natalia: Eso seria un muy buen tema para una ponencia, lo tomare en cuenta para mi proxima visita a Argentina. De momento te explico como funciona el invento: Necesitas un Pocket PC, Palm, Blackberry o hasta un telefono celular con navegador Web incluido y cualquier tipo de conexion a Internet o intranet WiFi, GPRS, etc. Necesitas un equipo que haga las veces de servidor web, tu mismo servidor de archivos puede servir, necesitas instalar un software de servidor web, ya sea el IIS o bien nosotros usamos el Orelly WebSite. En el caso de IIS nosotros usamos una herramienta de xHarbour.com llamada xBScript, que te permite camibar el motor de VBScript incluido con el servidor ASP de IIS por un motor 100% compatible con xHarbour, con todas las caracteristicas, incluyendo soporte al RDDADS y obviamente a tablas ADT. En el caso del Orelly WebSite, usamos un estandar de internet llamado CGI, bajo este estandar tu haces un programa EN LO QUE QUIERAS, FiveWin incluido, que corre en el equipo servidor web. Bien la cosa es muuuuy simple, en tu dipositivo movil, tu vas a conectar con el servidor web donde tienes instaldo tu servidor, ya sea via intranet o internet, y vas a diseñar pequeñas paginas WEB con formularios. Tanto ASP, como CGI son estandares de internet que te permiten ejecutar un programa "remoto" desde tu navegador web, ese programa remoto esta alojado en el servidor Web, y es un EXE hecho en cualquier lenguaje de programacion. Los estandares mencionados anteriormente te permiten "enviar" los fomularios desde tu navegador movil, y al mismo tiempo ejecutar el programa alojado en el servidor, el cual recibe como parametros los datos que tu cargaste en el formulario WEB, tu mismo programa los procesa y debe responder con otra pagina web, misma que cuando es generada es devuelta de manera automatica a tu navegador portatil. Esta solucion la tenemos muuuy probada para tomas de inventarios remotas donde la conexion WiFi no esta garantizada, tambien tenemos la solucion implementada en restaurantes para tomas de comandas y envio directo a cocina, para Verificadores de precios en supermercados, etc. La ventaja de esto es que funciona con cualquier dispositivo movil que tenga un navegador Web, de cualquier marca o modelo. Nos vemos en Chile a partir del 13 de Octubre y en Argentina el 3 de Noviembre.
ADT DESDE POCKET PC
René, Todo esto parece realmente muy interesante, lo vamos a tener en cuenta para un futuro. Muchas gracias por tu explicacion. Aprovecho la oportunidad para consultarte hacerca de tu visita a Argentina ya que me gustaría asistir en caso de que dieses alguna capacitacion. Saludos, Natalia
ADT tables Recall
Hi How can I Recall deleted records in ADT tables? The Utility provided (ARC) doesn't work for this. I've tried the function AdsRecallAllRecords (compliling ACE32.LIB) but the compiler cannot find the function (UNRESOLVED EXTERNAL) Any suggestion? Thanks in advance. PD: sorry for my english
ADT tables Recall
you can not recall deleted records in ADT. Once deleted they are deleted forever.
ADo oRs:MoveLast() Errror
Estoy iniciando con ado, pero no entiendo porque me manda este error. Error description: Error ADODB.Recordset/16389 E_FAIL: MOVELAST Args: Stack Calls =========== Called from: win32ole.prg => TOLEAUTO:MOVELAST(0) Called from: => SKIPPER(125) le agrege llave primaria a la tabla y sigo con el error. saludos fernando sandoval ruiz
ADo oRs:MoveLast() Errror
Local Ors, Obrw, oDlg oRs = CREATEOBJECT( "ADODB.Recordset" ) TRY oRs:Open( "SELECT * FROM EMPRESAS ORDER BY NUMCIA", "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;PORT=3306;DATABASE=comandas;UID=root;PWD=root;OPTION=1;" ) CATCH oErr ? oErr:Description RETURN NIL END TRY // oInspect( oRecSet) //Inspector( oRdd , "oRdd") DEFINE FONT oFontBrw Name "Ms Sans Serif" SIZE 0,-11 //DEFINE DIALOG oDlg RESOURCE "DLGMANDB" FONT oFontBrw DEFINE DIALOG oDlg SIZE 300, 300 @ 0, 0 BROWSE oBrw; ON RIGHT CLICK oBrw:Report( "TCBrowse report", .T. ) ADD COLUMN TO oBrw; DATA oRs:Fields( "NomCia" ):Value; HEADER "UTENTI"; COLOR CLR_RED, CLR_GREEN ADD COLUMN TO oBrw; DATA oRs:Fields( "DirCia" ):Value; HEADER "UTENTI"; COLOR CLR_RED, CLR_GREEN oBrw:bLogicLen = { || oRs:RecordCount } oBrw:bGoTop = { || oRs:MoveFirst() } oBrw:bGoBottom = { || oRs:MoveLast() } oBrw:bSkip = { | nSkip | Skipper( oRs, nSkip ) } oBrw:cAlias = "ARRAY" // oDlg:oClient:=oBrw // oDlg:SetControl( oBrw ) // oBrw:lCellStyle := .T. // Solo para FW 2.00 ¢ superior // oBrw:nLineStyle := 3 // Solo para FW 2.00 ¢ superior // oBrw:Refresh() /* REDEFINE BUTTON oBAltas ID 202 OF oDlg ; ACTION (AltasCias( ID_AALT, oRecSet ) ,SelEmpresa(oWnd, oRecSet ), oRecSet:Refresh(.t.),oBrw:Refresh() , oRecSet:End() ,oDlg:End() , SysRefresh() ) REDEFINE BUTTON oBModificar ID 203 OF oDlg ; ACTION AltasCias( ID_AMOD, oRecSet ) REDEFINE BUTTON oBBorrar ID 204 OF oDlg ; ACTION ( if( MsgYesNo( OemToAnsi( ; "¨Seguro que quiere borrar la Empresa " + oRecSet:Fields("NumCia"):value ) ) , ; BorrarRegistro(oAdo , "empresas" , "numemp" , oRecSet:Fields("NumCia"):value ) , "" ) , oRecSet:refresh() ) REDEFINE BUTTON oBSeleccion ID 201 OF oDlg ; ACTION (SelEmpresa(oWnd , oRecSet ), SysRefresh() ,oDlg:End()) REDEFINE BUTTON oBSalir ID 206 OF oDlg ; ACTION ( oTb:Close(), oDlg:End()) */ ACTIVATE DIALOG oDlg ; ON INIT oDlg:SetControl( oBrw ) ; CENTER oFontBrw:End() RETURN( NIL )
ADo oRs:MoveLast() Errror
No sera la propiedad de navegacion de tu Recorset??
ADo oRs:MoveLast() Errror
Gracias manuel, he seguido los ejemplos publicados aqui en internet asi como documentacion del ado, cual seria la manera correcta de especificar el recordser o de cambiarla? gracias. fernando sandoval ruiz
ADo mysql
SOmeone havesample using mysql with ado ? i need install something to use this ? thanks
ADo mysql
Hello Lailton, For using mysql with ado you need install the odbc driver for mysql and it's all. The rest of job if made for ado. Atte., Lautaro Moreira Osorno Chile PD: Sorry for my bad english
ADo mysql
GRacias estoy baixando mysql connector odbc thanks
ADo mysql
Laiton: Mira este blog Take a look to this blog <!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/">http://sqlcmd.blogspot.com/</a><!-- m --> Saludos Regards
ADo mysql
Thanks Armando. Speed of Ado with mysql is good ? what´s more fast, ADO or SQLRDD or SQLLIB ? ( To MYSQL ) how i can calcule this ? Thanks so much
ADo mysql
Laiton: Please follow this interesting thread <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=17113&start=0">viewtopic.php?f=3&t=17113&start=0</a><!-- l --> Regards
AEAT - libreria mxml - errores
Gracias por la info, que seguro que alguien sin identificar sabe aprovechar. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> No es mi caso. Yo lo monté todo con archivos de texto. Te espera una buena. Buena suerte. <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->