topic
stringlengths
1
63
text
stringlengths
1
577k
Ads Xbrowse problem in fhw 16.11
This my test program, built with buildx.bat in the fwh\samples folder. [code=fw:2iq0v04t]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ads.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;RddRegister<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AdsSetServerType<span style="color: #000000;">&#40;</span> ADS_LOCAL_SERVER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;RDDSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADSCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> CUST VIA <span style="color: #ff0000;">"ADSCDX"</span><br />&nbsp; &nbsp;XBROWSER <span style="color: #ff0000;">"CUST"</span> FASTEDIT <span style="color: #0000ff;">TITLE</span> FWVERSION<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />REQUEST ADSKEYCOUNT, ADSGETRELKEYPOS, ADSSETRELKEYPOS, ADSKEYNO<br />&nbsp;</div>[/code:2iq0v04t] This is running well and I could see the browse. I found ads.ch in \xharbour\include. Probably I might have copied it from \xharbour\contrib\rdd_ads. xHarbour 1.2.3 Intl. (SimpLex) (Build 20151110) Used ace.dll in \fwh\samples folder
Ads Xbrowse problem in fhw 16.11
Dear Rao, Thank you for your response. I downloaded xhabour (20161124 version) from whosaway.com. But I thought that the xharbour had any problems. In FWH that you let me know, I downloaded xhabour and tried to compile, and checked that all work fine. Thank you for helping me. But, the problem that some korean characters are broken isn't still solved. So I tried to use hb_unicode(.t.), hb_unicode(.f.), But they didn't affect to solve the problems. I sent you the dbf. The GET system for korean has much problems but I'm hard to explain all things. Please help me whenever it happens to me.
Ads Xbrowse problem in fhw 16.11
[quote:18bffcib]In FWH that you let me know, I downloaded xhabour and tried to compile, and checked that all work fine. Thank you for helping me. [/quote:18bffcib] Glad it is now working with xHarbour. For sometime I request you to use this version of xHarbour. [quote:18bffcib] But, the problem that some korean characters are broken isn't still solved. So I tried to use hb_unicode(.t.), hb_unicode(.f.), But they didn't affect to solve the problems. [/quote:18bffcib] Just now, I received your email. Please give some time to study the issue.
Ads Xbrowse problem in fhw 16.11
The official xHarbour distribution is whosaway.com and you should use it. EMG
Ads Xbrowse problem in fhw 16.11
I'm missing. hb_unicode(.t.) is wrong and the fw_Setunicode(.t.) fits. But they didn't affect
Ads busqueda campos memos VACIOS
Estimados estoy utilizando Servidor Ads 8.1, y tablas ADT Mi pregunta se alguien sabe buscar dentro de campos memos me resulta con esta instruccion, pero no se como buscar campos memos vacios [code:3psb8r0d]Libros->&#40; AdsSetAof&#40; 'CONTAINS&#40; AREA, "LO QUE QUIERO BUSCAR"' &#41; &#41;[/code:3psb8r0d] Cualquier Ayuda es bienvenida
Ads busqueda campos memos VACIOS
SELECT * FROM libros WHERE area IS NULL o algo asi: Libros->( AdsSetAof( Empty( area ) ) )
Ads busqueda campos memos VACIOS
Los AOFs() no funcionan sobre campos memo, tienes que utilizar SQL, como dice Reinaldo.
Ads busqueda campos memos VACIOS
Muchas gracias La solucion fue la siguiente: Si quiero buscar un texto en un campo memo: [code:2ehqc45d]AdsSetAof&#40; 'CONTAINS&#40; AREA, "'+xFilter+'"&#41;' &#41;[/code:2ehqc45d] [b:2ehqc45d]nota:CONTAINS es un funcion ADS[/b:2ehqc45d] si quieren buscar un campo vacio [code:2ehqc45d]Libros->&#40; AdsSetAof&#40; 'empty&#40; AREA &#41;' &#41; &#41;[/code:2ehqc45d] en realidad era mucho mas facil <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ads connection without drive mapping
hi, to use this (above, subject), i need use data dictonary? adt proprietary files? someone has an sample? thanks
Ads connection without drive mapping
Nop: In your source code add: AdsRightsCheck(.F.) And open you database using the UNC notation: USE \\servername\share\folder\dbf. Sample: USE \\googleserver\samples\adsdemos\customer.dbf and, you need a .INI file, ADS.INI file with the following section: [server] LAN_IP= xxx.xxx.xxx.xxx LAN_PORT= xx Sample: [googleserver] LAN_IP=192.168.2.1 LAN_PORT= 2000 Please notice that hidding directories feature is only available with Remote and Internet Servers.
Ads connection without drive mapping
Rene, thanks. what´s hidding directory?? ads ou windows function?
Ads connection without drive mapping
Nop: Hidding directories is a feature of ADS, this feature means that you don't have to share the data directories in your server in order to have full access to them via ADS. In Xbase normally in order to have full access to your DBF data you need to share and give full access to the user (read and write), so, in your workstation the user can see the directory with the data, he can copy it, edit it with external tools, etc. With ADS you don't need to share the folder with the data in the server because ADS is installed in the server and it works as the only authorized user to access the data. Any way, you have to override the user rights to the directory, this is done with the AdsRightsCheck(.f.) function, with this function the ADS client program skips the security features of the server and have full access to the data.
Ads connection without drive mapping
Rene, works fine here, thanks more one question: i dont need use VIA [dbfcdxax]?? if i put this clause an error is made. this works: USE \\srv_pdc\srv_app\Videfarm\cadasco.dat browse() but this no works USE \\srv_pdc\srv_app\Videfarm\cadasco.dat VIA ..... browse() and to open the index? use the same way? i need share the directory or not? very thans (i use ads server and local to tests) norberto
Ads connection without drive mapping
Rene, one more (sorry), and to use set default to ...., if i use unc notation in this clause , works? thanks
Ads encryption
Hi, I'm converting a app to Advantage Database Server. I' using free table connection with AdsEnableEncryption in each table. Evertything works ok. The problem is now with crystal reports 11 because I dont know the connection property in order to pass the encryption password to acess tables and records from crystal reports. The connection is made through adsodbc driver Does anyone knows how to solve this. Any help its welcome
Ads link errors using REQUEST _ADS xHarbour 99.51 FTDN Nov05
To All For anyone using the latest xHarbour from the Nov FTDN FWH27 build and linking in ADS .. you will need to change your code to use the ANNOUNCE command on the ADS line and not REQUEST .. if you do not, you will get this error ... Error: Unresolved external '_HB_FUN__ADS' Regards, Rick Lipkin SC Dept of Health, USA IF xRDD = "ADS" ANNOUNCE _ADS * REQUEST _ADS // does not work with latest xharbour cvs rddRegister ( "ADS", 1 ) rddsetdefault( "ADS" ) SET SERVER REMOTE SET FILETYPE to CDX cADS := " Remote 32 bit -b" ELSE cADS := " Local 32 bit -b" REQUEST DBFCDX REQUEST DBFFPT rddsetdefault( "DBFCDX" ) ENDIF SET DEFA to ( cDEFA ) cRDD := dbSETDRIVER()+cADS
Ads link errors using REQUEST _ADS xHarbour 99.51 FTDN Nov05
To All Got this responce from Ron in the xHarbour NG .. Rick, > I just got the Nov FWH27 FTDN that has the latest CVS version of xHarbour. > Somewhere I remember seeing that there was a change to the REQUEST and > ANNOUNCE commands. > > I just went to re-compile one of my ADS applications and I got the > following link error : > > C:\BORLAND\BCC55\BIN\ilink32 @makefile.lnk > Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland > Error: Unresolved external '_HB_FUN__ADS' referenced from > C:\FOX\VEHFWH\MAIN.OBJ No change to the command, it's just that _ADS was renamed ADS, so just change: REQUEST _ADS to: REQUEST ADS > Knowing that I had seen this .. I changed the REQUEST _ADS line to > ANNOUNCE _ADS and my app linked properly and runs just fine Please restore as per above. > Just curious .. I have several other apps that just use DBFCDX and they > seem to compile properly .. for the sake of sinplicity .. should I change > all my REQUEST statements to ANNOUNCE ?? Nop. Ron
Ads link errors using REQUEST _ADS xHarbour 99.51 FTDN Nov05
Rick, Thanks for your feedback,
Ads y ADT Campo vacio ( Solucionado )
Estimados Tengo un campo caracter y esta vacio ahora como puedo filtrar este campo si esta vacio? sabiendo que al grabar en el campo en la base de dato se puso asi [code:3tdo520u]Field->Campo &#58;= ""[/code:3tdo520u] [b:3tdo520u]ahora filtrando esto no resulta!![/b:3tdo520u] [code:3tdo520u] SET FILTER TO EMPTY&#40; field->CAMPO &#41; adsSetAof&#40; 'empty&#40;campo&#41;' &#41; SET FILTER TO FIELD->CAMPO = NIL[/code:3tdo520u] Cualquier ayudita es bienvenida
Ads y ADT Campo vacio ( Solucionado )
La solucion era simple, pero igual que revisar todo el programa <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> [code:271m9fd5]SET FILTER TO CAMPO="" AdsSetAof&#40; 'campo=""' &#41; [/code:271m9fd5]
Ads y ADT y OrdScope
Estimados Segun la funcion OrdScope debiera devolver el scope actual pero con ADT este devuelve unos caracteres extraños e igual con la funcion dbOrderInfo(40) y 41 Hay alguna otra forma de saber el scope actual Ejemplo como lo hago [code:k9r7ujlj]select paso OrdScope&#40; 0, "TIP" &#41; OrdScope&#40; 1, "TIP" &#41; //FUNCIONA BIEN EL ORDSCOPE ahora x1 &#58;= OrdScope&#40; 0, "SP" &#41; x2 &#58;= OrdScope&#40; 1, "SP" &#41; funciona bien pero x1 = cualquier cosa "!""· x2 = cualquier cosa ·$% [/code:k9r7ujlj] Se agradece cualquier ayuda
Ads y SQLs..
Estimados del Foro y Usuarios ADS Server Estoy utilizando estas funciones de SQL y funciona bien el problema es cuando abro el ADV DATA ARQUITEC Y diccionario de datos queda tamada la base MOVI_MON.DBF Hay alguna manera de cerrar o siempre quedan abierta?? [code:3r745rj1] cSql &#58;= "SELECT DISTINCT ANOCORREJI FROM MOVI_MON" if !AdsCreateSqlStatement&#40;"BASE", 2 &#41; alert&#40; "error AdsCreateSqlStatement&#40;&#41;"&#41; endif if !AdsExecuteSqlDirect&#40;cSql&#41; Alert&#40; "error AdsExecuteSqlDirect&#40;cSql&#41;" &#41; endif bla bla bla close BASE RETURN [/code:3r745rj1] Saludos Patricio
Ads y SQLs..
Me respondo AdsCloseCachedTables() Saludos Patricio
Ads y campos IMAGE
Estimados, hay alguien que utilize este tipo de campo [b:djdvwwrw]IMAGE[/b:djdvwwrw] Resulta que puedo grabar y ver sin ningun problema en el campo imagen, pero en el ARC al pasar por el registro que tiene la imagen me muestra un ventana de error [b:djdvwwrw]"BITMAP IMAGE IS NOT VALID"[/b:djdvwwrw] Lo estoy haciendo asi: #define ADS_IMAGE 7 //para Grabar recepdoc->( AdsFile2Blob( cFile, "IMAGEN", ADS_IMAGE ) ) //para recuperar cFile := cPathTmp + "\ImgTmp.jpg" RecepDoc->( AdsBlob2File( cFile, "IMAGEN" ) ) Cualquier pista es bienvenida..
Ads y registro bloqueados ( SOLUCIONADO )
Estimados, habra alguna forma de saber que usuario tiene un registro bloqueado con el servidor de ADS desde ya muchas gracias..
Ads y registro bloqueados ( SOLUCIONADO )
ADSMGGETLOCKOWNER()
Ads y registro bloqueados ( SOLUCIONADO )
Gracias por responder revisando la funcion [code=fw:3jo54hpd]<div class="fw" id="{CB}" style="font-family: monospace;"> * NOTE: <span style="color: #000000;">returns</span> an array <span style="color: #0000ff;">of</span> <span style="color: #000000;">5</span> elements <span style="color: #00C800;">if</span> successful<br /> *       <span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #00C800;">Client</span> machine <span style="color: #0000ff;">name</span> <span style="color: #0000ff;">when</span> <span style="color: #00C800;">server</span> runs <span style="color: #0000ff;">on</span> NT/<span style="color: #000000;">2000</span><br /> *           <span style="color: #00C800;">Client</span> Username <span style="color: #0000ff;">when</span> <span style="color: #00C800;">server</span> runs <span style="color: #0000ff;">on</span> Netware<br /> *       <span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> Netware connection number<br /> *       <span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> Login user <span style="color: #0000ff;">name</span> <span style="color: #00C800;">for</span> <span style="color: #00C800;">data</span> dictionary connections <span style="color: #000000;">&#40;</span>ADS <span style="color: #000000;">6.0</span> and above<span style="color: #000000;">&#41;</span><br /> *       <span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #00C800;">Client</span> machine IP address <span style="color: #000000;">&#40;</span>ADS <span style="color: #000000;">6.0</span> and above<span style="color: #000000;">&#41;</span><br /> *       <span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> lock type ADS_MGMT_NO_LOCK ADS_MGMT_RECORD_LOCK ADS_MGMT_FILE_LOCK<br /> *       <br /> *       returns the advantage error code <span style="color: #00C800;">if</span> it fails.<br /> */<br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> ADSMGGETLOCKOWNER <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   UNSIGNED16 pusLockType = <span style="color: #000000;">0</span>;<br />   UNSIGNED16 usStructSize = sizeof<span style="color: #000000;">&#40;</span> ADS_MGMT_USER_INFO <span style="color: #000000;">&#41;</span>;<br />   ADS_MGMT_USER_INFO * pstUserInfo = <span style="color: #000000;">&#40;</span> ADS_MGMT_USER_INFO * <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> sizeof<span style="color: #000000;">&#40;</span> ADS_MGMT_USER_INFO <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br /> </div>[/code:3jo54hpd] pero siempre me retorna un arreglo vacio, tendras un ejemplo como funciona desde ya gracias
Ads y registro bloqueados ( SOLUCIONADO )
Adjunto la solución en ADS server para saber quien tiene bloqueado un registro X de una base de datos gracias a [b:28pwd69m]nageswaragunupudi[/b:28pwd69m] por darme un pista para dar con la solucion [code=fw:28pwd69m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> VerRegLock<span style="color: #000000;">&#40;</span> cDbf, nReg <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">local</span> aRay<br /><br />    <span style="color: #00C800;">DEFAULT</span> cDbf := <span style="color: #ff0000;">"dbtodos.ADT"</span>, nReg := <span style="color: #000000;">1</span><br /><br />    AdsMgConnect<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\\</span>servercarmona2<span style="color: #000000;">\W</span>INVENT<span style="color: #000000;">\D</span>atosAdt"</span> <span style="color: #000000;">&#41;</span><br /><br />    aRay := AdsMgGetLockOwner<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\\</span>servercarmona2<span style="color: #000000;">\W</span>INVENT<span style="color: #000000;">\D</span>atosAdt<span style="color: #000000;">\"</span> +cDbf, nReg )<br /><br />    AdsMgDisconnect()<br /><br />    if !empty( aRay )<br />        if empty( aRay[1] )<br />            MsgInfo( "</span>No existe el registro <span style="color: #ff0000;">"+ltrim(str(nReg)) + "</span> bloqueado en <span style="color: #ff0000;">"+cDbf, "</span>Usuario<span style="color: #ff0000;">" )<br />        else<br />            MsgInfo( "</span>Maquina     :<span style="color: #ff0000;">"+aRay[1] + CRLF +;<br />                        "</span>Conexion nº :<span style="color: #ff0000;">"+cValtochar(aRay[2]) + CRLF +;<br />                        "</span>Login <span style="color: #0000ff;">Name</span>  :<span style="color: #ff0000;">"+aRay[3] + CRLF +;<br />                        "</span>Ip cliente  :<span style="color: #ff0000;">"+aRay[4] + CRLF +;<br />                        "</span>Lock Type   :<span style="color: #ff0000;">"+cValtochar(aRay[5]), "</span>Registro nº <span style="color: #ff0000;">"+ltrim(str(nReg)) + "</span> bloqueado en <span style="color: #ff0000;">"+cDbf )<br />        endif<br />    else<br />        MsgInfo( "</span>Error en la Conexión <span style="color: #ff0000;">"+CRLF+"</span>Error nº <span style="color: #ff0000;">"+cValtochar( AdsGetLastError() ), "</span>Usuario<span style="color: #ff0000;">" )<br />    endif<br /><br />return( .t. )<br /></span></div>[/code:28pwd69m] //--------------------------------------------------------------------------------------------------
Ads Necesito contactarme con alguien que lo use..
Estimados Fivewineros: Tengo ADS 2 usuarios, ya que compre un libro y vino una licencia para 2 usuarios . Como se instala? Si programo con la licencia servidor de 2 usuarios, como hago para que se instale el programa local (si dejo una demo, por ejemplo). Y varias mas que desearia hacer... Muchas gracias y disculpen... Mi correo rdfernandezarrobaadinet.com.uy
Ads Necesito contactarme con alguien que lo use..
Hola Yo utilizo ADS Server
Ads Necesito contactarme con alguien que lo use..
Hola Patricio: Serias tan amable de informarme como hago para instalar la version de 2 usuarios y luego usarla en mis programas? Muchas gracias. Ruben Fernandez
Ads Necesito contactarme con alguien que lo use..
Hola Ruben si queires puedes contactarte con migo via MSN, ahi te puedo dar una manito
Ads Necesito contactarme con alguien que lo use..
Gracias Patricio: Voy a tener que molestarte para sacarme algunas dudas y poder hacer algo cliente servidor. Muchas gracias. mi MSN rufer arroba five3.net (sin los espacios) Saludos Ruben Fernandez
Ads SQL update (') SOLUCIONADO
Estimados Como puedo actualizar un campo con una instruccion SQL que tenga el carecter ' esto lo que quiero hacer esto funciona [code=fw:2nxp5n2c]<div class="fw" id="{CB}" style="font-family: monospace;">cSql := <span style="color: #ff0000;">"UPDATE parame set campo ='OHIGGINS'"</span></div>[/code:2nxp5n2c] esto no funciona [code=fw:2nxp5n2c]<div class="fw" id="{CB}" style="font-family: monospace;">cSql := <span style="color: #ff0000;">"UPDATE parame set logo := 'O'HIGGINS'"</span></div>[/code:2nxp5n2c] esto funciona, pero debo agregar un doble '' alguna forma de no colocar doble '' para que funcione? [code=fw:2nxp5n2c]<div class="fw" id="{CB}" style="font-family: monospace;">cSql := <span style="color: #ff0000;">"UPDATE parame set logo='O''HIGGINS'"</span></div>[/code:2nxp5n2c] cualquier ayuda es bienvenido
Ads SQL update (') SOLUCIONADO
Hola buscando en internet lo mejor es agregar una ', a que es lo que se le llama INYECCION SQL quedando [code=fw:3rlzh1ec]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cVar := <span style="color: #ff0000;">"O'HIGGINS"</span><br />cVar := strtran<span style="color: #000000;">&#40;</span> cVar, <span style="color: #ff0000;">"'"</span>, <span style="color: #ff0000;">"''"</span> <span style="color: #000000;">&#41;</span><br /><br />cSql := <span style="color: #ff0000;">"UPDATE parame set logo='"</span>+cVar+<span style="color: #ff0000;">"'"</span></div>[/code:3rlzh1ec] solo para conocimiento SQL
Ads..por favor
Amigos, me he jubilado, ya con 60 años. Ahora tengo el tiempo necesario para dedicarme a mi pasión que es programar y es por eso que molesto con este tema. Tengo una aplicación importante trabajando con DBF y CDX y deseo pasarla a ADS. Hacerla funcionar con archivos ADT y ADI y la verdad es que tengo muchas dudas.(Por ahora en modo local) 1- Cuantos usuarios es aceptable en modo local? 2- Como creo y acceso un DataDictionary. 3- Como creo las lib para Fivewin? Gracias, espero no molestar mucho y agradezco enormemente la ayuda que me puedan brindar. Saludos desde Uruguay Ruben Dario Fernández.
Ads..por favor
Saludos Hola Ruben Mra este link, parece que es por numero de usuarios [url:3jue6yi3]http&#58;//www&#46;abox&#46;com/productos&#46;asp?pid=3[/url:3jue6yi3] Parece que es mejor APollo, no tiene limite de usuarios, eso es lo que investigue.
Ads..por favor
Hola Ruben Dario, si parece que es mejor, pero nadie contesta en Apollo y aquí tampoco. Es raro, pero bueno, es lo que hay. ADS es muy bueno, pero hay que saber como conectarse localmente a un Datadictionary, es un archivo .add. Por lo leí hace un tiempo, ADS localmente da para 5 o 6 usuarios. Hay el FWH un post de Reinaldo Crespo que un fenómeno en ADS, pero está en inglés. Saludos. Ruben Dario Fernández.
Ads..por favor
Ruben Dario, mándame un correo a zonadario @ Gmail. com - Sin espacios. Gracias
Ads..por favor
Hola, lo escribo casi de memoria [code=fw:3g0ri4pz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ads.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   REQUEST ADS<br />   rddRegister<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   rddsetdefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span> <span style="color: #000000;">&#41;</span><br />   SET <span style="color: #00C800;">SERVER</span> <span style="color: #00C800;">LOCAL</span><br />   adsConnect60<span style="color: #000000;">&#40;</span> PATH + <span style="color: #ff0000;">"<span style="color: #000000;">\d</span>atadictionary.add"</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"ADSSYS"</span>, <span style="color: #ff0000;">"PASSWORD"</span> <span style="color: #000000;">&#41;</span><br />   ADSSETDATEFORMAT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DD/MM/YYYY"</span><span style="color: #000000;">&#41;</span><br /><br />   ....<br />   aqui ya utilizas las tablas de la base de datos como cualquier DBF, adicionalmente puede utilizar SQL que <br />es la verdadera ventaja de ADS poder acceder con SQL y/o ISAM Indexed Sequential Access <span style="color: #00C800;">Method</span> <span style="color: #000000;">&#40;</span>Método de Acceso Secuencial Indexado<span style="color: #000000;">&#41;</span> que son los DBF tradicionales<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3g0ri4pz] Adicionalmente, tienes Transacciones, Triggers, procedimientos almacenados, acceder del PHP, Perl, Python, .Net.............. Espero te ayude Saludos Marcelo
Ads..por favor
Gracias Marcelo, intentaré. Muchas gracias. Saludos Ruben Dario Fernandez
Ads..por favor
Ruben Dario, mirá este post. <!-- m --><a class="postlink" href="http://www.main.structuredsystems.com/adssamples/">http://www.main.structuredsystems.com/adssamples/</a><!-- m --> Saludos. Ruben Dario Fernandez
Ads..por favor
Gracias ya e visto ese link Tu has logrado hacer conexion. Yo logre haciendo con ADO, ellos proporcionan el OBDC y el OLE. de la otra manera de tu ejemplo no lo he probado, usted logro hacerlo. este es mi email, <!-- e --><a href="mailto:rubendariogd@hotmail.com">rubendariogd@hotmail.com</a><!-- e --> Con Apollo seria posible, pero no he logrado conseguir el OBDC y el OLE, no hay casi ejemplos y no proporcionan medios para que los desarrolladores hagan las pruebas.
Ads..por favor
Marcelo que librerias usar en el ejemplo que colocas, Saludos
Ads..por favor
Todavía no he logrado conectarme al archivo datadictionary, pero seguiré probando. Algo va a salir de aquí, entre todos se va poder. El en link que te dejé, esta incluso como hacer las librerías y de donde bajar los archivos. Voy a probar con las lib que están en la página. Veré a donde llego y aviso por aquí. Saludos Ruben Dario Fernández.
Ads..por favor
Esto estoy tratando de hacer, pero me da error hay una libreria rddadsh.lib Me imagino que es de Harbour y rddadshx.lib Me imagino que es de xHarbour Tu has creado estas librerias, porque no aparece el BAT para crearlas no aparece el "ads.ch" Si lo he logrado con ADO
Ads..por favor
Hola Ruben Dario, aún no he logrado conectarme, sigo intentando. Aviso, cuando tenga novedades. Esta muy interesante tAds también que trae un DBF2Advantage.exe que te crea el archivo .add y pasa las dbf a adt. Sigo intentando. Saludos. Ruben Dario Fernández.
Ads..por favor
Ruben Dario Ya trabajo con ADS con tablas libres ADT si quieres mándame un correo y vamos haciendo que trabaje. sys . vital arroba live . com . mx Saludos.
Ads..por favor
Gracias Javier, enviado. Muy amable por tu ayuda, el compañero Ruben Dario Gonzalez de Colombia está en lo mismo. Vamos a ver si entre los 3 lo sacamos. Saludos. Ruben Dario Fernandez Uruguay
Ads..por favor
Hola VitalJavier este es mi correo <!-- e --><a href="mailto:rubendariogd@hotmail.com">rubendariogd@hotmail.com</a><!-- e -->
Ads..por favor
Ruben, necesitas ace32.lib rddads.lib ace32 la debes de crear a partir de ace32.dll (que viene con el cliente de ADS) yo utilice el implib de borlabd, rddads.lib viene con la distribucion de [x]harbour, luego debes de tener los Dll ace32.dll y ADSloc32.dll para trabajar de manera local y adicionalmente axcws32.dll y trabajaras cliente/servidor Saludos Marcelo Vía
Ads..por favor
Marcelo, gracias. Uso Harbour. No puedo hacer la lib para Harbour rddads.lib, la dll la creo sin problemas. Baje los fuentes desde acá. <!-- m --><a class="postlink" href="https://github.com/harbour/core/tree/master/contrib/rddads">https://github.com/harbour/core/tree/ma ... rib/rddads</a><!-- m --> Gracias, saludos Ruben Dario Fernandez
Ads..por favor
Tads atualizado na versão 2017-07 Libs, utilitários, helps [url:2rayysjw]https&#58;//github&#46;com/giovanyvecchi/tAdsGit&#46;git[/url:2rayysjw] Leia o Help book
Ads..por favor
Hola Giovany, muchas gracias. No encuentro las libs para Harbour y Fivewin. Gracias. Saludos Ruben Dario Fernandez
Ads..por favor
Incluido no repositorio [url:ncqc6659]https&#58;//github&#46;com/giovanyvecchi/tAdsGit/tree/master/Libs[/url:ncqc6659]
Ads..por favor
Giovany muchas gracias. Hay que incluir tus prg en el programa o ya viene en las libs.? Ya las baje. Intentaré y si no puedo seguiré molestando por acá. Gracias de nuevo y Saludos Ruben Fernandez
Ads..por favor
Voce pode me adicionar no Skype Skype: giovany.vecchi
Ads..por favor
Seguro que si. r.d.fernandez Gracias
Ads..por favor
Saudos Giovany Entonces lo Ideal seria trabajar com ADT (Lo nativo de ADS) que usar DBF , CDX ... , o hay alguna limitacion
Ads..por favor
[quote="ruben Dario":3p0x3juj]Saudos Giovany Entonces lo Ideal seria trabajar com ADT (Lo nativo de ADS) que usar DBF , CDX ... , o hay alguna limitacion[/quote:3p0x3juj] Sim, eu trabalho com ADT desde 2007. Quando comecei, usava tabelas livres, em 2009 já estava trabalhando com dicionários de dados. Tinha o xAds que era uma extensão melhorada das funções básicas, dai parti para o desenvolvimento de tAds, para trabalhar com classes. O mais difícil de criar tAds foi a diferença entre tabelas estáticas e dinâmicas, que agora esta funcionando perfeitamente. Outra vantagem é voce poder usar as mesmas classes criadas para cada tabela em diferentes conexões de vários pontos. Criar tabelas estáticas com inner, left, right, envolvendo varias tabelas para criar outra e poder executar SetOrder em qualquer coluna e posteriormente sem precisar refazer a query SQL voce disparar apenas um seek ou usando o mesmo resultado da query, fazer um filter. Muito pratico. Estou a disposição para qualquer duvida, se precisar adicione meu skype.
Ads..por favor
Giovany. Saludos Hice una prueba, pero funciona usando la clase TDatabase(), tu has tenido o has provado esta clase. USE F_CFOP.ADT NEW ALIAS "DATOS" SHARED oDatx := TDatabase():New() Saludos
Ads..por favor
[quote="ruben Dario":2jbiay4k]Giovany. Saludos Hice una prueba, pero funciona usando la clase TDatabase(), tu has tenido o has provado esta clase. USE F_CFOP.ADT NEW ALIAS "DATOS" SHARED oDatx := TDatabase():New() Saludos[/quote:2jbiay4k] Oi Rubens Quando eu usava fivewin para clipper, usei a classe tDatabase, mais não fui adiante. Logo em 2003 parti para fw+harbour e tive problemas com rddcdx que ja usava. Então comecei a usar rddads com dbf. Minha experiencia com ads é desde 2003. tAds ja foi reconstruido de forma muito diferente 3 vezes, mais agora ja esta de forma definitiva. A muitas diferenças de tDatabase para tAds. A logica que criei foi copiado de C Sharp que disponibiliza a opção de trabalhar com as tabelas por classes e não só como objetos. cada tabela pode ser uma classe com seus methods e datas privadas. Veja um exemplo meu de uma classe de tabela de tAds abaixo [code=fw:2jbiay4k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//Classe gerada por TAds 09/06/2014 - 15:54:21</span><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"TAds.ch"</span><br /><br /><span style="color: #00C800;">CLASS</span> DB_DEVEDOR <span style="color: #0000ff;">from</span> TAds<br /><br />&nbsp; <span style="color: #00C800;">Data</span> cTableName &nbsp; &nbsp; <span style="color: #0000ff;">Init</span> <span style="color: #ff0000;">"DEVEDOR"</span><br />&nbsp; <span style="color: #00C800;">Data</span> nCache<br />&nbsp; <span style="color: #00C800;">Data</span> aTableInfo &nbsp; &nbsp; <span style="color: #0000ff;">Init</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; <span style="color: #00C800;">Data</span> aColumnsInfo &nbsp; <span style="color: #0000ff;">Init</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; <span style="color: #00C800;">Data</span> aIndexInfo &nbsp; &nbsp; <span style="color: #0000ff;">Init</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; <span style="color: #00C800;">Data</span> lConnected &nbsp; &nbsp; <span style="color: #0000ff;">Init</span> .F.<br /><br />&nbsp; <span style="color: #00C800;">METHOD</span> OpenRdd<span style="color: #000000;">&#40;</span>f_nConexao,; &nbsp; &nbsp;<span style="color: #B900B9;">// Numero da Conexão - Default tAds_GetConnectionDefault()</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f_nCache<span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Numero de registros em Cache - Default nCacheAds()</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Constructor <br /><br />&nbsp; <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">Method</span> DB_DEVEDOR_SeekDocumento<span style="color: #000000;">&#40;</span>f_cCpfCnpj,f_nOpcDoc,f_lFormat<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Method</span> DB_DEVEDOR_FilterDocumento<span style="color: #000000;">&#40;</span>f_cCpfCnpj,f_nOpcDoc,f_lFormat<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Method</span> DB_DEVEDOR_SeekCodigo<span style="color: #000000;">&#40;</span>f_nCodigo<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Method</span> DB_DEVEDOR_DocumentoValido<span style="color: #000000;">&#40;</span>f_nCodigo<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Method</span> DB_DEVEDOR_Descricao<span style="color: #000000;">&#40;</span>f_nCodigo<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Method</span> DB_DEVEDOR_FindNomeDoc<span style="color: #000000;">&#40;</span>f_nTpPessoa, f_cNomeDevedor, f_cCnpj, f_cCpf<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> OpenRdd<span style="color: #000000;">&#40;</span>f_nConexao,f_nCache<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br /><br />&nbsp; <span style="color: #00C800;">Default</span> f_nCache := nCacheAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; ::<span style="color: #000000;">nCache</span> &nbsp; &nbsp; &nbsp; &nbsp;:= f_nCache<br />&nbsp; ::<span style="color: #000000;">nTpCallRdd</span> &nbsp; &nbsp;:= <span style="color: #000000;">2</span> <br />&nbsp; ::<span style="color: #000000;">NewRdd</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cTableName</span>,f_nConexao,::<span style="color: #000000;">nCache</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">nOpenStatus</span> == <span style="color: #000000;">0</span> <br />&nbsp; &nbsp; ::<span style="color: #000000;">lConnected</span> := .T.<br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> ::<span style="color: #000000;">lConnected</span><br />&nbsp; &nbsp;::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Self</span> := <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Method</span> DB_DEVEDOR_SeekDocumento<span style="color: #000000;">&#40;</span>f_cCpfCnpj,f_nOpcDoc,f_lFormat<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br />&nbsp; <span style="color: #00C800;">Local</span> cRetDoc := <span style="color: #ff0000;">""</span>, cCampoPesquisa := <span style="color: #ff0000;">"CPF"</span>, lFound := .F.<br />&nbsp; <br />&nbsp; <span style="color: #00C800;">Default</span> f_lFormat := .F.<br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> f_lFormat<br />&nbsp; &nbsp; f_cCpfCnpj := DOC_CPF_CNPJ_FORMAT<span style="color: #000000;">&#40;</span>f_cCpfCnpj,f_nOpcDoc<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; <br />&nbsp; f_cCpfCnpj := StrTran<span style="color: #000000;">&#40;</span>f_cCpfCnpj,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> f_nOpcDoc == <span style="color: #000000;">1</span> <span style="color: #B900B9;">// CPF</span><br />&nbsp; &nbsp; cCampoPesquisa := <span style="color: #ff0000;">"CPF"</span><br />&nbsp; ElseIf f_nOpcDoc == <span style="color: #000000;">2</span> <span style="color: #B900B9;">// CNPJ</span><br />&nbsp; &nbsp; cCampoPesquisa := <span style="color: #ff0000;">"CGC"</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; lFound := ::<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span>f_cCpfCnpj,cCampoPesquisa<span style="color: #000000;">&#41;</span><br />&nbsp; <br /><span style="color: #00C800;">Return</span> lFound<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Method</span> DB_DEVEDOR_FilterDocumento<span style="color: #000000;">&#40;</span>f_cCpfCnpj,f_cNomeDevedor,f_nOpcDoc,f_lFormat<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br />&nbsp; <span style="color: #00C800;">Local</span> cRetDoc := <span style="color: #ff0000;">""</span>, cCampoPesquisa := <span style="color: #ff0000;">"CPF"</span>, lFound := .F.<br />&nbsp; <span style="color: #00C800;">Local</span> cAof := <span style="color: #ff0000;">""</span>, aVarsFormat := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, nDevedoresQtaFind := <span style="color: #000000;">0</span>, nDevedorRecFound := <span style="color: #000000;">0</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">Default</span> f_lFormat := .F.<br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> f_lFormat<br />&nbsp; &nbsp; f_cCpfCnpj := DOC_CPF_CNPJ_FORMAT<span style="color: #000000;">&#40;</span>f_cCpfCnpj,f_nOpcDoc<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; <br />&nbsp; f_cCpfCnpj := StrTran<span style="color: #000000;">&#40;</span>f_cCpfCnpj,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> f_nOpcDoc == <span style="color: #000000;">1</span> <span style="color: #B900B9;">// CPF</span><br />&nbsp; &nbsp; cCampoPesquisa := <span style="color: #ff0000;">"CPF"</span><br />&nbsp; ElseIf f_nOpcDoc == <span style="color: #000000;">2</span> <span style="color: #B900B9;">// CNPJ</span><br />&nbsp; &nbsp; cCampoPesquisa := <span style="color: #ff0000;">"CGC"</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp;<br />&nbsp; aadd<span style="color: #000000;">&#40;</span>aVarsFormat,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"_cCpfCnpj_"</span>,f_cCpfCnpj<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; cAof := cCampoPesquisa + <span style="color: #ff0000;">"==_cCpfCnpj_"</span><br />&nbsp; ::<span style="color: #000000;">Filter</span><span style="color: #000000;">&#40;</span>cAof,aVarsFormat<span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; nDevedoresQtaFind := ::<span style="color: #000000;">KeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">if</span> nDevedoresQtaFind == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; lFound := .F.<br /><br />&nbsp; ElseIf nDevedoresQtaFind == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">///If ::VarGetAlltrim("NOME") == AllTrim(f_cNomeDevedor) </span><br />&nbsp; &nbsp; <span style="color: #00C800;">If</span> TXT_DIF_COMPARE<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">VarGetAlltrim</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOME"</span><span style="color: #000000;">&#41;</span>,AllTrim<span style="color: #000000;">&#40;</span>f_cNomeDevedor<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">60</span> <br />&nbsp; &nbsp; &nbsp; lFound := .T.<br />&nbsp; &nbsp; &nbsp; nDevedorRecFound := ::<span style="color: #000000;">Recno</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; lFound := .F.<br />&nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//? nDevedoresQtaFind, ::VarGetAlltrim("NOME"), AllTrim(f_cNomeDevedor), lFound, TXT_DIF_COMPARE(::VarGetAlltrim("NOME"),AllTrim(f_cNomeDevedor))</span><br /><br />&nbsp; ElseIf nDevedoresQtaFind > <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !::<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///If ::VarGetAlltrim("NOME") == AllTrim(f_cNomeDevedor) </span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> TXT_DIF_COMPARE<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">VarGetAlltrim</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOME"</span><span style="color: #000000;">&#41;</span>,AllTrim<span style="color: #000000;">&#40;</span>f_cNomeDevedor<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lFound := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; nDevedorRecFound := ::<span style="color: #000000;">Recno</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Exit<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lFound := .F.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//? "WHILE", nDevedoresQtaFind, ::VarGetAlltrim("NOME"), AllTrim(f_cNomeDevedor), lFound, TXT_DIF_COMPARE(::VarGetAlltrim("NOME"),AllTrim(f_cNomeDevedor))</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">EndDo</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; ::<span style="color: #000000;">ClearFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">If</span> nDevedorRecFound > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">GoTo</span><span style="color: #000000;">&#40;</span>nDevedorRecFound<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; <span style="color: #B900B9;">///? "ESCOLHIDO", nDevedoresQtaFind, ::VarGetAlltrim("NOME"), AllTrim(f_cNomeDevedor), lFound, TXT_DIF_COMPARE(::VarGetAlltrim("NOME"),AllTrim(f_cNomeDevedor))</span><br /><br />&nbsp; <br /><span style="color: #00C800;">Return</span> lFound<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Method</span> DB_DEVEDOR_SeekCodigo<span style="color: #000000;">&#40;</span>f_nCodigo<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br />&nbsp; <span style="color: #00C800;">Local</span> lFound := .F.<br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> f_nCodigo == <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; f_nCodigo := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span> != f_nCodigo<br />&nbsp; &nbsp; lFound := ::<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span>f_nCodigo,<span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; lFound := .T.<br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">Return</span> lFound<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Method</span> DB_DEVEDOR_DocumentoValido<span style="color: #000000;">&#40;</span>f_nCodigo,f_lDataLoad<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br />&nbsp; <span style="color: #00C800;">Local</span> cDocumento := <span style="color: #ff0000;">""</span>, cVirgula := <span style="color: #ff0000;">""</span>, cTmpCpfCnpj := <span style="color: #ff0000;">""</span>, cTmpRgIe := <span style="color: #ff0000;">""</span><br /><br />&nbsp; <span style="color: #00C800;">Default</span> f_lDataLoad := .F.<br /><br />&nbsp; ::<span style="color: #000000;">DB_DEVEDOR_SeekCodigo</span><span style="color: #000000;">&#40;</span>f_nCodigo<span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NPESSOA"</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; cDocumento := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CPF"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; cDocumento := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CGC"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> f_lDataLoad<br />&nbsp; &nbsp; ::<span style="color: #000000;">DataLoad</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">Return</span> cDocumento<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Method</span> DB_DEVEDOR_Descricao<span style="color: #000000;">&#40;</span>f_nCodigo<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br />&nbsp; <span style="color: #00C800;">Local</span> lFound := .F., cRetDescricao := <span style="color: #ff0000;">""</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> f_nCodigo == <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; f_nCodigo := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span> != f_nCodigo<br />&nbsp; &nbsp; lFound := ::<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span>f_nCodigo,<span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; lFound := .T.<br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> !lFound<br />&nbsp; &nbsp; cRetDescricao := <span style="color: #ff0000;">"ERRO, DEVEDOR NÃO ENCONTRADO"</span><br />&nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; cRetDescricao := ::<span style="color: #000000;">VarGetRtrim</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOME"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">Return</span> cRetDescricao<br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Method</span> DB_DEVEDOR_FindNomeDoc<span style="color: #000000;">&#40;</span>f_nCodigoDistribuidor, f_nTpPessoa, f_cNomeDevedor, f_cCnpj, f_cCpf<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> DB_DEVEDOR<br />&nbsp; <span style="color: #00C800;">Local</span> nCodigoFound := <span style="color: #000000;">0</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> f_nCodigoDistribuidor > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span>f_nCodigoDistribuidor,<span style="color: #ff0000;">"nCodDistribuidor"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nCodigoFound := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> nCodigoFound<br />&nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; <span style="color: #00C800;">Endif</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> f_nTpPessoa == <span style="color: #000000;">1</span> .and. Len<span style="color: #000000;">&#40;</span>Strtran<span style="color: #000000;">&#40;</span>f_cCpf,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">14</span> <span style="color: #B900B9;">// Cpf</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span>f_cCpf,<span style="color: #ff0000;">"CPF"</span>,.F.,.T.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nCodigoFound := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br /><br />&nbsp; ElseIf f_nTpPessoa == <span style="color: #000000;">2</span> .and. Len<span style="color: #000000;">&#40;</span>Strtran<span style="color: #000000;">&#40;</span>f_cCnpj,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">18</span> <span style="color: #B900B9;">// Cnpj</span><br />&nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">If</span> ::<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span>f_cCnpj,<span style="color: #ff0000;">"CGC"</span>,.F.,.T.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nCodigoFound := ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NCODIGO"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br /><br />&nbsp; <span style="color: #00C800;">Endif</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> nCodigoFound == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//If ::Seek(f_cNomeDevedor,"NOME",.F.,.T.)</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp;nCodigoFound := ::VarGet("NCODIGO")</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//EndIf</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br />&nbsp; <span style="color: #00C800;">If</span> nCodigoFound > <span style="color: #000000;">0</span> .and. ::<span style="color: #000000;">VarGet</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"nCodDistribuidor"</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">rLock</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"nCodDistribuidor"</span>,f_nCodigoDistribuidor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">If</span> AllTrim<span style="color: #000000;">&#40;</span>f_cNomeDevedor<span style="color: #000000;">&#41;</span> != ::<span style="color: #000000;">VarGetAlltrim</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOME"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOME"</span>,f_cNomeDevedor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; ::<span style="color: #000000;">UnLock</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">Return</span> nCodigoFound<br />&nbsp;</div>[/code:2jbiay4k] Desta forma em qualquer parte do sistema j esta disponibilizado as funções que mais uso. Ex: oDb_Devedores := DB_DEVEDOR():OpenRdd() odb_Devedor:DB_DEVEDOR_SeekCodigo(101)
Ads..por favor
Giovany. Saludos Gracias por tu informacion, ya estoy entendiento la clase TAds, (Se abren la tablas y se navegan e insertan y modimican registro Excelente) Te hago esta preguntas Cuando usas este codigo ::oDs_CepSql := tAds():DsNew(1,1) // 1-Definir query com retorno de Cursors (Handle) / Usar conexão de numero 1 ::oDs_CepSql:cQrySql := "Select {static} DISTINCT CIDADE, ESTADO from TB_CEP Order By CIDADE " En el Select cual es la funcionalidad de USAR Select {static} DISTINCT .... Exactamento {static} , que pasa si se le Quita el {static} MAnejar la clase Es Excelente. Otra Duda, cuando se Maneja ADO (OBDC) Cuando se ingresan registros, los indices se actulizan, me parece que vi un documento que no. Gracias
Ads..por favor
[quote="ruben Dario":3bwwpvhv]Giovany. Saludos Gracias por tu informacion, ya estoy entendiento la clase TAds, (Se abren la tablas y se navegan e insertan y modimican registro Excelente) Te hago esta preguntas Cuando usas este codigo ::oDs_CepSql := tAds():DsNew(1,1) // 1-Definir query com retorno de Cursors (Handle) / Usar conexão de numero 1 ::oDs_CepSql:cQrySql := "Select {static} DISTINCT CIDADE, ESTADO from TB_CEP Order By CIDADE " En el Select cual es la funcionalidad de USAR Select {static} DISTINCT .... Exactamento {static} , que pasa si se le Quita el {static} MAnejar la clase Es Excelente. Otra Duda, cuando se Maneja ADO (OBDC) Cuando se ingresan registros, los indices se actulizan, me parece que vi un documento que no. Gracias[/quote:3bwwpvhv] [b:3bwwpvhv][u:3bwwpvhv](A) - [/u:3bwwpvhv][/b:3bwwpvhv]A regra para abrir as tabelas em ads tem varios termos: (Vamos fazer exemplos de abertura da tabela envolvendo apenas uma tabela) 1- Se voce abrir a tabela com RDD ex: [b:3bwwpvhv]tAds:NewRdd("CLIENTES")[/b:3bwwpvhv] > Toda a tabela e indices serão abertos igual a DBUSEAREA() de forma dinamica 2- Se voce abrir apenas uma tabela envolvida com sql ex: [code=fw:3bwwpvhv]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oDs_CepSql</span>  := tAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">DsNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">oDs_CepSql</span>:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Select * from TB_CEP "</span></div>[/code:3bwwpvhv] Este tipo de abertura retornara uma tabela dinamica, com indices tambem. neste tipo de tabela voce pode trocar a ordem das colunas como se fosse aberto por DBUSEAREA(), efetuar REPLACE, APPEND, DELETE ETC. 3- Abrindo uma tabela envolvida somente com sql estatico [code=fw:3bwwpvhv]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oDs_CepSql</span>  := tAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">DsNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">oDs_CepSql</span>:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Select {STATIC} * from TB_CEP "</span></div>[/code:3bwwpvhv] Desta maneira o servidor cria uma tabela intermediaria (temp) de forma estatica. Esta tabela voce não pode efetuar REPLACE, APPEND, DELETE. Apenas consulta, mais com tAds voce podera criar indices temporarios no resultado usando SetOrder() e depois efetuar [b:3bwwpvhv]SEEK ou trocar de ordem com o mesmo resultado sem precisar disparar DsExecute novamente. 4- Abrindo uma tabela envolvida COM sql dinamico usando ORDER BY [code=fw:3bwwpvhv]<div class="fw" id="{CB}" style="font-family: monospace;">::<span style="color: #000000;">oDs_CepSql</span>  := tAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">DsNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">oDs_CepSql</span>:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Select * from TB_CEP Order By CIDADE"</span></div>[/code:3bwwpvhv] Neste Caso, a tabela será dinamica igual DBUSEAREA, mais somente o indice [b]CIDADE[/b:3bwwpvhv] estara a disposição, se voce for trocar de ordem o erro aparece. [b:3bwwpvhv][u:3bwwpvhv](B) - [/u:3bwwpvhv][/b:3bwwpvhv]Agora abrindo tabelas envolvendo varias com os flags INNER JOIN, LEFT, RIGHT, WHILE ETC. Quando se faz uma query e na consulta tem mais de uma tabela envolvida, voce não precisa informar o parametro [b:3bwwpvhv]{STATIC}[/b:3bwwpvhv], isto porque se envolver qualquer outra tabela o sistema de advantage vai declarar a tabela como sendo estatica porque não tem como abrir dinamicamente varias consultas associadas a query ex: 1- Abrindo um resultado para tabela envolvendo 3 tabelas com inner join [code=fw:3bwwpvhv]<div class="fw" id="{CB}" style="font-family: monospace;">  ::<span style="color: #000000;">oDs_RecibosEventos</span>    := tAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">DsNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">oDs_RecibosEventos</span>:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Select  "</span>+;<br />      <span style="color: #ff0000;">"Tb01.*, "</span>+;<br />      <span style="color: #ff0000;">"Tb02.CODIGO AS EVENTOS_CODIGO, "</span>+;<br />      <span style="color: #ff0000;">"Tb02.DESCRICAO AS EVENTOS_DESCRICAO, "</span>+;<br />      <span style="color: #ff0000;">"Tb02.L_NaoFiscal AS EVENTOS_L_NaoFiscal, "</span>+;<br />      <span style="color: #ff0000;">"Tb03.SEQUENCIA AS CAIXA_SETO_SEQUENCIA, "</span>+;<br />      <span style="color: #ff0000;">"Tb03.SETOR AS CAIXA_SETO_SETOR "</span>+;<br />      <span style="color: #ff0000;">"From RECIB_AV AS Tb01 "</span>+;<br />      <span style="color: #ff0000;">"Full Join EVENTOS AS Tb02 ON Tb02.CODIGO = Tb01.N_EVENTO "</span>+;<br />      <span style="color: #ff0000;">"Full Join CAIXA_SETO AS Tb03 ON Tb03.SEQUENCIA = Tb01.N_SETOR_CX "</span>+;<br />      <span style="color: #ff0000;">"Where Tb01.DATA >= _DataInicio_ and Tb01.Data <= _DataFinal_ "</span>+;<br />      <span style="color: #ff0000;">"and Tb02.L_NaoFiscal = False  "</span>+;<br />      <span style="color: #ff0000;">"Order By Tb01.DATA, Tb01.N_SETOR_CX ;"</span><br />  ::<span style="color: #000000;">oDs_RecibosEventos</span>:<span style="color: #000000;">DsAddVar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"_DataInicio_"</span>,Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">oDs_RecibosEventos</span>:<span style="color: #000000;">DsAddVar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"_DataFinal_"</span>,Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">oDs_RecibosEventos</span>:<span style="color: #000000;">lBufferOnSkip</span> := .T.<br />  <br />  ::<span style="color: #000000;">oDs_RecibosEventos</span>:<span style="color: #000000;">DsExecute</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">120</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// o valor de 120 define o controle de buffer / page de carregamento da tabela estatica (120 registros)</span><br /><br /> </div>[/code:3bwwpvhv] Lembrando que neste resulta ainda é possivel efetuar um FILTER, ou incluir uma ordem diferente e trocar a [b:3bwwpvhv]Order By Tb01.DATA, Tb01.N_SETOR_CX[/b:3bwwpvhv] sem precisar de refazer a query. Bom, acho que deu para entender um pouco. Ads tem varias formas que não somos acustumados, por isto acho que muitos abandonaram ele por falta de entendimento. Qualquer duvida estou a disposição. pode perguntar Um abração ai
Ads..por favor
Impresionante. Gracias. Saludos Ruben Dario Fernandez
Ads..por favor
[quote="ruben Dario":1rbcut9e]Giovany. Saludos Ls pruebas que estoy haciendo me funciona bien, tengo un problema , esporadicamente me sale este mensaje, La Aplicacion no se puede iniciar Correctamente (0x0000142. Haa Click Para acepta y Cerrarla. Es como que algo en memoria quedara. despues de salirme del programa.[/quote:1rbcut9e] Na pasta do seu executavel voce deve descompactar as dll que estão no arquivo zipado [b:1rbcut9e][u:1rbcut9e]Ads10.1_Redistribute.zip[/u:1rbcut9e][/b:1rbcut9e] Lembre-se de linkar o programa com as libs de ACE: [b:1rbcut9e][u:1rbcut9e]Ace32_10.1_Bcc5.8.lib ou Ace32_10.1_Bcc7.lib[/u:1rbcut9e][/b:1rbcut9e] e de Rdd que possui algumas alterações [b:1rbcut9e][u:1rbcut9e]RddAds_10.1_Bcc5.8.lib ou RddAds_10.1_Bcc7.lib[/u:1rbcut9e][/b:1rbcut9e] No rdd original não possui a função [b:1rbcut9e]AdsFlushFileBuffer()[/b:1rbcut9e], então eu sempre modifico e incluo este função para evitar registros truncados nas conexões locais quando chamado o method [b:1rbcut9e]Commit()[/b:1rbcut9e]
Ads..por favor
Giovany. Saludos Ls pruebas que estoy haciendo me funciona bien, tengo un problema , esporadicamente me sale este mensaje, La Aplicacion no se puede iniciar Correctamente (0x0000142. Haa Click Para acepta y Cerrarla. Es como que algo en memoria quedara. despues de salirme del programa.
Ads..por favor
Giovany. Saludos Gracias por su respuesta, si esto que tu dices es lo que dice, pero no se soluciona. Este es el codigo que ejecuto. Este es elemnsaje que sale La Aplicacion no se puede iniciar Correctamente (0x0000142. Haa Click Para acepta y Cerrarla. Esporadica mente sale el mensaje , y de pronto se arragla. Segun veo parece que el problema me lo genera esta funcion TADS_START_CONFIG() PArece que algo en memoria quedara que impidira que se ejecutara. Este es el codiog que ejecuto [code=fw:2rjeqqr4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.Ch"</span><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"TAds.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br />#ifdef __HARBOUR__<br />   #ifndef __XHARBOUR__<br />   #xcommand <span style="color: #00C800;">TRY</span>  => BEGIN SEQUENCE WITH <span style="color: #000000;">&#123;</span>| oErr | <span style="color: #00C800;">Break</span><span style="color: #000000;">&#40;</span> oErr <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   #xcommand CATCH <span style="color: #000000;">&#91;</span><!oErr!><span style="color: #000000;">&#93;</span> => RECOVER <span style="color: #000000;">&#91;</span>USING <oErr><span style="color: #000000;">&#93;</span> <-oErr-><br />   #xcommand FINALLY => ALWAYS<br />   #xtranslate <span style="color: #00C800;">Throw</span><span style="color: #000000;">&#40;</span> <oErr> <span style="color: #000000;">&#41;</span> => <span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> ErrorBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <oErr> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Break</span><span style="color: #000000;">&#40;</span> <oErr> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   #endif<br />#endif<br /><br /><span style="color: #00C800;">Static</span> oConexaoDefault<br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">Local</span> cComando := <span style="color: #ff0000;">""</span>, nModo := <span style="color: #000000;">0</span><br />  <span style="color: #00C800;">Local</span> lConnected := .f.<br />  <span style="color: #00C800;">Local</span> oError<br />  <span style="color: #00C800;">Local</span> oWndMain, oBarMain, oCursorHand<br />  <span style="color: #00C800;">Local</span> oMenuRdd, oBtnRdd, oBtnServer, oMenuServer,oDatx<br />  <span style="color: #00C800;">Local</span> oBtnInfo, oBtnExit,n<br />  <span style="color: #00C800;">Local</span> cSenhaLocal, cSenhaInternet<br /><br />  <span style="color: #B900B9;">//Local oSelf := Self</span><br />  <span style="color: #00C800;">Local</span> oDs_CATCUE,cSql,cCursor<br />  <span style="color: #00C800;">Local</span> aExistingGrps := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />  <span style="color: #00C800;">Local</span> aColunas := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, nColTmp := <span style="color: #000000;">0</span><br /> <br /><br />    <br />  cSenhaLocal      := <span style="color: #ff0000;">"12345"</span><br /><br /> <span style="color: #00C800;">TRY</span><br /><br />  <br />  TADS_START_CONFIG<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Inicia as configurações basicas de ambientes para Advantage</span><br />  <br />  oConexaoDefault := tAdsConnection<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,.T.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Conexão de Numero 1 e .T. para definir conexão padrao</span><br />  oConexaoDefault:<span style="color: #000000;">cDataDictionary</span>  := <span style="color: #ff0000;">"J:<span style="color: #000000;">\P</span>LA3ADS<span style="color: #000000;">\D</span>ADOS<span style="color: #000000;">\T</span>ESTE.ADD"</span>  <span style="color: #B900B9;">//".\DADOS\TESTE.ADD"  //ruben</span><br />  oConexaoDefault:<span style="color: #000000;">cSenhaConnect</span>    := <span style="color: #ff0000;">"12345"</span><br />  oConexaoDefault:<span style="color: #000000;">nTpConnect</span>       := <span style="color: #000000;">1</span><br />  lConnected := oConexaoDefault:<span style="color: #000000;">tAdsConnect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br />  <span style="color: #00C800;">If</span> !lConnected<br />    MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No hay Conexion con el Diccionario de Dados "</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #B900B9;">//Return  //Self</span><br />  <span style="color: #00C800;">Else</span><br />    <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Conexion Con Exito"</span><span style="color: #000000;">&#41;</span><br />    XBROWSER <span style="color: #ff0000;">"F_CFOP.ADT"</span> FASTEDIT<br />    DbUseArea<span style="color: #000000;">&#40;</span> .T., <span style="color: #ff0000;">"ADS"</span> , <span style="color: #ff0000;">"F_CFOP"</span>, <span style="color: #ff0000;">"cust"</span> <span style="color: #000000;">&#41;</span><br />    Browse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    DbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">EndIf</span> <br /><br /> CATCH oError<br />      MsgStop<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">Operation</span>+CRLF+oError:<span style="color: #000000;">Description</span>,<span style="color: #ff0000;">"Ado Connection"</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />  END<br /> <br />  oConexaoDefault:<span style="color: #000000;">tAdsCloseConnect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      Memory<span style="color: #000000;">&#40;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />      hb_gcAll<span style="color: #000000;">&#40;</span>.t.<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//para que harbour haga una recogida de "basura".</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2rjeqqr4] Este e4s el TADS_START_CONFIG() que tengo [code=fw:2rjeqqr4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> TADS_START_CONFIG<span style="color: #000000;">&#40;</span>f_cDirTmp,f_cPassAdsSys<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Local</span> oConnectionTmp, cDirExpr := <span style="color: #ff0000;">""</span>, lCreateTmp := .F.<br />&nbsp; <span style="color: #00C800;">Local</span> aStructTmp := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; <span style="color: #00C800;">Default</span> f_cDirTmp := <span style="color: #ff0000;">"J:<span style="color: #000000;">\P</span>LA3ADS<span style="color: #000000;">\D</span>ADOSTMP<span style="color: #000000;">\"</span> &nbsp;//HB_CURDRIVE()+"</span>:\<span style="color: #ff0000;">"+CURDIR()+"</span>\DADOSTMP\<span style="color: #ff0000;">"<br />&nbsp; Default f_cPassAdsSys := "</span><span style="color: #ff0000;">"<br /><br />&nbsp; St_cDirTmp := f_cDirTmp <br />&nbsp; <br />&nbsp; REQUEST DBFCDX , DBFFPT, DBFDBT<br />&nbsp; REQUEST ADS , ADSX, ADSADTX, ADSKeyno, ADSKeycount, AdsGetRelKeyPos, &nbsp;AdsSetRelKeyPos<br /><br />&nbsp;&nbsp; &nbsp;hb_rddADSRegister()<br />&nbsp; &nbsp; Set( _SET_OPTIMIZE, .T. ) <br />&nbsp; &nbsp; //Set( _SET_AUTORDER, .T. )<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; //RddRegister( "</span>ADSADTX<span style="color: #ff0000;">", 1 ) &nbsp; &nbsp; &nbsp;// ADS for Harbour<br />&nbsp; &nbsp; //RddSetDefault( "</span>ADSADTX<span style="color: #ff0000;">" ) &nbsp; &nbsp; &nbsp; // ADS for Harbour<br /><br />&nbsp; &nbsp; RddRegister( "</span>ADS<span style="color: #ff0000;">", 1 ) &nbsp; &nbsp; &nbsp;// ADS for Harbour<br />&nbsp; &nbsp; RddSetDefault( "</span>ADS<span style="color: #ff0000;">" ) &nbsp; &nbsp; &nbsp; // ADS for Harbour<br />&nbsp; &nbsp; AdsLocking( .T. )<br />&nbsp; &nbsp; AdsRightsCheck( .T. )<br />&nbsp; &nbsp; AdsTestRecLocks( .T. )<br />&nbsp; &nbsp; ADSCACHEOPENTABLES( 10 ) // PADRÃO 0<br />&nbsp; &nbsp; AdsCacheOpenCursors( 126 ) // PADRÃO 25<br />&nbsp; &nbsp; AdsSetDateFormat( "</span>DD/MM/YYYY<span style="color: #ff0000;">" )<br />&nbsp; AdsSetEpoch("</span><span style="color: #000000;">01</span>/<span style="color: #000000;">01</span>/<span style="color: #000000;">1990</span><span style="color: #ff0000;">")<br />&nbsp; &nbsp; AdsSetFileType( 3 ) /// 1 NTX / 2 CDX / 3 ADT<br /><br />&nbsp; AdsSetCharType(1)<br />&nbsp; <br />&nbsp; &nbsp; #ifdef __XHARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; SET(_SET_HARDCOMMIT,.F.) &nbsp;<br />&nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; SET(106,.F.) <br />&nbsp; &nbsp; #endif<br /><br />&nbsp; ///SET(43,.F.)<br /><br />&nbsp;<br />&nbsp; lMkDir(f_cDirTmp)<br />&nbsp; FERASE(f_cDirTmp+"</span>TADS_ERR.ADI<span style="color: #ff0000;">")<br />&nbsp; If !File(f_cDirTmp+"</span>TADS_TMP.ADD<span style="color: #ff0000;">")<br />&nbsp; &nbsp; cDirExpr := StrTran(f_cDirTmp,"</span>\<span style="color: #ff0000;">","</span>\\<span style="color: #ff0000;">")<br />&nbsp; &nbsp; AdsSetServerType(1)<br />&nbsp; &nbsp; TAds_CreateDataDictionary(cDirExpr+"</span>TADS_TMP.ADD<span style="color: #ff0000;">","</span>Dicionario de dados temporal para TAds<span style="color: #ff0000;">")<br />&nbsp; &nbsp; lCreateTmp := .T.<br />&nbsp; EndIf<br /><br />&nbsp; oConnectionTmp := tAdsConnection():New(121,.F.)<br />&nbsp; oConnectionTmp:cDataDictionary &nbsp;:= f_cDirTmp+"</span>TADS_TMP.ADD<span style="color: #ff0000;">"<br />&nbsp; oConnectionTmp:cSenhaConnect &nbsp; &nbsp;:= f_cPassAdsSys <br />&nbsp; oConnectionTmp:nTpConnect &nbsp; &nbsp; &nbsp; := 1<br />&nbsp; oConnectionTmp:tAdsConnect()<br /><br />&nbsp; If lCreateTmp<br /><br />&nbsp; &nbsp; if !Empty(f_cPassAdsSys)<br />&nbsp; &nbsp; &nbsp; TAds_ModifyUserProperty(121,"</span>ADSSYS<span style="color: #ff0000;">",f_cPassAdsSys)<br />&nbsp; &nbsp; EndIf<br /><br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>STATUS<span style="color: #ff0000;">","</span>Short<span style="color: #ff0000;">",2,0,1,"</span>Status para Controle Interno<span style="color: #ff0000;">",0})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>Dt_Ocorrencia<span style="color: #ff0000;">","</span>Date<span style="color: #ff0000;">",8,0,1,"</span><span style="color: #00C800;">Data</span> da Ocorrencia <span style="color: #00C800;">do</span> erro<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>Hr_Ocorrencia<span style="color: #ff0000;">","</span>C<span style="color: #ff0000;">",10,0,0,"</span>Horas da Ocorrencia <span style="color: #00C800;">do</span> erro<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cComputerName<span style="color: #ff0000;">","</span>C<span style="color: #ff0000;">",50,0,0,"</span>Nome <span style="color: #00C800;">do</span> Computador <span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cInfoProcLine<span style="color: #ff0000;">","</span>C<span style="color: #ff0000;">",100,0,0,"</span>Linha e procedimento da chamada de DsNew<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>nErrorSql<span style="color: #ff0000;">","</span>N<span style="color: #ff0000;">",7,0,0,"</span>Numero <span style="color: #00C800;">do</span> Erro retornado por AdsGetLastError<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cErrorSql<span style="color: #ff0000;">","</span>Memo<span style="color: #ff0000;">",8,0,0,"</span>Descricao <span style="color: #00C800;">do</span> Erro retornado por AdsGetLastError<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cSqlScript<span style="color: #ff0000;">","</span>Memo<span style="color: #ff0000;">",8,0,0,"</span>Script Sql aplicado<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cErrorComplete<span style="color: #ff0000;">","</span>Memo<span style="color: #ff0000;">",8,0,0,"</span>Descrição completa <span style="color: #00C800;">do</span> erro<span style="color: #ff0000;">",Nil})<br /><br />&nbsp; &nbsp; TAds_CreateTableFromCode(121,"</span>TADS_ERR<span style="color: #ff0000;">",aStructTmp,"</span>Tabela para registros de erros de tAds DataSet<span style="color: #ff0000;">")<br />&nbsp; &nbsp; <br />&nbsp; EndIf<br />&nbsp;<br />RETURN NIL<br /></span></div>[/code:2rjeqqr4]
Ads..por favor
Giovani., Saludos He estado analizando tus ejemplos de la Ayuda HTML que colocas, esta muy bien documentada Excelente Trabajo. Con tus Ejemplos que vi, Abrindo Tablas via Rdd para navegar Hacer Append , Modificar, etc. es muy bueno. segun este codigo [code=fw:38w49vkp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> DB_CLIENTES <span style="color: #0000ff;">from</span> TAds<br />  <span style="color: #00C800;">Data</span> cTableName     <span style="color: #0000ff;">Init</span> <span style="color: #ff0000;">"CLIENTES"</span><br />  <span style="color: #00C800;">Data</span> nCache<br />  <span style="color: #00C800;">Data</span> lConnected     <span style="color: #0000ff;">Init</span> .F.<br />  <span style="color: #00C800;">METHOD</span> OpenRdd<span style="color: #000000;">&#40;</span>f_nConexao,;      <span style="color: #B900B9;">// Numero da Conexão - Default tAds_GetConnectionDefault()</span><br />              f_nCache<span style="color: #000000;">&#41;</span>;           <span style="color: #B900B9;">// Numero de registros em Cache - Default nCacheAds()</span><br />              Constructor <br />  <span style="color: #00C800;">METHOD</span> Properties<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;            <span style="color: #B900B9;">// Parametros e dados da Tabela</span><br />              Constructor <br />  <span style="color: #00C800;">METHOD</span> END<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> OpenRdd<span style="color: #000000;">&#40;</span>f_nConexao,f_nCache<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> DB_CLIENTES<br />  <span style="color: #00C800;">Default</span> f_nCache := nCacheAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  ::<span style="color: #000000;">nCache</span>        := f_nCache<br />  ::<span style="color: #000000;">nTpCallRdd</span>    := <span style="color: #000000;">2</span><br />  ::<span style="color: #000000;">NewRdd</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cTableName</span>,f_nConexao,::<span style="color: #000000;">nCache</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">nOpenStatus</span> == <span style="color: #000000;">0</span> <br />    ::<span style="color: #000000;">lConnected</span> := .T.<br />  <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> END<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> DB_CLIENTES<br />   <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lConnected</span><br />     <span style="color: #00C800;">SUPER</span>:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">SELF</span> := <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------Após compilar o código você poderá começar a abrir as tabelas por objetos ex:</span><br /><span style="color: #00C800;">LOCAL</span> oDb_Clientes := DB_CLIENTES<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">OpenRdd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Abrindo via Rdd.</span><br />oDb_Clientes01 := DB_CLIENTES<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">OpenRdd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oDb_Clientes02 := DB_CLIENTES<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">OpenRdd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span>oDb_Clientes01:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span>oDb_Clientes02:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span><br />oDb_Clientes01:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Fecha a tabela associada a variavel objeto oDb_Clientes01</span><br />oDb_Clientes02:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Fecha a tabela associada a variavel objeto oDb_Clientes02</span><br /> </div>[/code:38w49vkp] Mi pregunta seria mejor trabajar las Tablas para hacer Append , Modificar) Usando via Rdd, o de ka otra manera Usando Sentencias SQL usar el ejemplo que colocaste. Segun veo es mas radido Usando via Rdd no se si me equivoco. ::oDs_CepSql := tAds():DsNew(1,1) ::oDs_CepSql:cQrySql := "Select * from TB_CEP " ::oDs_CepSql:DsExecute(120) Por ultima como se corrige el Error Variable SUPER No existe. Saludos
Ads..por favor
Oi Rubens Vamos aos passos: 1-Executar TADS_START_CONFIG() 2-Abrit uma conexão com dicionario de dados ex: [code=fw:3uibehco]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PUBLIC</span> oMyConnectionServer, oMyConnectionLoja02<br /><span style="color: #00D7D7;">#Define</span> nConnectionServer &nbsp; &nbsp;<span style="color: #000000;">01</span> <span style="color: #B900B9;">// Para determinar o numero da conexão 01</span><br /><span style="color: #00D7D7;">#Define</span> nConnectionLoja02 &nbsp; &nbsp;<span style="color: #000000;">02</span> <span style="color: #B900B9;">// Atribuir a conexão 02 outra conexão</span><br /><br />TADS_START_CONFIG<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Parametriza e cria os ambientes para uso do Advantage DataBase Server</span><br /><br />oMyConnectionServer := tAdsConnection<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>nConnectionServer,.T.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// .T. Para informar que esta conexão é a Padrão (Por Falta)</span><br />oMyConnectionServer:<span style="color: #000000;">cDataDictionary</span> &nbsp;:= <span style="color: #ff0000;">"<span style="color: #000000;">\\</span>SERVER<span style="color: #000000;">\R</span>EDE<span style="color: #000000;">\D</span>ADOS<span style="color: #000000;">\M</span>yDataDictionary.add"</span><br />oMyConnectionServer:<span style="color: #000000;">cUserLogin</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"adssys"</span><br />oMyConnectionServer:<span style="color: #000000;">cSenhaConnect</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"123456"</span><br />oMyConnectionServer:<span style="color: #000000;">nTpConnect</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">7</span><br /><br />lConnect := oMyConnectionServer:<span style="color: #000000;">tAdsConnect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">IF</span> lConnect == .F.<br />&nbsp; &nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Não foi possivel conectar com a base de dados de advantage."</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Falha na conexão"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; <span style="color: #00C800;">ENDIF</span><br /><br /><br />&nbsp;</div>[/code:3uibehco] Para aproveitar seus codigos fontes voce pode usar DBUSEAREA da mesma maneira que estas. A diferença é que voce não precisa abrir os indices ex: DbUseArea( .T., "ADS" , "F_CFOP", "cust" ) // esta correto e se tiver indices são carregados automaticamente Não necessita de colocar a rota ou pasta (ex: c:\dados\F_CFOP > errado), apenas "F_CFOP" > desta maneira esta correta. XBROWSER "F_CFOP.ADT" FASTEDIT // Tirar .ADT Se voce abrir uma tabela estatica, voce não pode efetuar append , replace etc, mais voce pode tratar isto em código com insert, update ou aproveitar a busca ex: [code=fw:3uibehco]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; oDs_BuscaCliente := tAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">DsNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; oDs_BuscaCliente:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Select * from CLIENTES where codigo = 100 ;"</span><br />&nbsp; oDs_BuscaCliente:<span style="color: #000000;">DsExecute</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; oDs_BuscaCliente:<span style="color: #000000;">DataLoad</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Carrega os conteudos das variaveis tipo DATA &nbsp;</span><br /><br />&nbsp; <span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">Get</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">var</span> oDs_BuscaCliente:<span style="color: #000000;">Nome</span> <span style="color: #0000ff;">of</span> odlg<br /><br />&nbsp; <span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">Get</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">302</span> <span style="color: #0000ff;">var</span> oDs_BuscaCliente:<span style="color: #000000;">SobreNome</span> <span style="color: #0000ff;">of</span> odlg<br /><br />&nbsp; <span style="color: #B900B9;">// depois voce escolhe o metodo de atualização</span><br /><br /><span style="color: #B900B9;">/// 1- primeiro</span><br />&nbsp; oDs_GravaCliente := tAds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">DsNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// 2 = não tem cursores</span><br />&nbsp; oDs_GravaCliente:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Update CLIENTES set NOME = _NOME_UPD_, SOBRENOME = _UPD_SOBRE_NOME_"</span><br />&nbsp; oDs_GravaCliente:<span style="color: #000000;">DsAddVar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"_NOME_UPD_"</span>,oDs_BuscaCliente:<span style="color: #000000;">Nome</span><span style="color: #000000;">&#41;</span><br />&nbsp; oDs_GravaCliente:<span style="color: #000000;">DsAddVar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"_UPD_SOBRE_NOME_"</span>,oDs_BuscaCliente:<span style="color: #000000;">SobreNome</span><span style="color: #000000;">&#41;</span><br />&nbsp; oDs_GravaCliente:<span style="color: #000000;">Dsexecute</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// grava e atualiza</span><br /><br /><span style="color: #B900B9;">/// 2 - Segundo</span><br />&nbsp; oDb_Clientes := Db_Clientes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">OpenRdd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ou tAds():NewRdd("CLIENTES")</span><br />&nbsp; oDb_Clientes:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">100</span>,<span style="color: #ff0000;">"CODIGO"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Posiciona no código 100 do cliente</span><br />&nbsp; oDb_Cliente:<span style="color: #000000;">rLock</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// travar Registro</span><br />&nbsp; oDb_Cliente:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOME"</span>,oDs_BuscaCliente:<span style="color: #000000;">Nome</span><span style="color: #000000;">&#41;</span> <br />&nbsp; oDb_Cliente:<span style="color: #000000;">VarPut</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SOBRENOME"</span>,oDs_BuscaCliente:<span style="color: #000000;">SobreNome</span><span style="color: #000000;">&#41;</span> <br />&nbsp; odb_Cliente:<span style="color: #000000;">Commit</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// .T. Unlock</span><br /><br />&nbsp;</div>[/code:3uibehco] Agora uma maneira mais facil [code=fw:3uibehco]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; oDb_Clientes := Db_Clientes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">OpenRdd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ou tAds():NewRdd("CLIENTES")</span><br />&nbsp; oDb_Clientes:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">100</span>,<span style="color: #ff0000;">"CODIGO"</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Posiciona no código 100 do cliente</span><br />&nbsp; oDb_Clientes:<span style="color: #000000;">Dataload</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Atualizar variaveis DATA</span><br /><br />&nbsp; <span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">Get</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">var</span> oDb_Clientes:<span style="color: #000000;">Nome</span> <span style="color: #0000ff;">of</span> odlg<br /><br />&nbsp; <span style="color: #0000ff;">Redefine</span> <span style="color: #0000ff;">Get</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">302</span> <span style="color: #0000ff;">var</span> oDb_Clientes:<span style="color: #000000;">SobreNome</span> <span style="color: #0000ff;">of</span> odlg<br /><br />&nbsp; oDb_Clientes:<span style="color: #000000;">rLock</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// travar para atualizar</span><br />&nbsp; oDb_Clientes:<span style="color: #000000;">DataSave</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Grava e atualiza os campos carregados e depois alterados em GET</span><br />&nbsp; oDb_Clientes:<span style="color: #000000;">Commit</span><span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span> &nbsp;<br /><br />&nbsp;</div>[/code:3uibehco] No Caso de SUPER troque por ::SUPER
Ads..por favor
Atualização de Dbf2Advantage.exe [url:1lqwix2m]https&#58;//github&#46;com/giovanyvecchi/tAdsGit/blob/master/Util/Dbf2Advantage/Dbf2Advantage&#46;zip[/url:1lqwix2m]
Ads..por favor
Saludos Giovany Mira este Trozo de Codigo   oDs_CepSql:DataLoad()   Do While !oDs_CepSql:Eof()     ?oDs_CepSql:VarGet("CEP")+" "+oDs_CepSql:VarGet("CIDADE")       ?oDs_CepSql:CEP  //+" "+oDs_CepSql:CIDADE     oDs_CepSql:Skip()     oDs_CepSql:DataLoad()   EndDo Pregunta No 1 Porque no funciona cuando se dice asi     ?oDs_CepSql:CEP+" "+oDs_CepSql:CIDADE funciona colocando cada uno en forma individual  de esta manera  ?oDs_CepSql:CEP  Pregunta No 2 para evitar colocar el DataLoad() que pasa si se modifica la clase METHOD OnSkip asi, hice la prueba y funciona, no se que opina usted. METHOD OnSkip //----------------------------------------------------------------------------- METHOD OnSkip(f_lData) Class TAds   Default f_lData := .T.     ::lBoF        := (::cAlias)->(Bof())   ::lEoF        := (::cAlias)->(Eof())   ::nFocusRecno := (::cAlias)->(Recno())     If ::lBufferOnSkip .and. f_lData     if ::lEof       ::DataBlank()     Else       ::DataLoad()     EndIf   else     if ::lEof     Else       ::DataLoad()     EndIf   EndIf   RETURN NIL Pregunta No 3 Me sigue generando el error, a pesar que el código compila bien, y al rato se arregla, es como que quedara algo en memoria, no es suficiente para que cierre todos los Objetos de esta manera como indicas. oConexaoDefault:tAdsCloseConnect()
Ads..por favor
Oi Rubens Para funcionar DataLoad automaticamente voce tem que acionar o [b:srv2kyjn][u:srv2kyjn]lBufferOnSkip = .T.[/u:srv2kyjn][/b:srv2kyjn], desta maneira carrega automaticamente quando o ponteiro de registro é movimentado. Esta opção não pode ser .T. inicialmente porque nos casos em que voce esta em um registro como por exemplo [b:srv2kyjn]GET VAR oDb_Clientes:Nome picture "@!"[/b:srv2kyjn] e ocorra uma movimetação nos ponteiros, as variaveis DATA com nomes dos capos serão atualizadas e o problema aparece. Quando usando a classe [b:srv2kyjn]tCtrlxBrw[/b:srv2kyjn] ai sim fica automaticamente. [quote:srv2kyjn]Pregunta nº 3 Me sigue generando o erro, um pouco para o código de compilação, e em vez de arregla, é como ficar em memória, não está disponível para todos os objetos de esta forma como indicas. OConexaoDefault: tAdsCloseConnect ()[/quote:srv2kyjn] Verifique se há algum objeto aberto com alguma tabela ex: 1- odb_clientes := tAds():NewRdd("CLIENTES") 2- oDb_Clientes := DB_CLIENTES():OpenRdd() 3- oDs_Clientes := tAds():DsNew(1) Se tiver algum objeto que não foi invocado o fechamento com END() (oDb_Clientes:End()) e voce invocar [b:srv2kyjn]tAdsCloseConnect()[/b:srv2kyjn] as tabelas referente a conexão abertas serão fechadas mais os objetos estarão abertos na memoria, neste caso ocorrera erro. No final do programa coloque a função [b:srv2kyjn]tAds_AliasesAutoOpened()[/b:srv2kyjn] Ex: [code=fw:srv2kyjn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">If</span> !Empty<span style="color: #000000;">&#40;</span>tAds_AliasesAutoOpened<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; MsgAlert<span style="color: #000000;">&#40;</span>tAds_AliasesAutoOpened<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"Tabelas Abertas"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">EndIf</span></div>[/code:srv2kyjn]
Ads..por favor
Giovani Saludos En tu conecion hay un codigo de la funcion TADS_START_CONFIG() Cual es la finalizadad de crear TADS_TMP.ADD Dicionario de dados temporal para TAds. Lo que entiendo es que el archivo .ADD (Contiene el dicionario de datos o sea todo el nombre de las tablas , indices etc del el proyecto) [code=fw:1nnr0aiy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;FERASE<span style="color: #000000;">&#40;</span>f_cDirTmp+<span style="color: #ff0000;">"TADS_ERR.ADI"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">If</span> !File<span style="color: #000000;">&#40;</span>f_cDirTmp+<span style="color: #ff0000;">"TADS_TMP.ADD"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cDirExpr := StrTran<span style="color: #000000;">&#40;</span>f_cDirTmp,<span style="color: #ff0000;">"<span style="color: #000000;">\"</span>,"</span>\\<span style="color: #ff0000;">")<br />&nbsp; &nbsp; AdsSetServerType(1)<br />&nbsp; &nbsp; TAds_CreateDataDictionary(cDirExpr+"</span>TADS_TMP.ADD<span style="color: #ff0000;">","</span>Dicionario de dados temporal para TAds<span style="color: #ff0000;">")<br />&nbsp; &nbsp; lCreateTmp := .T.<br />&nbsp; EndIf<br /><br />&nbsp; oConnectionTmp := tAdsConnection():New(121,.F.)<br />&nbsp; oConnectionTmp:cDataDictionary &nbsp;:= f_cDirTmp+"</span>TADS_TMP.ADD<span style="color: #ff0000;">"<br />&nbsp; oConnectionTmp:cSenhaConnect &nbsp; &nbsp;:= f_cPassAdsSys <br />&nbsp; oConnectionTmp:nTpConnect &nbsp; &nbsp; &nbsp; := 1<br />&nbsp; oConnectionTmp:tAdsConnect()<br /><br />&nbsp; If lCreateTmp<br /><br />&nbsp; &nbsp; if !Empty(f_cPassAdsSys)<br />&nbsp; &nbsp; &nbsp; TAds_ModifyUserProperty(121,"</span>ADSSYS<span style="color: #ff0000;">",f_cPassAdsSys)<br />&nbsp; &nbsp; EndIf<br /><br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>STATUS<span style="color: #ff0000;">","</span>Short<span style="color: #ff0000;">",2,0,1,"</span>Status para Controle Interno<span style="color: #ff0000;">",0})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>Dt_Ocorrencia<span style="color: #ff0000;">","</span>Date<span style="color: #ff0000;">",8,0,1,"</span><span style="color: #00C800;">Data</span> da Ocorrencia <span style="color: #00C800;">do</span> erro<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>Hr_Ocorrencia<span style="color: #ff0000;">","</span>C<span style="color: #ff0000;">",10,0,0,"</span>Horas da Ocorrencia <span style="color: #00C800;">do</span> erro<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cComputerName<span style="color: #ff0000;">","</span>C<span style="color: #ff0000;">",50,0,0,"</span>Nome <span style="color: #00C800;">do</span> Computador <span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cInfoProcLine<span style="color: #ff0000;">","</span>C<span style="color: #ff0000;">",100,0,0,"</span>Linha e procedimento da chamada de DsNew<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>nErrorSql<span style="color: #ff0000;">","</span>N<span style="color: #ff0000;">",7,0,0,"</span>Numero <span style="color: #00C800;">do</span> Erro retornado por AdsGetLastError<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cErrorSql<span style="color: #ff0000;">","</span>Memo<span style="color: #ff0000;">",8,0,0,"</span>Descricao <span style="color: #00C800;">do</span> Erro retornado por AdsGetLastError<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cSqlScript<span style="color: #ff0000;">","</span>Memo<span style="color: #ff0000;">",8,0,0,"</span>Script Sql aplicado<span style="color: #ff0000;">",Nil})<br />&nbsp; &nbsp; aadd(aStructTmp,{"</span>cErrorComplete<span style="color: #ff0000;">","</span>Memo<span style="color: #ff0000;">",8,0,0,"</span>Descrição completa <span style="color: #00C800;">do</span> erro<span style="color: #ff0000;">",Nil})<br /><br />&nbsp; &nbsp; TAds_CreateTableFromCode(121,"</span>TADS_ERR<span style="color: #ff0000;">",aStructTmp,"</span>Tabela para registros de erros de tAds DataSet<span style="color: #ff0000;">")<br />&nbsp; &nbsp; <br />&nbsp; EndIf<br /></span></div>[/code:1nnr0aiy]
Ads..por favor
[quote:3am92ycv]En tu conecion hay un codigo de la funcion TADS_START_CONFIG() Cual es la finalizadad de crear TADS_TMP.ADD Dicionario de dados temporal para TAds. Lo que entiendo es que el archivo .ADD (Contiene el dicionario de datos o sea todo el nombre de las tablas , indices etc del el proyecto)[/quote:3am92ycv] Oi Ruben Veja bem. Em varias partes do meu programa necessito de buscar os dados de varias maneiras e depois listar para criar reports etc. Para não comprometer o trafico de banda de rede ou internet, eu carrego varias tabelas em associação por sql e faço copiar para a maquina cliente gerando uma tabela temporaria, assim depois de carregado os resultados das querys eu posso fazer qualquer outro procedimento depois de gerado o temporario. Estes temporarios são criados em TADS_TMP.ADD Para isto veja as variaveis [b:3am92ycv]lDsCursorsToTemp, lDsTempEraseOnClose, aFieldsTempIndex[/b:3am92ycv] EX: [code=fw:3am92ycv]<div class="fw" id="{CB}" style="font-family: monospace;">aFieldsTempIndex - Variavel vetor com os nomes dos campos que deseja que seja indexado apos criar o arquivo temporario. Ex:<br /><br />  oDs_Sql := DsNew<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />  oDs_Sql:<span style="color: #000000;">cQrySql</span> := <span style="color: #ff0000;">"Select * from CLIENTES Where SALARIO > _Salario_"</span><br />  ods_Sql:<span style="color: #000000;">DsAddVar</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"_Salario_"</span>,<span style="color: #000000;">1200.00</span><span style="color: #000000;">&#41;</span><br />  oDs_Sql:<span style="color: #000000;">lDsCursorToTemp</span> := .T. <span style="color: #B900B9;">// Depois de executar a query sera copiado para a maquina cliente</span><br />  oDs_Sql:<span style="color: #000000;">aFieldsTempIndex</span> := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"CODIGO"</span>,<span style="color: #ff0000;">"NOME"</span><span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// depois de gerado o temporario será criado chaves dos indices de CODIGO e NOME</span><br />  oDs_Sql:<span style="color: #000000;">DsExecute</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #000000;">&#40;</span>oDs_Sql:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">xBrowse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  <br /> </div>[/code:3am92ycv]
Ads..por favor
Saludos Giovany Estoy creado la libreria rddadsh.lib y me da este error. Error: Unresolved external '_HB_FUN_ADSFLUSHFILEBUFFERS' referenced from K:\V_XHARB_V3\LIB\HARB\TADS_H.LIB|tAds De la contribucion de Harbour, en el fuente \rddads\adsfunc.c , mi pregunta esta es la unica funcion que le agregas Gracias
Ads..por favor
Gracias Giovany . Te pregunto al instalar el exactamente el adswin_x86_32.exe, le intgreso. El serial , La validation Code y Replication Code. Hasta aqui me recibe el todo, cuando paso a la siguiente pantalla me dice que Ingrerse el nombre o sea Registered Owner, mi pregunta que le debo dar ahi, lo estoy dejando en blanco, y lo instala. Le dijo Start Service para inicial el servicio pero no lo sube, no se que me falta o se requiere alguna configuracion. para poder iniciar el servicio.
Ads..por favor
[quote="ruben Dario":3k9ac79b]Saludos Giovany Estoy creado la libreria rddadsh.lib y me da este error. Error: Unresolved external '_HB_FUN_ADSFLUSHFILEBUFFERS' referenced from K:\V_XHARB_V3\LIB\HARB\TADS_H.LIB|tAds De la contribucion de Harbour, en el fuente \rddads\adsfunc.c , mi pregunta esta es la unica funcion que le agregas Gracias[/quote:3k9ac79b] Sim, eu incluo esta função para evitar erros de corrupção de dados em mode LOCAL SERVER. As Libs ja compiladas ja possuem esta função [url:3k9ac79b]https&#58;//github&#46;com/giovanyvecchi/tAdsGit/tree/master/Libs[/url:3k9ac79b]
Ads..por favor
Saludos Giovany Estoy usanto el ultimo Dbf2Advantage.EXE que coloco. Creo una carpteta Ejecuto Dbf2Advantage.EXE veo que el crea una carpeta ClassTads DadosAdd Cuando Adiciono un DBF y dejo el nombre por default MyDataDictionary.add que coloca y luego le doy generar. me da este error Criando Dicionario de dados - 08/09/2017 - 09:51:37 Falha na tentativa de criar o dicionario de dados J:\\PLA3ADS\\DadosAdd\\MyDataDictionary.add Otra duda si tengo un .add creado, no deberia adicionar la tabla a diccionario que existe. Gracias
Ads..por favor
[quote="ruben Dario":3k8hzeqx]Saludos Giovany Estoy usanto el ultimo Dbf2Advantage.EXE que coloco. Creo una carpteta Ejecuto Dbf2Advantage.EXE veo que el crea una carpeta ClassTads DadosAdd Cuando Adiciono un DBF y dejo el nombre por default MyDataDictionary.add que coloca y luego le doy generar. me da este error Criando Dicionario de dados - 08/09/2017 - 09:51:37 Falha na tentativa de criar o dicionario de dados J:\\PLA3ADS\\DadosAdd\\MyDataDictionary.add Otra duda si tengo un .add creado, no deberia adicionar la tabla a diccionario que existe. Gracias[/quote:3k8hzeqx]Rubén Dario, debes crear la tabla desde programa. O desde el arc32.exe te conectas a tu archivo.add y desde ahí creas la tabla. Saludos Ruben Dario Fernandez Gracias y saludos cordiales. Rubén Dario Fernández Fwh 16.08 - Bcc 7.2 - Synwrite
Ads.ch falta en página de Reinaldo Crespo
Hola amigos, alguien podría mostrarme de donde bajar ads.ch, el que usa Reinaldo Crespo, por favor, Gracias Saludos Ruben Dario Fernandez
Ads.ch falta en página de Reinaldo Crespo
//By Reinaldo Crespo-Bazan <!-- e --><a href="mailto:--reinaldo.crespo@gmail.com">--reinaldo.crespo@gmail.com</a><!-- e --> [url:23nr6yta]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=31209[/url:23nr6yta] Saludos.
Ads.ch falta en página de Reinaldo Crespo
Gracias Karinha, no está ahí. Baje de Harbour, desde aquí: <!-- m --><a class="postlink" href="https://github.com/harbour/core/tree/master/contrib/rddads">https://github.com/harbour/core/tree/ma ... rib/rddads</a><!-- m --> Voy a intentar construir la libs para Harbour. Gracias, saludos Ruben Dario Fernandez
Ads10 Free 2 Users
Hi everybody: Here is the link to get Ads10 Free 2 Users <!-- m --><a class="postlink" href="http://marketing.ianywhere.com/forms/ADS10-2-User?elq=600d88dc8c4d4a29b7d445e78d0f04f7">http://marketing.ianywhere.com/forms/AD ... e78d0f04f7</a><!-- m --> Regards Ruben Fernandez
Ads10 Free 2 Users
FYI-- Sybase Techwave includes a two day seminar on ADS. It is free. You pay to get there and for hotel accommodations. The next one is in Washington DC. This is a world class event worth attending. [url:2csjuogx]http&#58;//www&#46;sybase&#46;com/techwave/register[/url:2csjuogx] The seminar as well as all materials, a 5 user license of the server, breakfast, lunch, and dinner are also included at no cost. I will be attending. Hope to see some of you there. Reinaldo.
Ads10 Free 2 Users
Reinaldo, Thank you for the information. This is good news seeing important companies promoting dbf databases. Best regards, Otto
AdsEnableEncryption()
Hi, I used DBF open with ADS usually and I never had problems. Now I am using AdsEnableEncryption () and this working ok The times in some customers when the energy falls this corrupting files, and normal that using AdsEnableEncryption ()? Clemerson
AdsEnableEncryption()
I use AdsEnableEncryption () for last 4 years with no problems at all. Mike Buckler
AdsEnableEncryption()
[quote="Mike Buckler":2d3bzrdk]I use AdsEnableEncryption () for last 4 years with no problems at all. Mike Buckler[/quote:2d3bzrdk] do I use local ads and you use local ads or server? Clemerson
AdsEnableEncryption()
this and the error: 7016 Corrupt table Problem: The specified table contains corrupted data in the file or field headers. * ADS Local Version 8.1 Clemerson
AdsEnableEncryption()
I use both ads server and local ads 8 with encrypted files. We have never had a problem with corruption??? Mike
AdsEnableEncryption()
Clemerson, Consider the possibility that the corruption may not be due to encryption but rather something else. James
AdsEnableEncryption()
From the ADS knowledge base: Problem: The specified table contains corrupted data in the file or field headers. Solution: Make sure the specified file is a valid table. Also, make sure you are not attempting to open a DBF table with an ADT table type, or vice versa. If you have an existing data dictionary that was created with any 6.0 Beta release of Advantage, the ADT database tables are not compatible with the 6.0 release of the Advantage clients and servers. You will get a 7016 error when attempting to open those ADT tables using the Advantage 6.0 release product. A utility is provided to update those ADT tables to make them compatible with the 6.0 release of the Advantage clients and servers. The utility (update_r6b2.exe) is installed in the same directory as the Advantage Data Architect (arc32.exe) utility, and it can be called from the command line.
AdsEnableEncryption()
[quote="James Bott":30yvfb1c]Clemerson, Consider the possibility that the corruption may not be due to encryption but rather something else. James[/quote:30yvfb1c] I am thinking it is another thing even. Clemerson
AdsEnableEncryption()
[quote="RF":3pfon6kv]From the ADS knowledge base: Problem: The specified table contains corrupted data in the file or field headers. Solution: Make sure the specified file is a valid table. Also, make sure you are not attempting to open a DBF table with an ADT table type, or vice versa. If you have an existing data dictionary that was created with any 6.0 Beta release of Advantage, the ADT database tables are not compatible with the 6.0 release of the Advantage clients and servers. You will get a 7016 error when attempting to open those ADT tables using the Advantage 6.0 release product. A utility is provided to update those ADT tables to make them compatible with the 6.0 release of the Advantage clients and servers. The utility (update_r6b2.exe) is installed in the same directory as the Advantage Data Architect (arc32.exe) utility, and it can be called from the command line.[/quote:3pfon6kv] I noticed that in these customers that he gave the error before he had an older version of my software and it updated now and in the fall of energy he gave the problem, I will verify this update_r6b2.exe. Clemerson
AdsEnableEncryption()
[quote="Mike Buckler":14dworjj]I use both ads server and local ads 8 with encrypted files. We have never had a problem with corruption??? Mike[/quote:14dworjj] then for the comment of all no and problem of the encrypted files. Clemerson
AdsEnableEncryption()
Does a thing find strange that observed, did I open the file DBF with MED and did I verify the parts that it damaged in DBF, recorded in DBF leaves of another file temporary DBF, will it be that that help? [img:1888ua19]http&#58;//www&#46;sysfar&#46;com&#46;br/imagens/estat&#46;jpg[/img:1888ua19] Clemerson
AdsGetServerTime
Estimados Alguien sabe como funciona esta función de ADS [b:36h3wo6a]AdsGetServerTime[/b:36h3wo6a] Lo que necesito es como puedo compatibilizar hora con time me explico time me devuelve la hora en formato 24hrs AdsGetServerTime()[2] me devuelve en formato 12pm y estaba viendo ayuda pero no logro resolverlo.. desde ya gracias.. [code:36h3wo6a]ejemplo time&#40;&#41;=17&#58;32&#58;52 AdsGetServerTime&#91;2&#93;=05&#58;32&#58;52 PM[/code:36h3wo6a] [u:36h3wo6a]si no voy a tener que hacer un funcion para convertir a 24 <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->[/u:36h3wo6a] Saludos Patricio
AdsGetServerTime
Hola Patricio. Yo uso la siguiente función: [code:gs5qz1b9]FUNCTION Hora&#40;&#41; local cHor, cMin, cSec, cMer, cMin, cSec, cAds cAds &#58;= AdsGetServerTime&#40;&#41;&#91;2&#93; cHor &#58;= left&#40; cAds, 2&#41; cMer &#58;= Upper&#40; Right&#40;cAds, 2&#41; &#41; do case case cMer='PM' &#46;and&#46; !cHor=='12' cHor &#58;= padl&#40; Val&#40;cHor&#41;+12, 2, '0' &#41; case cMer='AM' &#46;and&#46; cHor=='12' cHor &#58;= '00' endcase cMin &#58;= SubStr&#40;cAds, 4, 2&#41; cSec &#58;= SubStr&#40;cAds, 7, 2&#41; return cHor + cMin + cSec[/code:gs5qz1b9]