messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2006-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias fGondi\n\n[i:1ekufsp4]ahhh otra cosa, sabemos que [/i:1ekufsp4]\n\n[code:1ekufsp4]AdsGetServerTime()[1] devuelve la fecha\nAdsGetServerTime()[2] devuelve la hora\nAdsGetServerTime()[3] que cosa es???[/code:1ekufsp4]\n\nSaludos\nPatricio", "time": "16:42", "topic": "AdsGetServerTime", "username": "Patricio Avalos Aguirre" } ]
AdsGetServerTime
[ { "date": "2016-10-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola : \nAlguien usó con éxito la función AdsMgKillUser ?\ny me puede indicar como se usa..?\n\nYo escribi la siguiente pero no me mata los usuarios...\nSdos\nGracias\nSilvina\n\nFUNCTION KILL_OPERADORES\n*=======================\nLOCAL aUsuarios , nFor\n\nAdsMgConnect( 'n:' ) \n\naUsuarios := AdsMgGetUserNames()\n\nFOR nFor := 1 TO len( aUsuarios )\n\n AdsMgKillUser( , aUsuarios[ nFor ][ 1 ] , 0 )\n\nNEXT\n\nAdsMgDisconnect()\n\nReturn( Nil )", "time": "22:37", "topic": "AdsMgKillUser", "username": "silvinamazzaro" } ]
AdsMgKillUser
[ { "date": "2016-10-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello :\nSomeone used successfully AdsMgKillUser function?\nand I can indicate as used ..?\n\nI wrote the following but does not kill me users ...\n\nThank you\n\nSilvina\n\n\nFUNCTION KILL_OPERADORES\n*=======================\nLOCAL aUsuarios , nFor\n\nAdsMgConnect( 'n:' ) \n\naUsuarios := AdsMgGetUserNames()\n\nFOR nFor := 1 TO len( aUsuarios )\n\n AdsMgKillUser( , aUsuarios[ nFor ][ 1 ] , 0 )\n\nNEXT\n\nAdsMgDisconnect()\n\nReturn( Nil )", "time": "14:31", "topic": "AdsMgKillUser function", "username": "silvinamazzaro" } ]
AdsMgKillUser function
[ { "date": "2016-10-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I use this:\n\n[code=fw:sd73q3gs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> cSql:= <span style=\"color: #ff0000;\">\"EXECUTE PROCEDURE sp_mgGetConnectedUsers()\"</span><br /><span style=\"color: #00C800;\">Try</span><br />  oAdoComando:<span style=\"color: #000000;\">CommandText</span> := rTrim<span style=\"color: #000000;\">&#40;</span>cSql<span style=\"color: #000000;\">&#41;</span><br />  oRecordSet := oAdoComando:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />Catch<br />  oRecordSet := <span style=\"color: #00C800;\">NIL</span><br />End<br /><br />aDatos  := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />aServer := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">if</span> oRecordSet<>NIL<br />  <span style=\"color: #00C800;\">WHILE</span> !oRecordSet:<span style=\"color: #000000;\">Eof</span><br />    cReg  := oRecordSet:<span style=\"color: #000000;\">fields</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'USERNAME'</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span><br />    cReg  := Alltrim<span style=\"color: #000000;\">&#40;</span> Upper<span style=\"color: #000000;\">&#40;</span> cReg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    cUser := oRecordSet:<span style=\"color: #000000;\">fields</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'DICTIONARYUSER'</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span><br />    cUser := Alltrim<span style=\"color: #000000;\">&#40;</span> Upper<span style=\"color: #000000;\">&#40;</span> cUser <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">if</span> !cUser==<span style=\"color: #ff0000;\">'ADSSYS'</span> .and. !<span style=\"color: #000000;\">&#40;</span>cReg in aDatos<span style=\"color: #000000;\">&#41;</span> .and. !<span style=\"color: #000000;\">&#40;</span>cReg in aServer<span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">//... Sólo una ejecución por equipo conectado</span><br />      aadd<span style=\"color: #000000;\">&#40;</span> aDatos, cReg <span style=\"color: #000000;\">&#41;</span><br />    elseif cUser==<span style=\"color: #ff0000;\">'ADSSYS'</span> .and. !<span style=\"color: #000000;\">&#40;</span>cReg in aServer<span style=\"color: #000000;\">&#41;</span><br />      j := aScan<span style=\"color: #000000;\">&#40;</span> aDatos, cReg <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">if</span> j<><span style=\"color: #000000;\">0</span><br />        aDatos := Hb_aDel<span style=\"color: #000000;\">&#40;</span> aDatos, j, .T. <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">endif</span><br />      aadd<span style=\"color: #000000;\">&#40;</span> aServer, cReg <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">endif</span><br />    oRecordSet:<span style=\"color: #000000;\">MoveNext</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  END<br />  oRecordSet:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br />oRecordSet := <span style=\"color: #00C800;\">NIL</span><br /><br />j := len<span style=\"color: #000000;\">&#40;</span>aDatos<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">for</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> j<br />  <span style=\"color: #00C800;\">for</span> each cReg in aDatos<br />    <span style=\"color: #00C800;\">Try</span><br />      cSql   := <span style=\"color: #ff0000;\">\"EXECUTE PROCEDURE sp_mgKillUser('\"</span>+cReg+<span style=\"color: #ff0000;\">\"')\"</span><br />      oAdoComando:<span style=\"color: #000000;\">CommandText</span> := rTrim<span style=\"color: #000000;\">&#40;</span>cSql<span style=\"color: #000000;\">&#41;</span><br />      oAdoComando:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    Catch<br />    End<br />  <span style=\"color: #00C800;\">next</span><br /><span style=\"color: #00C800;\">next</span><br /><br />j := len<span style=\"color: #000000;\">&#40;</span>aServer<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">for</span> each cReg in aServer<br />  <span style=\"color: #00C800;\">Try</span><br />    cSql   := <span style=\"color: #ff0000;\">\"EXECUTE PROCEDURE sp_mgKillUser('\"</span>+cReg+<span style=\"color: #ff0000;\">\"')\"</span><br />    oAdoComando:<span style=\"color: #000000;\">CommandText</span> := rTrim<span style=\"color: #000000;\">&#40;</span>cSql<span style=\"color: #000000;\">&#41;</span><br />    oAdoComando:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  Catch<br />  End<br /><span style=\"color: #00C800;\">next</span><br /> </div>[/code:sd73q3gs]", "time": "09:39", "topic": "AdsMgKillUser function", "username": "fgondi" } ]
AdsMgKillUser function
[ { "date": "2016-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "por si a alguien le interesa, lo hicimos andar de la siguiente forma:\nesto cancela las aplicaciones conectadas al la bdd y cierra los archivos.\nsldos\nSilvina\n\nFUNCTION BDDKILL \n*===============\nLOCAL aUsuarios , nFor , nManejador\n\nAdsMgConnect( 'W:' ) //, nil, nil, @nManejador )\n\naUsuarios := AdsMgGetUserNames()\n\nFOR nFor := 1 TO len( aUsuarios )\n msginfo( aUsuarios[ nFor ][ 1 ] )\n AdsMgKillUser( aUsuarios[ nFor ][ 1 ] , 0 )\nNEXT\n\nAdsMgDisconnect()\n\nReturn( Nil )", "time": "21:49", "topic": "AdsMgKillUser function", "username": "silvinamazzaro" } ]
AdsMgKillUser function
[ { "date": "2006-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI'm having problems trying to get this ADS API call to work. Getting ADS Error 5132 every time I try with a DBF-NTX table. Have tried to send the table parameter with and without path, extension, using table types ADS_DEFAULT and ADS_NTX. The table exists on the DD. I'm using version 8.0.0.1 of ACE32.\n\nIs anybody using AdsRestructureTable with the new release of xharbour ( 0.99.6) with success on dbf/ntx tables?\n\nThank you,\n\n\nReinado Crespo", "time": "01:51", "topic": "AdsRestructureTable()", "username": "reinaldocrespo" } ]
AdsRestructureTable()
[ { "date": "2006-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Reinaldo,\n\nYou may ask Brian Hays, he is a good ADS guru <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "08:25", "topic": "AdsRestructureTable()", "username": "Antonio Linares" } ]
AdsRestructureTable()
[ { "date": "2006-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio;\n\nThank you for posting a reply.\n\nI did talk to Brian. We discovered a problem with the wrapper function to the AdsRestructureTable api call and the way ACE32 expects it. He sent me a fix. After testing the changes, the fix was later commited to the CVS. He also added a wrapper to AdsDDSetTableProperty() that I was needing.\n\nI'm having many other problems when using the DD with DBFNTX tables. We are trying to debug them all.\n\nI thought more people would be using the Data Dictionary with ADS. Not using it is missing on the most important features ADS has to offer --layers of security--. How else can you avoid risking your DBF/NTX/CDX tables from being erased by a user? \n\nBest,\n\n\nReinaldo Crespo-Bazán.", "time": "13:07", "topic": "AdsRestructureTable()", "username": "reinaldocrespo" } ]
AdsRestructureTable()
[ { "date": "2007-10-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados \n\nalguien a utilizado la funcion de Ads AdsRestructureTable()\n\na ver si me dan una manito para esta funcion\n\ndesde ya gracias...\n\nviendo los fuentes me da esta pista, pero no he podido como implementarla..[code:3d3vb5td]\n\nHB_FUNC&#40; ADSRESTRUCTURETABLE &#41;\n&#123;\n // call&#58;\n // AdsRestructureTable&#40; cTable, cAddFields, cDeleteFields, cChangeFields &#41;\n\n //UNSIGNED32 AdsRestructureTable&#40; ADSHANDLE hConnect,UNSIGNED8 *pucName,\n // UNSIGNED8 *pucAlias,UNSIGNED16 usTableType,UNSIGNED16 usCharType,\n // UNSIGNED16 usLockType,UNSIGNED16 usCheckRights,UNSIGNED8\n // *pucAddFields,UNSIGNED8 *pucDeleteFields,UNSIGNED8 *pucChangeFields &#41;;\n //adsFileType ADS_DEFAULT, ADS_ADT, ADS_NTX and ADS_CDX\n\n UNSIGNED32 ulRetVal;\n UNSIGNED8 *pTableName = &#40;UNSIGNED8 *&#41; hb_parcx&#40; 1 &#41;;\n UNSIGNED8 *pucAddFields = &#40;UNSIGNED8 *&#41; hb_parcx&#40; 2 &#41;;\n UNSIGNED8 *pucDeleteFields = &#40;UNSIGNED8 *&#41; hb_parcx&#40; 3 &#41;;\n UNSIGNED8 *pucChangeFields = &#40;UNSIGNED8 *&#41; hb_parcx&#40; 4 &#41;;\n ADSHANDLE hConnect = HB_ADS_PARCONNECTION&#40; 5 &#41;;\n\n ulRetVal = AdsRestructureTable&#40; hConnect, pTableName, NULL,\n adsFileType, adsCharType, adsLockType,\n adsRights,\n pucAddFields,\n pucDeleteFields,\n pucChangeFields &#41;;\n\n hb_retl&#40; &#40;long&#41; ulRetVal &#41;;[/code:3d3vb5td]", "time": "20:45", "topic": "AdsRestructureTable()", "username": "Patricio Avalos Aguirre" } ]
AdsRestructureTable()
[ { "date": "2007-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello\n\nYou would be able to place an example of like using AdsRestructureTable", "time": "22:35", "topic": "AdsRestructureTable()", "username": "Patricio Avalos Aguirre" } ]
AdsRestructureTable()
[ { "date": "2006-11-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nHow I can use the AdsSeekLast function with FWH/xHarbour?", "time": "16:00", "topic": "AdsSeekLast function", "username": "vilian" } ]
AdsSeekLast function
[ { "date": "2006-11-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Vilian\n\n[quote=\"vilian\":1gsotyqr]How I can use the AdsSeekLast function with FWH/xHarbour?[/quote:1gsotyqr]\nMost of ADS' functions are integrated at the RDD level, so just use\n\ndbSeek( xSeek, lSoftSeek, lLast )\n\nregardless of the RDD you use (check the Clipper 5.3 NG for details).\nor \n<!-- m --><a class=\"postlink\" href=\"http://www.xharbour.com/xhdn/index.asp?page=ref_detail.asp&src=xhb&id=569&show_i=20&show_sub=3\">http://www.xharbour.com/xhdn/index.asp? ... show_sub=3</a><!-- m -->\n\nIn you case, just pass a TRUE for the 3rd param.", "time": "02:14", "topic": "AdsSeekLast function", "username": "Luis Krause" } ]
AdsSeekLast function
[ { "date": "2006-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi antonio,\n\nThanks,", "time": "12:13", "topic": "AdsSeekLast function", "username": "vilian" } ]
AdsSeekLast function
[ { "date": "2006-11-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Vilian:\n\nNo problem... but I'm Luis, not Antonio <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[quote=\"vilian\":3kkozrcy]Hi antonio,\n\nThanks,[/quote:3kkozrcy]", "time": "18:42", "topic": "AdsSeekLast function", "username": "Luis Krause" } ]
AdsSeekLast function
[ { "date": "2012-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a kigos:\n\nUsando AdsSetAof() en un xBrowse, los datos que muestra corresponde a lo\nsolicitado, lo extraño es que el comportamiento de xBrowse es raro. No puedo ir recorriendolo\ncon la flecha, ya que el xBrowse se saltea algun registro mostrado. \n\n local cTexto:= \"Algo a buscar\"\n DBSelectArea(DBLISTA)\n (DBLISTA)->(AdsClearAOF()) \n (DBLISTA)->(OrdScope(0,))\n (DBLISTA)->(OrdScope(1,))\n (DBLISTA)->(OrdSetFocus('NOMBRE33')) //Filtro FTS\n (DBLISTA)->(DbGoTop())\n (DBLISTA)->(AdsSetAof( '\"' +cTexto+ '\" $ P_NOM') )\n Mbrw:Refresh(.t.)\n\nLa uso para buscar una o mas palabras en la descripcion de un artículo.\n\nSaludos y Gracias\n\nRuben Fernandez", "time": "13:50", "topic": "AdsSetAof()", "username": "RuFerSo" } ]
AdsSetAof()
[ { "date": "2012-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Yo lo hago de esta manera :\n\n[code=fw:38tormqk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />    cFil1 := <span style=\"color: #ff0000;\">\"'\"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>vFil<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"' $\"</span>+<span style=\"color: #ff0000;\">\"PROVEDOR->PROVEDOR\"</span><br />    cFil2 := <span style=\"color: #ff0000;\">\"'\"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>vFil<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"' $\"</span>+<span style=\"color: #ff0000;\">\"PROVEDOR->NOMBRE\"</span><br />    cFiltro := <span style=\"color: #ff0000;\">\"{||\"</span>+cFil1+<span style=\"color: #ff0000;\">\" .OR. \"</span>+cFil2+<span style=\"color: #ff0000;\">\"}\"</span><br />    gFiltro := <span style=\"color: #ff0000;\">'\"'</span>+cFil1+<span style=\"color: #ff0000;\">' .OR. '</span>+cFil2+<span style=\"color: #ff0000;\">'\"'</span><br />    DbSetfilter<span style=\"color: #000000;\">&#40;</span>&cFiltro,&gFiltro<span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:38tormqk]\n\nla vFil es una cadena que voy tecleando y en el browse se va filtrando \n\nSaludos.", "time": "15:52", "topic": "AdsSetAof()", "username": "JavierVital" } ]
AdsSetAof()
[ { "date": "2012-12-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Luego de definir tu browse \nhaz un \n\nSetRddAds( oBrowse )\n\nsalu2\ncarlos vargas\n\n[code=fw:37vmh38y]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />PROCEDURE SetRddAds<span style=\"color: #000000;\">&#40;</span> oBrw, lCell, nFreeze <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cAlias &nbsp;:= oBrw:<span style=\"color: #000000;\">cAlias</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> nFreeze := <span style=\"color: #000000;\">0</span> , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lCell &nbsp; := <span style=\"color: #00C800;\">FALSE</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span>|oCol| oCol:<span style=\"color: #000000;\">lAllowSizing</span> := <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lRecordSelector</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">TRUE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= STRETCHCOL_LAST<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nColDividerStyle</span> &nbsp; &nbsp; &nbsp; := LINESTYLE_DARKGRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lColDividerComplete</span> &nbsp; &nbsp;:= <span style=\"color: #00C800;\">TRUE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrHeader</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLUE, &nbsp;CLR_BROWTIT, CLR_BLACK <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrSelFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_WHITE, CLR_CYAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrFooter</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_RED, &nbsp; CLR_BROWTIT, CLR_BLACK <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrSel</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_WHITE, CLR_BLACK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">l2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowColHiding</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowColSwapping</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowRowSizing</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowCopy</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lKinetic</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lKineticBrw</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lHScroll</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #00C800;\">FALSE</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nHeaderHeight</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">25</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !Empty<span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">bGoTop</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> DBGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">bGoBottom</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> DBGoBottom<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">bSkip</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span>| n | IIf<span style=\"color: #000000;\">&#40;</span> HB_IsNil<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span>, n := <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> DbSkipper<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">bBof</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> Bof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">bEof</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">bBookMark</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span>| n | IIf<span style=\"color: #000000;\">&#40;</span> HB_IsNil<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> DBGoTo<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> <span style=\"color: #ff0000;\">\"ADS\"</span> $ <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> RddName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">bKeyCount</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> AdsKeyCount<span style=\"color: #000000;\">&#40;</span> , , ADS_RESPECTFILTERS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">bKeyNo</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span>| n | IIf<span style=\"color: #000000;\">&#40;</span> HB_IsNil<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> AdsKeyNo<span style=\"color: #000000;\">&#40;</span> , , ADS_RESPECTFILTERS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdKeyGoto<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">bKeyCount</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdKeyCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">bKeyNo</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdKeyNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nFreeze > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style=\"color: #000000;\">nFreeze</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := nFreeze<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !lCell<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; := MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style=\"color: #000000;\">bClrRowFocus</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">185</span>, <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; := MARQSTYLE_HIGHLCELL<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;END<br /><br /><span style=\"color: #00C800;\">RETURN</span><br />&nbsp;</div>[/code:37vmh38y]", "time": "18:38", "topic": "AdsSetAof()", "username": "carlos vargas" } ]
AdsSetAof()
[ { "date": "2012-12-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos: Excelente, solo con colocar estas 2 líneas en mi xBrowse quedó funcionando. Ya que las demas definciones las tengo al inicio.\n\n mBrw:bKeyCount := {|| ( DBLISTA )->( AdsKeyCount( , , ADS_RESPECTFILTERS ) ) }\n mBrw:bKeyNo := {| n | IIf( HB_IsNil( n ), ( DBLISTA )->( AdsKeyNo( , , ADS_RESPECTFILTERS ) ), ( DBLISTA )->( OrdKeyGoto( n ) ) ) }\n\nGracias Carlos.\n\n\nJavier: Muy buena tu función, tomé nota.\n\nGracias Javier.\n\nSaludos Ruben Fernandez", "time": "04:37", "topic": "AdsSetAof()", "username": "RuFerSo" } ]
AdsSetAof()
[ { "date": "2013-06-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Rufer\n\nPodrias compartirme tu codigo de este articulo de favor.\n\ngracias de antemano\nsaludos", "time": "03:53", "topic": "AdsSetAof()", "username": "Miguel Salas" } ]
AdsSetAof()
[ { "date": "2014-09-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos, Buen dia\n\nProbando tu solución esta muy bien ya no da el salto mal\npero el detalle que tengo 34 usuarios y un catalogo de 8,000 productos\ny probando se alenta al hacer la función de buscar algún producto \ntecleando varias letras de búsqueda.\n\n[code=fw:1yihxtvz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrow:<span style=\"color: #000000;\">bKeyCount</span> := <span style=\"color: #000000;\">&#123;</span>|| ARTICULOS-><span style=\"color: #000000;\">&#40;</span> AdsKeyCount<span style=\"color: #000000;\">&#40;</span> , , ADS_RESPECTFILTERS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oBrow:<span style=\"color: #000000;\">bKeyNo</span>      := <span style=\"color: #000000;\">&#123;</span>| n | IIf<span style=\"color: #000000;\">&#40;</span> HB_IsNil<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span>, ARTICULOS-><span style=\"color: #000000;\">&#40;</span> AdsKeyNo<span style=\"color: #000000;\">&#40;</span> , , ADS_RESPECTFILTERS <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ARTICULOS-><span style=\"color: #000000;\">&#40;</span> OrdKeyGoto<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oBrow:<span style=\"color: #000000;\">bKeyDown</span>  := <span style=\"color: #000000;\">&#123;</span>|nKey| IIF<span style=\"color: #000000;\">&#40;</span>nKey=<span style=\"color: #000000;\">27</span>,oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,VALIDAKEYARTICULO1<span style=\"color: #000000;\">&#40;</span>nKey,oDlg,oBrow<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:1yihxtvz]\n\nEn la function de VALIDAKEYARTICULO1\n[code=fw:1yihxtvz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />            <span style=\"color: #0000ff;\">Select</span> ARTICULOS<br />            DbGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">IF</span> !DbSeek<span style=\"color: #000000;\">&#40;</span>AllTrim<span style=\"color: #000000;\">&#40;</span>oFil<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />                DbGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">ENDIF</span><br />            oBrow:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1yihxtvz]\n\nel seek en esta parte de la función se vuelve lento\n\nTendras alguna solución para esto, o de que forma buscas ?", "time": "20:23", "topic": "AdsSetAof()", "username": "VitalJavier" } ]
AdsSetAof()
[ { "date": "2008-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "...Why:?:", "time": "10:39", "topic": "AdsSkip() missing in xHarbour 1.0b", "username": "fraxzi" } ]
AdsSkip() missing in xHarbour 1.0b
[ { "date": "2008-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Please report this on the xHarbour newgroup.\r\n\r\nPatrick", "time": "13:47", "topic": "AdsSkip() missing in xHarbour 1.0b", "username": "Patrick Mast" } ]
AdsSkip() missing in xHarbour 1.0b
[ { "date": "2019-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "HI, im trying use xharbour from repository, last version, after compile, receive the error:\n\nerror: unresolved external \"_AdsSetNull\" referenced from rddads.lib | adsfunc\n\nsomething change ? last xharbour version have some error?\n\nsomething related to this?\n\n2018-05-28 11:20 UTC+0200 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>\n * contrib\\rddads\\adsfunc.c\n ! added functions ADSDDSETFIELDPROPERTY(), ADSSETTIMESTAMP() and[b:7xp1jr2j] ADSSETNULL[/b:7xp1jr2j](). Thanks to Reinaldo!\n\n\nthanks", "time": "14:55", "topic": "Adssetnull external error", "username": "Admpss" } ]
Adssetnull external error
[ { "date": "2019-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Someone else using ADS can check this, please?\n\nEMG", "time": "18:26", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Luiz, an xHarbour developer, wrote: \"Probaly his ads client .lib is from an old version\".\n\nPlease check.\n\nEMG", "time": "09:07", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "EMG, very thanks, im using ads 10.10, we dont update to last version because we dont need new features and price of update too. but xharbour Always Works with ads 8, 9 ,10 in old versions, if i remenber in source of rddads have an #define like IF adsversion == x, adsversion == y.\n\ni have to go back to old version of xharbour until problem is fix, very thanks again.\n\nbest regards", "time": "12:42", "topic": "Adssetnull external error", "username": "Admpss" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Please, try to ask to comp.lang.xharbour newsgroup.\n\nEMG", "time": "13:33", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "EMG, i will, just let me know, there commit made for you, is to specific version of ads? why you add these functions, in changelog you say reinaldo advice, reinaldo can say if these function is specific to some version of ads?\n\nanother solution is go to harbour....\n\nvery thanks", "time": "14:31", "topic": "Adssetnull external error", "username": "Admpss" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Admpss\":7wz8vxh9]EMG, i will, just let me know, there commit made for you, is to specific version of ads?[/quote:7wz8vxh9]\n\nDon't think so but I'm not an ADS user, so I don't know for sure.\n\n[quote=\"Admpss\":7wz8vxh9]why you add these functions, in changelog you say reinaldo advice, reinaldo can say if these function is specific to some version of ads?[/quote:7wz8vxh9]\n\nProbably yes. Reinaldo, are you listening?\n\n[quote=\"Admpss\":7wz8vxh9]another solution is go to harbour....[/quote:7wz8vxh9]\n\nBut even so, we better to fix xHarbour too, it there is a bug to fix.\n\nEMG", "time": "15:24", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "EMG, in adsfunc.c adssetnull is commented, \n\n/*HB_FUNC( ADSSETNULL )\n{\nUNSIGNED32 ulRetVal;\nADSAREAP pArea = hb_adsGetWorkAreaPointer();\nulRetVal = AdsSetNull( (hb_parnl(1)==0) ? pArea->hOrdCurrent : hb_parnl(1),(char*) hb_parc(2));\nhb_retl( ulRetVal == AE_SUCCESS );\n}*/\n\nbut in the same adsfunc.c have this:\n\nHB_FUNC( ADSSETNULL )\n{\n UNSIGNED32 ulRetVal;\n ADSAREAP pArea = hb_adsGetWorkAreaPointer();\n\n ulRetVal = AdsSetNull( pArea->hStatement, \n ( UNSIGNED8 * ) hb_parcx( 1 ) ) ;// pucFldName ,\n\n hb_retl( ulRetVal == AE_SUCCESS );\n}\n\nanother reference is in ace32.c\n\nUNSIGNED32 ENTRYPOINT AdsSetNull( ADSHANDLE hTable, UNSIGNED8 *pucFldName )\n{\n#if defined(__cplusplus)\n static ADSSETNULL_PTR\n#else\n static ADSSETNULL_PTR pFunc = NULL;\n if ( !pFunc )\n#endif\n pFunc = (ADSSETNULL_PTR) Ace32_GetProcAddress( \"AdsSetNull\" );\n\n return pFunc( hTable, pucFldName );\n}\n\nthanks", "time": "15:52", "topic": "Adssetnull external error", "username": "Admpss" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't know why this is commented out... It could be an error from mine, sorry. Ok, let's try to uncomment it...\n\nEMG", "time": "15:59", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "EMG, i guess the comented is the original one, and uncommented is the reinaldo sugestion.\n\ni will try compile xharbour with rddads without your commit, to see if the error persist.\n\nthanks", "time": "16:03", "topic": "Adssetnull external error", "username": "Admpss" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Done. Let's wait for Mel to make the new xHarbour builds...\n\nEMG", "time": "16:05", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Admpss\":3i3th3er]EMG, i guess the comented is the original one, and uncommented is the reinaldo sugestion.\n\ni will try compile xharbour with rddads without your commit, to see if the error persist.\n\nthanks[/quote:3i3th3er]\n\nOps! Sorry, I'm going to revert my change...\n\nEMG", "time": "16:08", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Done.\n\nEMG", "time": "16:12", "topic": "Adssetnull external error", "username": "Enrico Maria Giordano" } ]
Adssetnull external error
[ { "date": "2019-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "EMG, thanks, but not solved. same error after your commit. can you see with reinaldo why this changes, they are to specific ads version? thanks again.", "time": "09:03", "topic": "Adssetnull external error", "username": "Admpss" } ]
Adssetnull external error
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI now this is not a SQL-forum, but since a lott off users use SQL, mayme somone know the solution.\n\nI have table like this\n[code=fw:zmckn5mi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">Name</span>    Parameter   Value<br />----    ---------   -----<br />Name1   Parmeter1   Value11<br />Name1   Parmeter2   Value21<br />Name1   Parmeter3   Value31<br />Name1   Parmeter4   Value41<br />Name1   Parmeter5   Value51<br />Name1   Parmeter6   Value61<br />...<br />...<br />Name1   Parmeter100 Value1001<br />Name2   Parmeter1   Value12<br />Name2   Parmeter2   Value22<br />Name2   Parmeter3   Value32<br />Name2   Parmeter4   Value42<br />Name2   Parmeter5   Value52<br />Name2   Parmeter6   Value62<br />...<br />...<br />Name2   Parmeter100 Value1002<br />Name3   Parmeter1   Value13<br />Name3   Parmeter2   Value23<br />Name3   Parmeter3   Value33<br />Name3   Parmeter4   Value43<br />Name3   Parmeter5   Value53<br />Name3   Parmeter6   Value63<br />...<br />...<br />Name3   Parmeter100 Value1003<br />....<br />....</div>[/code:zmckn5mi]\n\nNow I want to create a browse where I can show for example all parameter1,parameter2,parameter5 of all names like this.\n[code=fw:zmckn5mi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">Name</span>    Parameter1  Parameter2  Parameter5<br />----    ----------  ----------  ----------<br />Name1   Value11     Value21     Value51 <br />Name2   Value12     Value22     Value52 <br />Name3   Value13     Value23     Value53<br />...<br />...</div>[/code:zmckn5mi]\n\nIs is possible with SQL to do this in one SELECT command?\n\nNow I use a function that loop all parameters for each name, and put it in a temperory table.\nThen I show this table.\nThis is taking a little time when I have a very big table.\n\nThanks", "time": "10:38", "topic": "Advance SQL-query question", "username": "Marc Vanzegbroeck" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30530\">viewtopic.php?f=3&t=30530</a><!-- l -->", "time": "12:05", "topic": "Advance SQL-query question", "username": "nageswaragunupudi" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nWhat is the query that used for the pivot view?\nI don't want to calculate the sum om the fields. For each name there is one time a field with parameter1, and I want to show the field in Value1 for that name.", "time": "13:06", "topic": "Advance SQL-query question", "username": "Marc Vanzegbroeck" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2pprcih4]I don't want to calculate the sum om the fields. For each name there is one time a field with parameter1, and I want to show the field in Value1 [/quote:2pprcih4]\nThe functionality is not limited to SUM alone. SUM, AVG, MAX, MIN,STD etc\nMAX of a single value is the same value. Isn't it?\nSource of this function is in adofuncs.prg\n\n[code=fw:2pprcih4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">SELECT</span> <span style=\"color: #0000ff;\">NAME</span>,<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">CASE</span> <span style=\"color: #0000ff;\">WHEN</span> PARAMETER = <span style=\"color: #ff0000;\">'Parameter1'</span> THEN PARAMETER <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #00C800;\">NULL</span> END <span style=\"color: #000000;\">&#41;</span> AS PARAMETER1,<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">CASE</span> <span style=\"color: #0000ff;\">WHEN</span> PARAMETER = <span style=\"color: #ff0000;\">'Parameter2'</span> THEN PARAMETER <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #00C800;\">NULL</span> END <span style=\"color: #000000;\">&#41;</span> AS PARAMETER2,<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">CASE</span> <span style=\"color: #0000ff;\">WHEN</span> PARAMETER = <span style=\"color: #ff0000;\">'Parameter3'</span> THEN PARAMETER <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #00C800;\">NULL</span> END <span style=\"color: #000000;\">&#41;</span> AS PARAMETER3,<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">CASE</span> <span style=\"color: #0000ff;\">WHEN</span> PARAMETER = <span style=\"color: #ff0000;\">'Parameter4'</span> THEN PARAMETER <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #00C800;\">NULL</span> END <span style=\"color: #000000;\">&#41;</span> AS PARAMETER4,<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">CASE</span> <span style=\"color: #0000ff;\">WHEN</span> PARAMETER = <span style=\"color: #ff0000;\">'Parameter5'</span> THEN PARAMETER <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #00C800;\">NULL</span> END <span style=\"color: #000000;\">&#41;</span> AS PARAMETER5,<br />&nbsp;.......... ETC ..........<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">CASE</span> <span style=\"color: #0000ff;\">WHEN</span> PARAMETER = <span style=\"color: #ff0000;\">'ParameterN'</span> THEN PARAMETER <span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #00C800;\">NULL</span> END <span style=\"color: #000000;\">&#41;</span> AS PARAMETERN<br /><span style=\"color: #0000ff;\">FROM</span> MYTABLE<br /><br />&nbsp;</div>[/code:2pprcih4]", "time": "13:21", "topic": "Advance SQL-query question", "username": "nageswaragunupudi" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Roa,\n\nThank you, it's working now <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "14:06", "topic": "Advance SQL-query question", "username": "Marc Vanzegbroeck" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Is pivot table working for you?", "time": "14:10", "topic": "Advance SQL-query question", "username": "nageswaragunupudi" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes it's working! Thank you very much!\n\nI use\n[code=fw:22fsu6dx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">SELECT</span> <span style=\"color: #0000ff;\">NAME</span>,<br /><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">max</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>PARAMETER = <span style=\"color: #ff0000;\">'Parameter1'</span>,VALUE,<span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> AS PARAMETER1,<br /><br /> .......... ETC ..........<br /><br /><span style=\"color: #0000ff;\">FROM</span> MYTABLE <span style=\"color: #0000ff;\">GROUP BY</span> <span style=\"color: #0000ff;\">name</span></div>[/code:22fsu6dx]\n\nThe case when doesn't work in MySQL", "time": "14:25", "topic": "Advance SQL-query question", "username": "Marc Vanzegbroeck" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "CASE works in MySql too.\nIt is not working in ADO for DBase and MsAccess only.", "time": "14:42", "topic": "Advance SQL-query question", "username": "nageswaragunupudi" } ]
Advance SQL-query question
[ { "date": "2015-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I have tried the query in HeidiSQL with MariaDB, and get an error. I will take a look at it again.", "time": "15:24", "topic": "Advance SQL-query question", "username": "Marc Vanzegbroeck" } ]
Advance SQL-query question
[ { "date": "2014-12-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Some have an AES algorith or Twofish encript or a smal sample ?\n see [url:1jp7maji]http&#58;//it&#46;wikipedia&#46;org/wiki/Advanced_Encryption_Standard[/url:1jp7maji]\n\nI found a sample on delphi but I cannot Know How converte it \n\n[url:1jp7maji]http&#58;//www&#46;example-code&#46;com/delphi/aes_stringEncryption&#46;asp[/url:1jp7maji]\n\n[code=fw:1jp7maji]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">procedure TForm1.Button1Click<span style=\"color: #000000;\">&#40;</span>Sender: <span style=\"color: #000000;\">TObject</span><span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #0000ff;\">var</span><br />crypt: <span style=\"color: #000000;\">TChilkatCrypt2</span>;<br />success: <span style=\"color: #000000;\">Integer</span>;<br />password: <span style=\"color: #000000;\">String</span>;<br />hexKey: <span style=\"color: #000000;\">String</span>;<br /><span style=\"color: #0000ff;\">text</span>: <span style=\"color: #000000;\">String</span>;<br />encText: <span style=\"color: #000000;\">String</span>;<br />decryptedText: <span style=\"color: #000000;\">String</span>;<br /><br />begin<br />crypt := TChilkatCrypt2.Create<span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">Self</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />success := crypt.UnlockComponent<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Anything for 30-day trial'</span><span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span>success <> <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> then<br />  begin<br />    ShowMessage<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Crypt component unlock failed'</span><span style=\"color: #000000;\">&#41;</span>;<br />    Exit;<br />  end;<br /><br />password := <span style=\"color: #ff0000;\">'secretPassPhrase'</span>;<br /><br />crypt.CryptAlgorithm := <span style=\"color: #ff0000;\">'aes'</span>;<br />crypt.CipherMode := <span style=\"color: #ff0000;\">'cbc'</span>;<br />crypt.KeyLength := <span style=\"color: #000000;\">128</span>;<br /><br /><span style=\"color: #B900B9;\">//  Generate a binary secret key from a password string</span><br /><span style=\"color: #B900B9;\">//  of any length.  For 128-bit encryption, GenEncodedSecretKey</span><br /><span style=\"color: #B900B9;\">//  generates the MD5 hash of the password and returns it</span><br /><span style=\"color: #B900B9;\">//  in the encoded form requested.  The 2nd param can be</span><br /><span style=\"color: #B900B9;\">//  \"hex\", \"base64\", \"url\", \"quoted-printable\", etc.</span><br />hexKey := crypt.GenEncodedSecretKey<span style=\"color: #000000;\">&#40;</span>password,<span style=\"color: #ff0000;\">'hex'</span><span style=\"color: #000000;\">&#41;</span>;<br />crypt.SetEncodedKey<span style=\"color: #000000;\">&#40;</span>hexKey,<span style=\"color: #ff0000;\">'hex'</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />crypt.EncodingMode := <span style=\"color: #ff0000;\">'base64'</span>;<br /><span style=\"color: #0000ff;\">text</span> := <span style=\"color: #ff0000;\">'The quick brown fox jumped over the lazy dog.'</span>;<br /><br /><span style=\"color: #B900B9;\">//  Encrypt a string and return the binary encrypted data</span><br /><span style=\"color: #B900B9;\">//  in a base-64 encoded string.</span><br />encText := crypt.EncryptStringENC<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">text</span><span style=\"color: #000000;\">&#41;</span>;<br /><br />Memo1.Lines.Add<span style=\"color: #000000;\">&#40;</span>encText<span style=\"color: #000000;\">&#41;</span>;<br /><br /><span style=\"color: #B900B9;\">//  Decrypt and show the original string:</span><br />decryptedText := crypt.DecryptStringENC<span style=\"color: #000000;\">&#40;</span>encText<span style=\"color: #000000;\">&#41;</span>;<br /><br />Memo1.Lines.Add<span style=\"color: #000000;\">&#40;</span>decryptedText<span style=\"color: #000000;\">&#41;</span>;<br />end;</div>[/code:1jp7maji]\n\n\n\nI found also a javascript complete source \n[url:1jp7maji]http&#58;//home&#46;versatel&#46;nl/MAvanEverdingen/Code/[/url:1jp7maji]\n\nto encript on RC4, AES, Serpent, Twofish, Caesar and RSA ciphers.", "time": "09:12", "topic": "Advanced Encryption Standard", "username": "Silvio.Falconi" } ]
Advanced Encryption Standard
[ { "date": "2014-12-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Silvio,\n\nLuiz Rafael Culik Guimaraes has AES function for xHarbour code in C.\n\n[url:w5lmas8s]https&#58;//groups&#46;google&#46;com/forum/#!topic/comp&#46;lang&#46;xharbour/DXDjjakdt8c[/url:w5lmas8s]\n\nRegards", "time": "13:23", "topic": "Advanced Encryption Standard", "username": "Baxajaun" } ]
Advanced Encryption Standard
[ { "date": "2014-12-11", "forum": "FiveWin for Harbour/xHarbour", "text": "thanks\nI sent message to luiz but I not had any messages", "time": "18:28", "topic": "Advanced Encryption Standard", "username": "Silvio.Falconi" } ]
Advanced Encryption Standard
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos. Pretendo usar el advantage como server remoto y las dbf usan ntx, ¿funciona con ntx o tengo que pasar a cdx? Gracias.\n\nJorge Jaurena", "time": "13:01", "topic": "Advantage", "username": "Jorge Jaurena" } ]
Advantage
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Jorge,\nUna de las grande ventajas de usar Advantage es cambiar de archivos DBF a ADT y por supuesto cambiar de indices NTX a ADI.\nTodo esto es bien facil de hacer con minimos cambios a tus programas.\n\nSi decides hacer el cambio a ADS te recomiendo el libro en el siguiente enlace:\n[url:3fvznvvx]http&#58;//www&#46;amazon&#46;com/Advantage-Database-Server-Developers-Edition/dp/1453769978/ref=pd_sim_b_1?ie=UTF8&refRID=08S28MWCAV196841ND2E[/url:3fvznvvx]\n\nSaludos,\n\nGeorge", "time": "13:22", "topic": "Advantage", "username": "George" } ]
Advantage
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "jorge\n\nyo utilizo dbf e idx \ncon la encriptacion de ads que es fantastica\n\nlos ntx no te permiten usar los scope que son rapidisimos\n\n/*\n\n********************\n* Llamar al RDD *\n********************\nREQUEST _ADS\n\n*************************************************\n* Definir el RDDADS como predeterminado *\n*************************************************\nRddSetDefault(\"ADS\")\n\n**********************************************************************************************\n* Establecer el tipo de servidor, ADS detecta cual es mejor tipo de servidor disponible y\n* se conecta automaticamente a el\n* 1 - Local\n* 2 - Remoto\n* 3 - Local ó remoto\n* 4 - Internet\n* 5 - Internet ó local\n* 6 - Remoto ó Internet\n* 7 - Local ó Remoto ó Internet\n***********************************************************************************************\nAdsSetServerType(7)\n\n**********************************************************************\n*Establecer el tipo de ficheros de datos que queremos trabajar *\n* 1 - DBF - NTX - DBT\n* 2 - DBF - CDX - FPT\n* 3 - ADI - ADT - ADM\n***********************************************************************\nAdsSetFileType(2)\n*/", "time": "18:53", "topic": "Advantage", "username": "postinelli" } ]
Advantage
[ { "date": "2010-04-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Good evening.\nI've downloaded the beta release of Advantage 10 32 bit and installed on Xp 32 bit. Everything is working correctly and very fast.\nI'm trying to make the same test with the 64 bit version, of Xp and Advantage server. But I'm not able to connect with the database.\nIs there a different dll for connecting with Advantage Server 64 ?", "time": "16:58", "topic": "Advantage 64 bit and Xp 64 bit", "username": "Massimo Linossi" } ]
Advantage 64 bit and Xp 64 bit
[ { "date": "2007-11-30", "forum": "FiveWin for Pocket PC", "text": "Can I use ads local and server with fivewin for pocket pc.", "time": "17:42", "topic": "Advantage Data Base Server", "username": "Mike Buckler" } ]
Advantage Data Base Server
[ { "date": "2007-11-30", "forum": "FiveWin for Pocket PC", "text": "Mike,\n\nAs far as we know there is no an Advantage DLL for Pocket PC.\n\nYou may ask Advantage tech support to confirm it, thanks", "time": "18:24", "topic": "Advantage Data Base Server", "username": "Antonio Linares" } ]
Advantage Data Base Server
[ { "date": "2008-02-22", "forum": "FiveWin for Pocket PC", "text": "Hi Mike,\n\nWere you able to find ADS drivers for PocketPC? If so, can you tell me where you got the drivers?\n\nThank you,", "time": "05:19", "topic": "Advantage Data Base Server", "username": "cdmmaui" } ]
Advantage Data Base Server
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día a la comunicad.\n\nDeseo saber como puedo abrir la base de datos con advantage via ADO ya baje el odbc incluso el OLE Provider, lo único cual sería el string para realizar la conexión.\n\nSaludos.\nArturo.\nMéxico", "time": "17:08", "topic": "Advantage Data Server con ADO", "username": "arturo_cervantes" } ]
Advantage Data Server con ADO
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "oConexionAdo:Open(\"Provider=Advantage.OLEDB.1;User ID=adssys;Data Source=diccionario.add;Persist Security Info=False;ServerType=ADS_REMOTE_SERVER;LockMode=ADS_COMPATIBLE_LOCKING\") \n\nsaludos", "time": "20:30", "topic": "Advantage Data Server con ADO", "username": "alex_cyr" } ]
Advantage Data Server con ADO
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Y sabras de que forma se puede hacer mediante ODBC igual con ADO.\n\nSaludos", "time": "22:13", "topic": "Advantage Data Server con ADO", "username": "arturo_cervantes" } ]
Advantage Data Server con ADO
[ { "date": "2007-11-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos.\n\nSabrás como puedo solucionar el siguiente error?\n\nError ador.recordset/9 El proveedor actual no admite la interfaz necesaria para la funcionalidad Índice.: SEEK\n\nEl código que tengo es el siguiente:\n\noDatos:LockType \t\t := 4 //adLockOptimistic = 3, adReadOnly = 1\n oDatos:CursorLocation := 3 //adUseServer = 2 , adUseClient = 3\n oDatos:CursorType \t := 2 //adOpenKeyset = 1\n oDatos:Source:=cComando\n oDatos:ActiveConnection(oCon)\n oDatos:Open()\n oDatos:Sort := \"Nom_Prod DESC\"\n oDatos:Seek(\"RESISTENCIAS\", 1)\n\nAgradecere tu ayuda.", "time": "23:17", "topic": "Advantage Data Server con ADO", "username": "arturo_cervantes" } ]
Advantage Data Server con ADO
[ { "date": "2007-11-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Para el tema de connections string tanto via ole db como odbc, puedes mirar esta entrada de mi blog ( [url:17nz3fpc]http&#58;//bielsys&#46;blogspot&#46;com/2007/11/ado-connectionstring&#46;html[/url:17nz3fpc] ). \nCon referencia a lo del seek, no sabria decirte, pues no utilizo el metodo seek, ni el motor ADS. En este link pone algo de documentación de como usar seek con ADO [url:17nz3fpc]http&#58;//support&#46;microsoft&#46;com/kb/287638/es[/url:17nz3fpc].\n\nSuponiendo que fuera una limitación del motor de base de datos, otra alternativa sin indice seria con el metodo FIND.\n[code:17nz3fpc]\noRs&#58;Find&#40; \"Campo LIKE '\"+cBuscar,,1&#41;\n[/code:17nz3fpc]", "time": "09:42", "topic": "Advantage Data Server con ADO", "username": "Biel EA6DD" } ]
Advantage Data Server con ADO
[ { "date": "2022-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "For years I have had my clients using Advantage Database Server with good success, even though it can be expensive.\n\nI recently had some limited communication with them, and they are now non-responsive.\n\nI used to get files and info from devzone.advantagedata.com but today it seems to be down.\n\nIt appears the last version published had a codeset from 2015.\n\nWith little or no communication, little or no updates for nearly 7 years, and now server problems ( ? ), is this product being phased out ? Does anyone have current information on it ?\n\nIf it is not going to be around, then what alternatives ( with DBF ) are people finding for client server operations ?\n\nI realize this may be the stimulus to moving the program to SQL, and I'm looking at that with the least disruption possible, but for now I'm wondering about continuing with DBF in a network setting. No, Remote Desktop is NOT a viable option.", "time": "02:44", "topic": "Advantage Database Server", "username": "TimStone" } ]
Advantage Database Server
[ { "date": "2022-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nas i know SAP have cancel ADS last Year but you still can get Suppourt and Updates\n\nin German you can buy ADS with -25% off at TOBAX Software until 2025 (see here)\n[url:226x64iy]https&#58;//www&#46;xbaseforum&#46;de/viewtopic&#46;php?f=42&t=12118&p=140151[/url:226x64iy]\n\nas many Xbase++ User work with ADS you also can ask in German Xbase++ Forum\n\"Nightcrawler\" (ADS) and \"Marcus Herz\" (TOBAX) are User of that Forum", "time": "05:00", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2022-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Jimmy,\n\nYou are one of the database experts I know who is familiar with the various databases.\n\nMay I ask you to look through this document from 2012 (10 years old) in the light of the new possibilities with mod harbour developments and, if necessary, supplement it.\n\n[b:386vg0yx]I mean primarily regarding the fact that with mod harbour the DBF files are only opened briefly and nothing is transmitted over the network.[/b:386vg0yx] \n\nBest regards,\nOtto\n\n************************************\n\n\nYou are aware of the limitations of DBFCDX in multi-user environment. They are required to provide applications to be used by more clients and also over internet. That is the reason to seek alternatives.\n\n[i:386vg0yx]mod harbour changed the situation as you use \"not over the internet\" but like on a local system.\n\nUp to 5/6 users, DBFCDX is okay. Actually, this limit depends on how data intensive and how large are the data tables.\n\nmod harbour\nAs you open and close the DBF files it is practical, not possible - also you have many users on your system - that at the same time you have opened one and the same DBF file from many users simultaneously.[/i:386vg0yx]\n\n\n\nIn my view this should not affect XYProgram because the size of DBFs is small and most importantly you are relying more on remote desktop. Performance penalties are very minimum. DBFCDX should serve the purpose with adequate dependability.\n\nQuick review of other alternatives:\n\n1. ADS. This is costly. Some of our developers are taking ADS partnership and selling ADS along with their application. They get price of application as well as margin from ADS for sale of ADS products.\n\n PROS: Rock solid. No index maintenance is needed. Takes full advantage of both ISAM (for browses) and porting legacy code and at the same time SQL of RDMS with the great power for complex queries. Calculations are done on the server and only summary comes to server reducing network traffic and also highly improves speeds.\n Free from the limitations of DBFCDX, importantly size. Better performance with more concurrent users and larger tables.\n CONS: Cost\n Porting problems from legacy code ( few but there are issues)\n To take full advantage of SQL we need to recode.\n\n2. SQL/RDMS like MySql or its replacements\n PROS: FREE\n Rock solid databases and limited or no maintenance like ADS\n Good performance with unlimited concurrent connections and with very large tables\n Advantage of using SQL for complex queries / jobs\n CONS Time taken to port the legacy code\n Change from RDD kind of programming\n\nOpinion:\nConverting xyProgram to any other RDBMS is now a very big task. Conversion times will be very high/\nConversion to ADS is less time-consuming, but it COSTS more to your clients and the benefits may not worth the effort and price.\n\nAs it is DBFCDX appears to be quite adequate for the purpose.", "time": "08:30", "topic": "Advantage Database Server", "username": "Otto" } ]
Advantage Database Server
[ { "date": "2022-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nADS is perfect for my clients who need it. I have some using 20 workstations with almost instant speed and it never has issues. \n\nSome of my clients run smaller operations ( 2 or 3 workstations ) and they are fine with Peer to Peer, estpecally with the current fast computers and networks.\n\nMy concern is that ADS is owned by SAP, which is a company driven by profits, and it appears they are fading it out. I am a \"partner\" so I can buy directly from them. However, I can't get the new \"person responsible for the product\" to even respond to my emails.\n\nI'm not concerned about new clients. I just want to be able to expand user counts for licenses, etc. I have the tools to do this online, but have hesitations asking my clients to pay for something that may not be supported at all in the future.\n\nMany additions have been made to the tDatabase class, and some of that addresses SQL. I am focusing on that and have already used some of the functionality to automatically build the SQL file, and import my data from .DBF. I am hopeful that I can create some modifications to my existing product to make the transition simpler.\n\nI am not looking forward to transitioning all of my clients to SQL, but I'm confident I can do it.\n\nOf course, it would be nice if SAP would simply put their \"discontinued\" product out in the public domain and eliminate the licensse cost. Sadly, some just won't do that hoping for the rare sales which allow them to make money off of legacy code that comes with no support or fixes.\n\nAs I've said before, Remote Desktop is not an option, nor is mod_harbour. One of my clients just had his internet upgraded, and he now has download speeds of 35 mbps. That is not practical when using 5 workstations with a complex data entry program that handles perhaps thousands of fields of data every hour. So it must be a site based server system.", "time": "18:36", "topic": "Advantage Database Server", "username": "TimStone" } ]
Advantage Database Server
[ { "date": "2022-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\nTim, I understand.\n\nIt's just double-edged.\n\nFor the moment, when you are not in competition with other software providers, a desktop program fits.\n\nBut as soon as you have to face the competition, you lose.\nAnd that's bitter because then you have nothing to fight against.\nReally, nothing. \n\nWhen you realize that, you want to be on the web.\nIf you have no experience as a web developer, then the only realistically possible solution is mod harbour. \nHere you know the backend and have no learning effort.\nBut also this way takes some time.\n\nBut if so few of us actively participate and help now, it will be difficult.\n\nWaiting, closing your eyes, demanding that this and that is needed before you start are the worst possible advisors.\n\nBest regards,\nOtto", "time": "19:41", "topic": "Advantage Database Server", "username": "Otto" } ]
Advantage Database Server
[ { "date": "2022-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nI started this work 40 years ago ( 1982 ). I'm now 75. How many more years do you think I need to prepare to program ?\n\nThere are people out there who still use the DOS version of my application I wrote prior to the year 2000. There are others who continue to stay current and they do well with what I now offer.\n\nYou and I also have very different data needs. You can do much with smaller amounts of data for each transaction, but I cannot. You esist in Europe with excellent internet connectivity and speeds. Many of my clients can't get that quality at any price, so they need a local server based system.\n\nCompetitors exist, and they may do a lot of business, but they are not taking away my clients. I am very happy with my current client base size, and I'm not trying to increase that now. My clients have even called and asked that I not retire because they value the service I provide.\n\nI am considering another project, and I just might write it for the web. However, I would use SQL and the more popular web development software options so others could take it over in the future. My mind will not always be able to do programming, so I must consider the future of my clients. How many younger programmers starting out are working with xbase development of new projects and with mod_harbour ? Perhaps some who are expanding on legacy code, but a new programmer coming out of university is far more likely to use other resources like Python ( which is currently ranked #1 in popularity ) or others that are pretty universal.\n\nSo, you may be very wise with the path you are taking, for your circumstances, but it simply doesn't fit in mine. I think the most imortant focus for me is to convert the data handling to SQL ... which is a large project but certainly possible.\n\nTim", "time": "00:34", "topic": "Advantage Database Server", "username": "TimStone" } ]
Advantage Database Server
[ { "date": "2022-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\nI understand.\n\nBut not going to web with mod harbour is missing so much joy.\n\nHaving your own web server and being able to do everything that is possible today.\n\nWith mod harbour practically everything remains as it was with Fivewin.\n\nAt the backend you have harbour and at the frontend you use a WYSIWYG HTML editor instead of Resource Workshop.\nIt's fun again.\n\nBest regards,\nOtto\n\nMy daughters and me on the team table - I am missing on the photo as I took it.\n\n\n[img:1o3z0el4]https&#58;//mybergland&#46;com/fwforum/teamtisch&#46;jpg[/img:1o3z0el4]", "time": "08:37", "topic": "Advantage Database Server", "username": "Otto" } ]
Advantage Database Server
[ { "date": "2022-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Tim,\n\nBesides Otto's great advise, I would suggest you using MariaDB. Mr. Rao has fine tuned FWH for many years to work smoothly with it.\n\nMariaDB is free, a great community supporting it and surely with Mr. Rao and others great support here, you may do the transition from DBFs to MariaDB really easy <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:01", "topic": "Advantage Database Server", "username": "Antonio Linares" } ]
Advantage Database Server
[ { "date": "2022-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Tim,\n\nI can guarantee that Master Rao is great support for FWH/MariaDb. I use xHB/FWH/ADS/R&R for more 15 years. Today I move to xHB/FWH/MariaDB/CrystalReport by Master Rao help. I'm success transform from ADS to MariaDb for years. I can confirm you that, it will be fine.", "time": "16:06", "topic": "Advantage Database Server", "username": "dutch" } ]
Advantage Database Server
[ { "date": "2022-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I have used ADS for many years, but some years ago I have moved all my programs to MySql and also can guarantee - FWH/MySql and Mr Rao support are great !!!", "time": "21:55", "topic": "Advantage Database Server", "username": "vilian" } ]
Advantage Database Server
[ { "date": "2022-01-16", "forum": "FiveWin for Harbour/xHarbour", "text": "I have many notes from Mr. Rao and I am adapting to use MySQL. This is a very large product and I was comfortable keeping it with the .DBF files for those customers who continue to use it. However, it may be wise to spend the time making the transition. I have already started some of the work.\n\nI mainly was trying to see what people knew about the current status of ADS. The representative is just ignoring my questions and not responding to my emails.", "time": "04:51", "topic": "Advantage Database Server", "username": "TimStone" } ]
Advantage Database Server
[ { "date": "2022-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim\n\nJust curious why you don't choose Sql Server and or MS Access .. the same ADO code applies to both databases ... only the connection strings change .. I use MS Access for local installs and Sql Server for larger Corporate installs .. AGAIN .. the code doesn't change just the connection string .. .\n\nRick Lipkin", "time": "16:21", "topic": "Advantage Database Server", "username": "Rick Lipkin" } ]
Advantage Database Server
[ { "date": "2022-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello everybody.\nI work with ads since 2004/2005, in 2008 I started working with data dictionary using ADT. I have systems for registries where the data reaches 60gb because of the Blob/Binary fields that have PDF, Doc, Jpg files and others. Source codes currently use 80% SQL and we shouldn't underestimate the standard commands. For this mix I created tAds, to work object-oriented. Tables or scripts in sql are all object-classified. I also worry about the Ads updates that are not happening. But if I look at Ads features these days, I don't think I even know 50% of them. And I think that Ads even frozen will endure years yet.\n\nIf anyone wants to see the tAds class enter here:\n\n[url:3v2fy4m5]https&#58;//github&#46;com/giovanyvecchi/tAdsGit&#46;git[/url:3v2fy4m5]", "time": "02:44", "topic": "Advantage Database Server", "username": "Giovany Vecchi" } ]
Advantage Database Server
[ { "date": "2022-01-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Giovany,\n\nI have my application setup to run either .DBF, or .ADT. That works just fine.\n\nHere is my concern. I am a reseller of ADS, so I have access to the ordering and updating system. However, if I obtain an upgraded user license for a client, I am selling software that has absolutely no support other than what I can provide.\n\nA few years ago, Microsoft made a change to the OS, and we all had to scramble for a work around. ADS finally found a way to access the server in the ADS.INI file specifying the static IP. What happens if Microsoft pulls another surprise, and we have no ADS support to resolve the problem. Suddenly the investment of all our clients is dead, and they have to go back to local mode. Since some have up to 20 workstations constantly working against the server, that is just not good.\n\nI have reached out to my rep, but she turned me over to a new person who is in charge of ADS. He won't even respond to my questions and emails. That gives me great concern. I feel I have no choice now but to make a switch for the future. My product is solid, and has no issues. It is also very large, and all features are heavily integrated. This will be a big undertaking. It would be easier if I could simply trust ADS, so that is why I've been asking about this.\n\nTim", "time": "03:30", "topic": "Advantage Database Server", "username": "TimStone" } ]
Advantage Database Server
[ { "date": "2022-01-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Tim,\n\nI can still access to generate ADS license now. What is your problem?\n[url:2r5z9csa]https&#58;//devzone&#46;advantagedatabase&#46;com/rvc/login&#46;aspx[/url:2r5z9csa]", "time": "08:55", "topic": "Advantage Database Server", "username": "dutch" } ]
Advantage Database Server
[ { "date": "2022-01-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Dutch,\n\nYes I can access to generate a license, or increase the number of users. However, is it fair to sell something to my clients that is no longer supported, and has no development team to respond to changes in the Windows OS that Microsoft may initiate ?\n\nIt has happened before when they had support staff, and Microsoft networking could easily change once again in a future Windows update. Then the money people spent for ADS would be wasted, and they would be immediately inoperable ( except in peer to peer mode ).\n\nIf my rep responded to the questions I would be more comfortable, but to simply ignore my repeated emails suggests they are not actively involved, and that is not fair to my clients.\n\nIt is not about those who are running ADS now and will not need to expand. It's about those who need to spend money now to buy an initial license, or to expand a license. Is it fair to sell them something that could timeout in a year or two ?\n\nTim", "time": "20:31", "topic": "Advantage Database Server", "username": "TimStone" } ]
Advantage Database Server
[ { "date": "2022-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Tim,\n\nI got your point now. Because I use ADS V.9 and don't update new version. I can handle this version without upgrade need until now.\n[quote=\"TimStone\":141zjwkz]Dutch,\n\nYes I can access to generate a license, or increase the number of users. However, is it fair to sell something to my clients that is no longer supported, and has no development team to respond to changes in the Windows OS that Microsoft may initiate ?\n\nIt has happened before when they had support staff, and Microsoft networking could easily change once again in a future Windows update. Then the money people spent for ADS would be wasted, and they would be immediately inoperable ( except in peer to peer mode ).\n\nIf my rep responded to the questions I would be more comfortable, but to simply ignore my repeated emails suggests they are not actively involved, and that is not fair to my clients.\n\nIt is not about those who are running ADS now and will not need to expand. It's about those who need to spend money now to buy an initial license, or to expand a license. Is it fair to sell them something that could timeout in a year or two ?\n\nTim[/quote:141zjwkz]", "time": "09:49", "topic": "Advantage Database Server", "username": "dutch" } ]
Advantage Database Server
[ { "date": "2022-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Sad Sad news\nin my case I use ADS server for several years my product are 100% ADS server and we are satisfy with ADS SERVER \nwe have instalations with ads 7, 8, 9, 10, 11, 12 SERVER on windows 2008, 2012, 2016, 2019 servers great product !!\nIt seems soon or later my bussines will gone, too much extensive and complex to trying to move to SQL !!\nIn our situation are hundreds of programers !!\nWe need a producto like sqlrdd to conversion to SQL and in the future take parts of the code and passing to SQL with optimizing queries\nsomeone Know such type of product ?\nExcuseme my bad English \nwe probably would be a group of programers to pay such development to a team or Core programers , we realy need this !!\nNOTE : WE ONLY USE Free tables and driver ADSNTX ( no need more ever )", "time": "15:23", "topic": "Advantage Database Server", "username": "wilsongamboa" } ]
Advantage Database Server
[ { "date": "2022-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Anyone tried ADORDD ?\nIt is the only way to go to SQL keeping exactly the same code.", "time": "16:40", "topic": "Advantage Database Server", "username": "AHF" } ]
Advantage Database Server
[ { "date": "2022-01-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio we need this but never tried\nregards \nWilson", "time": "19:14", "topic": "Advantage Database Server", "username": "wilsongamboa" } ]
Advantage Database Server
[ { "date": "2022-01-21", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nthere are RDD for MySQL and PostgreSQL but it need OOP Syntax is like using a Db-Server or ADO.\n\nAlaska have made PgDBE to \"simulate\" ISAM Style like SKIP or GOTO ... SEEK\nthey want to use it instead of ADS <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\nbut PgDBE Concept of \"Index\" is very strange as it use \"internal\" FIELD(s) to hold Value of IndexKey()\nso when \"edit\" a Record you need to update \"internal\" Index FIELD(s) (done only with PgDBE)\n\n---\n\nADS can be used with xBase ISAM Syntax. for SQL you need a CLASS to \"simulate\" ISAM Style.\n\ni \"think\" we need a *.CH to \"translate\" xBase Command to OOP-Syntax\n[code=fw:1hmulpts]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#command  SKIP               =>  o:<span style=\"color: #000000;\">SQLSkip</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />#command  SKIP <n>           =>  o:<span style=\"color: #000000;\">SQLSkip</span><span style=\"color: #000000;\">&#40;</span><n><span style=\"color: #000000;\">&#41;</span></div>[/code:1hmulpts]\n\nthan we write a CLASS and[code=fw:1hmulpts]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Method</span> SQLSkip<span style=\"color: #000000;\">&#40;</span>nRec<span style=\"color: #000000;\">&#41;</span> </div>[/code:1hmulpts]\ni do have a Xbase++ CLASS but not made a *.CH\ni´m working on a harbour CLASS using CLASS TPQServer ( \\HARBOUR\\contrib\\hbpgsql\\ ) for PostgreSQL\n\n---\n\nhave work with MySQL and PostgreSQL under Xbase++\nbut as Xbase++ goes PostgreSQL i have build my Xbase++ App with LibPQ.DLL (using Ot4XB LIB)\n\ni use Concept of \"OFFSET\" and \"LIMIT\" and have a \n[code=fw:1hmulpts]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> JimBrowse:<span style=\"color: #000000;\">NextCursor</span><span style=\"color: #000000;\">&#40;</span> cTable, cField, cWhere, cOrder, cLimit, cOffset <span style=\"color: #000000;\">&#41;</span><br />   ...<br />   cVar1 := <span style=\"color: #ff0000;\">\"BEGIN WORK;\"</span><br /><br />   <span style=\"color: #00C800;\">IF</span> SP_nVersion<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">9</span><br />      cVar2 := <span style=\"color: #ff0000;\">\"DECLARE MyCursor CURSOR FOR SELECT \"</span> + cField + ;<br />               <span style=\"color: #ff0000;\">\" FROM \"</span> + cTable + ;<br />               <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> EMPTY<span style=\"color: #000000;\">&#40;</span> cWhere <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\" WHERE \"</span> + cWhere <span style=\"color: #000000;\">&#41;</span> + ;<br />               <span style=\"color: #ff0000;\">\" ORDER BY \"</span> + cOrder<br />   <span style=\"color: #00C800;\">ELSE</span><br />      cVar2 := <span style=\"color: #ff0000;\">\"DECLARE MyCursor CURSOR FOR SELECT \"</span> + cField + ;<br />               <span style=\"color: #ff0000;\">\", row_number() OVER (ORDER BY \"</span> + cOrder + <span style=\"color: #ff0000;\">\")\"</span> + ;<br />               <span style=\"color: #ff0000;\">\" FROM \"</span> + cTable + ;<br />               <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span> EMPTY<span style=\"color: #000000;\">&#40;</span> cWhere <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\" WHERE \"</span> + cWhere <span style=\"color: #000000;\">&#41;</span> + ;<br />               <span style=\"color: #ff0000;\">\" ORDER BY \"</span> + cOrder<br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br />   cVar3 := <span style=\"color: #ff0000;\">\"MOVE  FORWARD \"</span> + cOffset + <span style=\"color: #ff0000;\">\" IN MyCursor\"</span><br />   cVar4 := <span style=\"color: #ff0000;\">\"FETCH FORWARD \"</span> + cLimit + <span style=\"color: #ff0000;\">\" FROM MyCursor\"</span><br />   cVar5 := <span style=\"color: #ff0000;\">\"CLOSE MyCursor;\"</span><br />   cVar6 := <span style=\"color: #ff0000;\">\"COMMIT WORK;\"</span><br /><br />   StartStop<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"START\"</span> <span style=\"color: #000000;\">&#41;</span><br />   ::<span style=\"color: #000000;\">oPG</span>:<span style=\"color: #000000;\">exec</span><span style=\"color: #000000;\">&#40;</span> cVar1 <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1hmulpts]\nMethod use \"Cursor\"\nyou need to \"exec\" each \"cVar\" before successful \"Transaction\" was written.\n\n! Note : need PostgreSQL Server > 8 for row_number()\n\nrow_number() will create a \"extra\" Column in Result-Set which is like OrdKeyNo()\nthis is useful when want to \"SKIP\" (in Order) in SQL Table\nif \"nSkip\" is > FIELD row_number() it need call o:NextCursor()\n\ni \"think\" i can \"translate\" my Xbase++ CLASS Code into harbour CLASS Syntax\nas it need no (GUI/Console) \"Output\" it might be used with every Constribution / Distribution\n\np.s. will need help to \"translate\" Xbase++ Syntax to harbour (still Newbie under harbour)\nwho use PostgreSQL with harbour ?", "time": "08:55", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2022-01-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Jimmy,\n\nCarles Aubia (Charly) implemented a free and open source ORM for Harbour where you could include your code and take advantage of this great work already done:\n\n[url:2l89szll]https&#58;//github&#46;com/carles9000/wdo[/url:2l89szll]\n\nDear Mr. Rao databases great expertise has not landed on mod_harbour yet, so it can only be used within FWH for now <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:23", "topic": "Advantage Database Server", "username": "Antonio Linares" } ]
Advantage Database Server
[ { "date": "2022-01-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Wow, thx for link\nas i say i´m still Newbie under harbour", "time": "15:08", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2022-01-22", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nhave test WDO but at lease 3 \"missing\" Function\n[quote:3ark030z]hbmk2: Error: Referenced, missing, but unknown function(s): VALTOCHAR(),\n PTRTOSTR(), PTRTOUI()[/quote:3ark030z]where does those Function come from <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "16:55", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2022-01-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Jimmy,\n\nWDO was dessigned for modharbour. You can try create dummy functions\n\nFunction ptrtostr(); retu \"\"\n\nFunction ptrtoui(); retu \"\"", "time": "19:13", "topic": "Advantage Database Server", "username": "Carles" } ]
Advantage Database Server
[ { "date": "2022-01-22", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nthx for Answer\n\n[quote:152s7h3p]WDO was dessigned for modharbour. [/quote:152s7h3p]forgot it <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\nVALTOCHAR() was easy to replace\n[code=fw:152s7h3p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> VALTOCHAR<span style=\"color: #000000;\">&#40;</span> cIn <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> cOut := hb_valToExp<span style=\"color: #000000;\">&#40;</span> cIn <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> STRTRAN<span style=\"color: #000000;\">&#40;</span> cOut, <span style=\"color: #ff0000;\">'\"'</span>, <span style=\"color: #ff0000;\">''</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:152s7h3p]\n\n[quote:152s7h3p]You can try create dummy functions[/quote:152s7h3p]\nPTRTOSTR(), PTRTOUI() seems me Pointer Function but i can´t find out how they work <!-- s:| --><img src=\"{SMILIES_PATH}/icon_neutral.gif\" alt=\":|\" title=\"Neutral\" /><!-- s:| --> \n\n[code=fw:152s7h3p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> LoadStruct<span style=\"color: #000000;\">&#40;</span> hRes <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> RDBMS_PG<br /><span style=\"color: #00C800;\">LOCAL</span> n, hField<br />    ::<span style=\"color: #000000;\">aFields</span> = Array<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">FCount</span><span style=\"color: #000000;\">&#40;</span> hRes <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">FOR</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aFields</span> <span style=\"color: #000000;\">&#41;</span><br />        hField := ::<span style=\"color: #000000;\">PG_fetch_field</span><span style=\"color: #000000;\">&#40;</span> hRes <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">if</span> hField != <span style=\"color: #000000;\">0</span><br />           ::<span style=\"color: #000000;\">aFields</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = Array<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br />           ::<span style=\"color: #000000;\">aFields</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> = PtrToStr<span style=\"color: #000000;\">&#40;</span> hField, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />               <span style=\"color: #00C800;\">case</span> AScan<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">254</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">&#125;</span>, PtrToUI<span style=\"color: #000000;\">&#40;</span> hField, hb_SysMyTypePos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span><br />                    ::<span style=\"color: #000000;\">aFields</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #ff0000;\">\"C\"</span><br />               <span style=\"color: #00C800;\">case</span> AScan<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">246</span> <span style=\"color: #000000;\">&#125;</span>, PtrToUI<span style=\"color: #000000;\">&#40;</span> hField, hb_SysMyTypePos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span><br />                    ::<span style=\"color: #000000;\">aFields</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #ff0000;\">\"N\"</span><br />               <span style=\"color: #00C800;\">case</span> AScan<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span>, PtrToUI<span style=\"color: #000000;\">&#40;</span> hField, hb_SysMyTypePos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span><br />                    ::<span style=\"color: #000000;\">aFields</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #ff0000;\">\"D\"</span><br />               <span style=\"color: #00C800;\">case</span> AScan<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">252</span> <span style=\"color: #000000;\">&#125;</span>, PtrToUI<span style=\"color: #000000;\">&#40;</span> hField, hb_SysMyTypePos<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span><br />                    ::<span style=\"color: #000000;\">aFields</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #ff0000;\">\"M\"</span><br />            <span style=\"color: #00C800;\">endcase</span><br />        <span style=\"color: #00C800;\">endif</span><br />   <span style=\"color: #00C800;\">NEXT</span><br />RETU <span style=\"color: #00C800;\">NIL</span></div>[/code:152s7h3p]", "time": "21:17", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2022-01-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Jimmy,\n\nFunctions are used in modharbour\n\n[code=fw:2690ee6w]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> PTRTOSTR <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />   #ifdef HB_ARCH_32BIT<br />      const char * * pStrs = <span style=\"color: #000000;\">&#40;</span> const char * * <span style=\"color: #000000;\">&#41;</span> hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;   <br />   #else<br />      const char * * pStrs = <span style=\"color: #000000;\">&#40;</span> const char * * <span style=\"color: #000000;\">&#41;</span> hb_parnll<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;   <br />   #endif<br /><br />   hb_retc<span style=\"color: #000000;\">&#40;</span> * <span style=\"color: #000000;\">&#40;</span> pStrs + hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> PTRTOUI <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />   #ifdef HB_ARCH_32BIT<br />      unsigned int * pNums = <span style=\"color: #000000;\">&#40;</span> unsigned int * <span style=\"color: #000000;\">&#41;</span> hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;   <br />   #else<br />      unsigned int * pNums = <span style=\"color: #000000;\">&#40;</span> unsigned int * <span style=\"color: #000000;\">&#41;</span> hb_parnll<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>;   <br />   #endif<br /><br />   hb_retnl<span style=\"color: #000000;\">&#40;</span> * <span style=\"color: #000000;\">&#40;</span> pNums + hb_parnl<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------//</span></div>[/code:2690ee6w]", "time": "07:32", "topic": "Advantage Database Server", "username": "Carles" } ]
Advantage Database Server
[ { "date": "2022-01-23", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Carles,\n[quote=\"Carles\":8tifrw7r]Functions are used in modharbour[/quote:8tifrw7r]\nthx for Code\ni will try to complete WDO Sample \"for Desktop\"", "time": "10:44", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2022-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nForgive me ... I do not think there is a ( conversion - dbf/cdx or advantage server ) magic pill ... I have been using ADO for about 15 years and I found it to be nicely Object Oriented with every method you need to manipulate just about any Sql Database ( ms access, ms Sql Server, Oracle ... etc ) \n\nRao has created a set of FW ado wrappers to make the syntax much easier .. look at AdoFuncs.Prg located in source\\function .. also there is a full MDI Ado example I wrote \\samples\\AdoRick.prg\n\nRick Lipkin", "time": "14:30", "topic": "Advantage Database Server", "username": "Rick Lipkin" } ]
Advantage Database Server
[ { "date": "2022-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "There is a magic solution and his name is ADORdd <!-- m --><a class=\"postlink\" href=\"https://github.com/AHFERREIRA/adordd\">https://github.com/AHFERREIRA/adordd</a><!-- m -->", "time": "17:05", "topic": "Advantage Database Server", "username": "hmpaquito" } ]
Advantage Database Server
[ { "date": "2022-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\nAlaska have create PgDBE for Xbase++ to emulate ISAM Style\n\nPeople want to use it instead of ADS while they \"think\" that Alaska found \"Wonder-Pile\"\ni have \"testdrive\" early Version of PgDBE and Concept seems \"interessing\" but what i got ...\n\nit have to do with xBase \"Index\" to use \"in\" SQL for ISAM Style \nAlaska did create a \"internal\" FIELD for each xBase \"Index\" in Data-Table so you will got a lot of Overhead. \nas Xbase++ is still using 1 x Core \"only\" PgDBE does not perform well ... <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \n\n---\n\nwhen use OOP Syntax it is \"easy\" to change to a \"other\" Back-end.\n\nin old Cl*pper Days i have used xBase Command like SKIP n\nwhen switch to OOP i also build my Server CLASS and access it with OOP Syntax o:Skip(n)\n\nfor xBase Command you need a RDD / DBE using ISAM Style\nfor OOP i need re-write Code to use a \"Db-CLASS\" which can use \"other\" Back-end\n\n---\n\ni have look into WDO Project for Mod_harbour and got RDBMS_PG.PRG compile now without Error.\nnow i can learn how to modify my \"native\" Xbase++ Code to use ADODB.Recordset.", "time": "20:04", "topic": "Advantage Database Server", "username": "Jimmy" } ]
Advantage Database Server
[ { "date": "2023-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Apparently this is a database engine developed by Alaska Software to emulate ISAM style functionality for xBase++. It looks like people are considering using PgDBE instead of ADS (Advantage Database Server), but they are having performance issues. You mentioned that PgDBE creates an internal field for each xBase index in the data table, which causes overhead. By the way it's interesting that government sites experience similar problems, but I haven't seen this on <!-- m --><a class=\"postlink\" href=\"https://drunkid.com/buy/hawaii-fake-id/\">https://drunkid.com/buy/hawaii-fake-id/</a><!-- m --> for issuing driver's licenses, it's the developers' choice to allow SQL-like operations on ISAM data. You noted that PgDBE does not run well on a single core, which may be a limitation of its design or the underlying system architecture. You noted that using object-oriented programming (OOP) syntax may make it easier to migrate to a different backend or database engine.", "time": "20:44", "topic": "Advantage Database Server", "username": "ferilmagic" } ]
Advantage Database Server
[ { "date": "2023-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Use Sqlrdd. Source is now available", "time": "10:27", "topic": "Advantage Database Server", "username": "mgsoft" } ]
Advantage Database Server
[ { "date": "2015-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I am currently using Advantage Database 10 via DBF/NTX files for my application. My very basic question is:\n\nWhat is the most simplistic method to allow another application (Visual C#) to query/modify/update some of the Advantage Data using SQL? Is it to simply create a Data Dictionary in Advantage to house my DBF/NTX files? at that point SQL can be used from an external app? or do the DBF/NTX files also need to be converted to ADT files?", "time": "19:19", "topic": "Advantage Database and SQL", "username": "Jay Hill" } ]
Advantage Database and SQL
[ { "date": "2015-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Jay;\n\nWhen the index files are not compounded indexes, as is the case with DBF/NTX, then you should create a data dictionary. Inside the data dictionary metadata is stored with information that relates any and all .ntx files to its .dbf files. Have the Visual basic, PHP, or any other ADS enabled client connect to the data dictionary and that is all. When tables are used from those other clients ADS will know the indexes associated to any DBF and will use them accordingly.\n\nI suggest you stop using DBFNTX RDD on your harbour app and instead use ADS RDD and set your default tables to ADS_NTX. You will probably have to reindex the first time you deploy your app using ADSNTX RDD but no other change is needed. The reason I suggest this is because there seems to be some subtle differences on the way these two RDDs maintain NTX indexes and mixing DBFNTX on some clients with ADS_NTX on other clients will surely cause index corruption.\n\nAs a side note; when I first started using ADS back in 2002, I continued using DBFNTX. My main application was a FWH + xharbour + bcc using ADS_NTX RDD. Other clients were PHP, Delphi and C++ Builder all using ADS ACE or TADS descendent classes. It worked so well it took me forever to invest the time to move to purely ADT tables.\n\nBelow is some code showing how to do a few tasks using ADS RDD that you might find helpful:\n[code=fw:28fbedd2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//By Reinaldo Crespo-Bazan <!-- e --><a href=\"mailto:--reinaldo.crespo@gmail.com\">--reinaldo.crespo@gmail.com</a><!-- e --></span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">//This (x)harbour console mode app shows how to create a few tables of different types.</span><br /><span style=\"color: #B900B9;\">//How to create an Advantage Data Dictionary and add the newly created </span><br /><span style=\"color: #B900B9;\">//tables the data dictionary file.</span><br /><span style=\"color: #B900B9;\">//I'm using various table types using ADS RDDs for DBF/NTX, DBF/VFP, ADT/ADI</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">//After that it atttempts to connect to the dd, create a new table and then </span><br /><span style=\"color: #B900B9;\">//open the new table as a free table.</span><br /><span style=\"color: #B900B9;\">//In short- it creates tables and dd, opens dd bound tables and free tables </span><br /><span style=\"color: #B900B9;\">//at the same time.</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">//The sample code uses pure rdds + some ACE calls.</span><br /><span style=\"color: #B900B9;\">//No GUI dependency as only a console mode app is being built, which should </span><br /><span style=\"color: #B900B9;\">//build just the same under Windows as well as under Linux. </span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ads.ch\"</span><br /><br />#xcommand <span style=\"color: #00C800;\">DEFAULT</span> <uVar1> := <uVal1> ;<br />                <span style=\"color: #000000;\">&#91;</span>, <uVarN> := <uValN> <span style=\"color: #000000;\">&#93;</span> => ;<br />                  <uVar1> := iif<span style=\"color: #000000;\">&#40;</span> <uVar1> == <span style=\"color: #00C800;\">nil</span>, <uVal1>, <uVar1> <span style=\"color: #000000;\">&#41;</span> ;;<br />                <span style=\"color: #000000;\">&#91;</span> <uVarN> := iif<span style=\"color: #000000;\">&#40;</span> <uVarN> == <span style=\"color: #00C800;\">nil</span>, <uValN>, <uVarN> <span style=\"color: #000000;\">&#41;</span>; <span style=\"color: #000000;\">&#93;</span><br /><br />REQUEST DBFCDX<br />REQUEST ADS          <span style=\"color: #B900B9;\">//Make sure rddads gets linked to our app.</span><br />REQUEST hb_gt_win    <span style=\"color: #B900B9;\">//needed for console mode app.</span><br /><br /><span style=\"color: #B900B9;\">//Static variable cPath will contain the path where tables and DD will be created.</span><br /><span style=\"color: #B900B9;\">//After connecting to an existing DD, there is no need to use the file path as the </span><br /><span style=\"color: #B900B9;\">//DD saves the relative path of each table as part of its metadata.</span><br /><span style=\"color: #00C800;\">STATIC</span> cPath <br /><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">LOCAL</span> afiles <br /><br />   SetMode<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">25</span>,<span style=\"color: #000000;\">80</span><span style=\"color: #000000;\">&#41;</span>      <span style=\"color: #B900B9;\">//25 lines by 80 columns console</span><br /><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 />    <br />   rddSetDefault<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ADS\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   adsSetServerType<span style=\"color: #000000;\">&#40;</span> ADS_LOCAL_SERVER <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #B900B9;\">//NON-compatible locking mode.  If other NON-ADS clients are going to </span><br />   <span style=\"color: #B900B9;\">//to work on the same tables, then make sure to use compatible locking mode.</span><br />   AdsLocking<span style=\"color: #000000;\">&#40;</span> .t. <span style=\"color: #000000;\">&#41;</span>   <br />    AdsRightsCheck<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #B900B9;\">//Path for existing .dbf tables maybe sent as a parameter </span><br />   <span style=\"color: #B900B9;\">//on the command line.  This is just one idea.  It could be saved </span><br />   <span style=\"color: #B900B9;\">//on a .ini file or hardcoded.</span><br />   cPath   := hb_ArgV<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <br />    <br />   <span style=\"color: #B900B9;\">//in case no path was sent on command line, assume current path.</span><br />   <span style=\"color: #00C800;\">DEFAULT</span> cpath := <span style=\"color: #ff0000;\">\"\"</span>  <br />    <br />   <span style=\"color: #B900B9;\">//sanitize cPath contents.</span><br />   <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cPath <span style=\"color: #000000;\">&#41;</span> .and. <span style=\"color: #0000ff;\">RIGHT</span><span style=\"color: #000000;\">&#40;</span> cPath, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\\\</span>'</span>    ;cPath += <span style=\"color: #ff0000;\">'<span style=\"color: #000000;\">\\\\</span>'</span>  ;ENDIF<br />   <br />   <span style=\"color: #B900B9;\">//if you need to create some new tables other than existing tables look </span><br />   <span style=\"color: #B900B9;\">//at function CreateTables().  CreateTables shows how to create </span><br />   <span style=\"color: #B900B9;\">//adt tables, vfp tables, and dbf-ntx tables.</span><br />   <span style=\"color: #B900B9;\">//</span><br />   <span style=\"color: #B900B9;\">//CreateTables() creates an array with table names and structure for each.</span><br />   <span style=\"color: #B900B9;\">//It then creates the tables.  After being created they will be added to a newly</span><br />   <span style=\"color: #B900B9;\">//created data dictionary using function CreateDictionary().</span><br />   <span style=\"color: #B900B9;\">//If your .dbf tables are alreay present, then you won't need to execute </span><br />   <span style=\"color: #B900B9;\">//CreateTables, instead you could simply execute a Directory() harbour </span><br />   <span style=\"color: #B900B9;\">//function to retreive existing table names.  By storing the names of these tables </span><br />   <span style=\"color: #B900B9;\">//into afiles variable, you can then execute CreateDictionary() in exactly the same </span><br />   <span style=\"color: #B900B9;\">//manner.</span><br />   afiles := CreateTables<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <br />   <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> afiles <span style=\"color: #000000;\">&#41;</span>     ;CreateDictionary<span style=\"color: #000000;\">&#40;</span> afiles <span style=\"color: #000000;\">&#41;</span>     ;ENDIF<br /><br />   <span style=\"color: #B900B9;\">//now that we have a dd created, we will attempt to connect to it and </span><br />   <span style=\"color: #B900B9;\">//use the tables as dd bound tables.</span><br /><br />    <span style=\"color: #00C800;\">IF</span> !AdsConnect60<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"test_dd.add\"</span>, ADS_LOCAL_SERVER, <span style=\"color: #ff0000;\">\"user1\"</span>, <span style=\"color: #ff0000;\">\"password1\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <br />       Alert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Cannot connect to test_dd\"</span> + Str<span style=\"color: #000000;\">&#40;</span> AdsGetLastError<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      QUIT <br /><br />   <span style=\"color: #00C800;\">ENDIF</span> <br /><br /><br />   <span style=\"color: #B900B9;\">//Now we create a dbfcdx table to be used as a free table.</span><br />   CreateAndUseFreeTable<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #B900B9;\">//if table already exists then this function shows how to open and </span><br />   <span style=\"color: #B900B9;\">//browse an existing free table.</span><br />   OpenExistingFreeTable<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />       <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//function CreateTables() will create three tables using stnd harbour func dbCreate</span><br /><span style=\"color: #B900B9;\">//Each table structure is saved on an array following the std returned by dbStruct()</span><br /><span style=\"color: #B900B9;\">//Each element on the array is an array describing the field.  Thus, the array </span><br /><span style=\"color: #B900B9;\">//for a table with 3 fields would look like this:</span><br /><span style=\"color: #B900B9;\">//aStructure := { { cFieldName1, cFieldType1, nFldWidth, nDecimals },;</span><br /><span style=\"color: #B900B9;\">//                { cFieldName2, cFieldType2, nFldWidth, nDecimals },;</span><br /><span style=\"color: #B900B9;\">//                { cFieldName3, cFieldType3, nFldWidth, nDecimals } }</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> CreateTables<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cAlias := <span style=\"color: #ff0000;\">\"MyAlias\"</span><br />   <span style=\"color: #00C800;\">LOCAL</span> afiles := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cFileName, e<br /><br />    <span style=\"color: #B900B9;\">//---------------------- customers.adt --------------------------------------------</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aStruc := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"cust_id\"</span>    , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Sequence\"</span>        , <span style=\"color: #ff0000;\">\"AutoInc\"</span>, <span style=\"color: #000000;\">07</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;      <span style=\"color: #B900B9;\">//ADT extended field type autoincrement </span><br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"customer_name\"</span>   , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Start_date\"</span>      , <span style=\"color: #ff0000;\">\"TimeStamp\"</span>, <span style=\"color: #000000;\">01</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;    <span style=\"color: #B900B9;\">//ADT extended field type</span><br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Notes\"</span>           , <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />                        <br />    AdsSetFileType<span style=\"color: #000000;\">&#40;</span> ADS_ADT <span style=\"color: #000000;\">&#41;</span>   <br /><br />    <span style=\"color: #00C800;\">TRY</span>     <br />        dbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cFileName := cPath + <span style=\"color: #ff0000;\">\"customers.adt\"</span> <span style=\"color: #000000;\">&#41;</span>, aStruc,, .t., cAlias <span style=\"color: #000000;\">&#41;</span><br /><br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdCreate<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"customers\"</span>, <span style=\"color: #ff0000;\">\"cust_id\"</span>, <span style=\"color: #ff0000;\">\"cust_id\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdCreate<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"customers\"</span>, <span style=\"color: #ff0000;\">\"Start_date\"</span>, <span style=\"color: #ff0000;\">\"Start_date\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> dbclosearea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />        AADD<span style=\"color: #000000;\">&#40;</span> afiles, <span style=\"color: #000000;\">&#123;</span> cFileName, <span style=\"color: #ff0000;\">\"customers.adi\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <br />    <span style=\"color: #B900B9;\">//------------------------ sales.dbf -------------------------------------------------</span><br />        aStruc := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"cust_id\"</span> , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"invoice\"</span>     , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"s_date\"</span>      , <span style=\"color: #ff0000;\">\"TimeStamp\"</span>, <span style=\"color: #000000;\">01</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;    <span style=\"color: #B900B9;\">//VFP extended field type</span><br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"item_id\"</span>     , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Units\"</span>       , <span style=\"color: #ff0000;\">\"N\"</span>, <span style=\"color: #000000;\">03</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Price\"</span>       , <span style=\"color: #ff0000;\">\"Money\"</span>, <span style=\"color: #000000;\">09</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span>,;        <span style=\"color: #B900B9;\">//VFP extended field type</span><br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Notes\"</span>       , <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />                    <br />        AdsSetFileType<span style=\"color: #000000;\">&#40;</span> ADS_VFP <span style=\"color: #000000;\">&#41;</span><br /><br />        dbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cFileName := cPath + <span style=\"color: #ff0000;\">\"sales.dbf\"</span> <span style=\"color: #000000;\">&#41;</span>, aStruc,, .t., cAlias <span style=\"color: #000000;\">&#41;</span><br /><br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdCreate<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"sales\"</span>, <span style=\"color: #ff0000;\">\"invoice\"</span>, <span style=\"color: #ff0000;\">\"invoice\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdCreate<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"sales\"</span>, <span style=\"color: #ff0000;\">\"cust_id\"</span>, <span style=\"color: #ff0000;\">\"cust_id\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> dbclosearea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />        aadd<span style=\"color: #000000;\">&#40;</span> afiles, <span style=\"color: #000000;\">&#123;</span> cFileName, <span style=\"color: #ff0000;\">\"sales.cdx\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><br />    <span style=\"color: #B900B9;\">//------------------------ items.dbf -------------------------------------------------</span><br />        aStruc := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"item_id\"</span>     , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Desc\"</span>    , <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Price\"</span>   , <span style=\"color: #ff0000;\">\"N\"</span>, <span style=\"color: #000000;\">07</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />                    <br />        AdsSetFileType<span style=\"color: #000000;\">&#40;</span> ADS_NTX <span style=\"color: #000000;\">&#41;</span><br /><br />        dbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span> cFileName := cPath + <span style=\"color: #ff0000;\">\"items.dbf\"</span> <span style=\"color: #000000;\">&#41;</span>, aStruc,, .t., cAlias <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdCreate<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"itm_id\"</span>,, <span style=\"color: #ff0000;\">\"item_id\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> OrdCreate<span style=\"color: #000000;\">&#40;</span> cPath + <span style=\"color: #ff0000;\">\"itm_desc\"</span>,, <span style=\"color: #ff0000;\">\"Desc\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />        <span style=\"color: #000000;\">&#40;</span> cAlias <span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> dbclosearea<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />        aadd<span style=\"color: #000000;\">&#40;</span> afiles, <span style=\"color: #000000;\">&#123;</span> cFileName, <span style=\"color: #ff0000;\">\"itm_id.ntx;itm_desc.ntx\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    CATCH e<br />    <br />        ShowError<span style=\"color: #000000;\">&#40;</span> cFileName, e <span style=\"color: #000000;\">&#41;</span><br />        afiles := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />        <br />    END<br /><br /><span style=\"color: #00C800;\">RETURN</span> afiles<br /><br /><br /><br /><span style=\"color: #B900B9;\">/*--------------------------------------------------------------------------------------------------------<br />CreateDictionary creates an Advantage Data Dictionary based on already existing tables <br />--------------------------------------------------------------------------------------------------------*/</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> CreateDictionary<span style=\"color: #000000;\">&#40;</span> afiles <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cExt AS CHARACTER := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cDD := cPath + <span style=\"color: #ff0000;\">\"test_dd.add\"</span><br /><br />   <span style=\"color: #00C800;\">IF</span> !ADSDDCREATE<span style=\"color: #000000;\">&#40;</span> cDD,, <span style=\"color: #ff0000;\">\"Sample data dictinoary\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      ALERT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"AdsCreate() of \"</span> + cDD + <span style=\"color: #ff0000;\">\" failed. Error:\"</span> + Str<span style=\"color: #000000;\">&#40;</span> AdsGetLastError<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br />   <span style=\"color: #00C800;\">ENDIF</span> <br />   <br />   <span style=\"color: #B900B9;\">//Calling ACE function AdsDDSetDatabaseProperty()</span><br />   AdsDDSetDatabaseProperty<span style=\"color: #000000;\">&#40;</span> ADS_DD_ENABLE_INTERNET, .t. <span style=\"color: #000000;\">&#41;</span><br />   AdsDDSetDatabaseProperty<span style=\"color: #000000;\">&#40;</span> ADS_DD_INTERNET_SECURITY_LEVEL, ADS_DD_LEVEL_2 <span style=\"color: #000000;\">&#41;</span><br />   AdsDDSetDatabaseProperty<span style=\"color: #000000;\">&#40;</span> ADS_DD_DEFAULT_TABLE_PATH, cPath <span style=\"color: #000000;\">&#41;</span><br />   AdsDDSetDatabaseProperty<span style=\"color: #000000;\">&#40;</span> ADS_DD_LOG_IN_REQUIRED, .t. <span style=\"color: #000000;\">&#41;</span><br /><br /><br />   <span style=\"color: #B900B9;\">//ACE Function ADsDDCreateUser() creates a dd user.</span><br />   <span style=\"color: #B900B9;\">//When a new dd is created user ADSSYS is auto-created as the dd administrator</span><br />   <span style=\"color: #B900B9;\">//it is a good idea to create other users to limit access and permissions.</span><br />   <span style=\"color: #B900B9;\">//</span><br />   AdsDDCreateUser<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"user1\"</span>, <span style=\"color: #ff0000;\">\"password1\"</span>, <span style=\"color: #ff0000;\">\"User named userd1 with password password1\"</span> <span style=\"color: #000000;\">&#41;</span><br />   AdsDDCreateUser<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"user2\"</span>, <span style=\"color: #ff0000;\">\"password2\"</span>, <span style=\"color: #ff0000;\">\"Description of user2\"</span> <span style=\"color: #000000;\">&#41;</span><br />   AdsDDCreateUser<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #ff0000;\">\"user3\"</span>, <span style=\"color: #ff0000;\">\"password3\"</span>, <span style=\"color: #ff0000;\">\"Optional description of user3\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #B900B9;\">//array aFiles contains the names of the tables to be added to the newly created </span><br />   <span style=\"color: #B900B9;\">//data dictionary.  </span><br />   <span style=\"color: #B900B9;\">//element 1 on the array is the table name, </span><br />   <span style=\"color: #B900B9;\">//element 2 on the array is the index file name.</span><br />   <span style=\"color: #B900B9;\">//Since .dbf tables could be vfp, cdx, or ntx type tables, </span><br />   <span style=\"color: #B900B9;\">//we are using the extension on the index file name to \"guess\" the .dbf </span><br />   <span style=\"color: #B900B9;\">//file type.  If this is already known beforehand, then the code below</span><br />   <span style=\"color: #B900B9;\">//could be much simpler.  I'm using AEVAL only because I love it; albeit it is </span><br />   <span style=\"color: #B900B9;\">//more cryptic.  The same can be done on a FOR EACH (FOR/REPEAT/WHILE) loop</span><br />    AEVAL<span style=\"color: #000000;\">&#40;</span> aFiles, ;<br />        <span style=\"color: #000000;\">&#123;</span> |e| hb_FNameSplit<span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span> len<span style=\"color: #000000;\">&#40;</span> e <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">1</span>, e<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, e<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, , , @cExt <span style=\"color: #000000;\">&#41;</span>, ;<br />            AdsSetFiletype<span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span> lower<span style=\"color: #000000;\">&#40;</span> cExt <span style=\"color: #000000;\">&#41;</span> $ <span style=\"color: #ff0000;\">\".adt,.adi\"</span>, ADS_ADT, ;<br />                        iif<span style=\"color: #000000;\">&#40;</span> lower<span style=\"color: #000000;\">&#40;</span> cExt <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\".ntx\"</span>, ADS_NTX, ADS_VFP <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />            addfiletoDD<span style=\"color: #000000;\">&#40;</span> e, cPath <span style=\"color: #000000;\">&#41;</span>, ;<br />            SetTableProp<span style=\"color: #000000;\">&#40;</span> e <span style=\"color: #000000;\">&#41;</span>, ;<br />            QOut<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Adding table to DD\"</span>, ;    <span style=\"color: #B900B9;\">//show some progress information</span><br />                        e<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, ;<br />                        AdsSetFileType<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                        cExt, ;<br />                        ADSGetLastError<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <br /><br />   <span style=\"color: #B900B9;\">//assign the password \"password\" to the ADSSYS user of the DD.  Just as default.</span><br />    AdsDDSetDatabaseProperty<span style=\"color: #000000;\">&#40;</span> ADS_DD_ADMIN_PASSWORD, <span style=\"color: #ff0000;\">\"password\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    Wait<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//This is the code that adds the table to the DD.</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> AddFiletoDD<span style=\"color: #000000;\">&#40;</span> aFile, cPath <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cIndexs := <span style=\"color: #ff0000;\">\"\"</span><br /><br />   <span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span> afile <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">1</span> .AND. <span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span> afile<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #ff0000;\">\".\"</span><br />    <br />        AEVAL<span style=\"color: #000000;\">&#40;</span> afile, <span style=\"color: #000000;\">&#123;</span> |e| cIndexs += e +<span style=\"color: #ff0000;\">\";\"</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />        cIndexs := <span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span> cIndexs, LEN<span style=\"color: #000000;\">&#40;</span> cIndexs <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span><br />        <br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> AdsDDAddTable<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span> afile<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #00C800;\">at</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".\"</span>, afile<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                cPath + aFile<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, ;<br />                cIndexs <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//This function assigns certain properties to all tables.  </span><br /><span style=\"color: #B900B9;\">//The only table property I'm assigning is the auto_create property.</span><br /><span style=\"color: #B900B9;\">//Many others could also be applied.  Look at ads.h include file for </span><br /><span style=\"color: #B900B9;\">//more constants.</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SetTableProp<span style=\"color: #000000;\">&#40;</span> aFile <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cFileName<br /><br />   hb_FNameSplit<span style=\"color: #000000;\">&#40;</span> afile<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>,, @cFileName <span style=\"color: #000000;\">&#41;</span><br /><br />   AdsDDSetTableProperty<span style=\"color: #000000;\">&#40;</span> cFileName, ADS_DD_TABLE_AUTO_CREATE, .t. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//  AdsDDSetTableProperty( cFileName, ADS_DD_TABLE_ENCRYPTION, .t. )</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><br />*-------------------------------------------------------------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> ShowError<span style=\"color: #000000;\">&#40;</span> cMsg, oErr <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> cErr<br /><br />   cErr := STR<span style=\"color: #000000;\">&#40;</span> AdsGetLastError<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />    <br />   ALERT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Error : \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span> cErr <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + ;<br />            cMsg + <span style=\"color: #ff0000;\">\" \"</span> + oErr:<span style=\"color: #000000;\">Subsystem</span> + <span style=\"color: #ff0000;\">\" \"</span> + ;<br />            STR<span style=\"color: #000000;\">&#40;</span> oErr:<span style=\"color: #000000;\">subCode</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" \"</span> + oErr:<span style=\"color: #000000;\">operation</span> + <span style=\"color: #ff0000;\">\" \"</span> + oErr:<span style=\"color: #000000;\">description</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   dbCloseAll<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//create, open and browse a free table.  This is only to show how free tables can co-exist </span><br /><span style=\"color: #B900B9;\">//with dd bound tables.  It is useful for temp tables among other uses.</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> CreateAndUseFreeTable<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> aStruct := <span style=\"color: #000000;\">&#123;</span> ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"CHARACTER\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"NUMERIC\"</span>  , <span style=\"color: #ff0000;\">\"N\"</span>,  <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"DOUBLE\"</span>   , <span style=\"color: #ff0000;\">\"N\"</span>,  <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"DATE\"</span>     , <span style=\"color: #ff0000;\">\"D\"</span>,  <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"LOGICAL\"</span>  , <span style=\"color: #ff0000;\">\"L\"</span>,  <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"MEMO1\"</span>    , <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />               <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"MEMO2\"</span>    , <span style=\"color: #ff0000;\">\"M\"</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>  ;<br />            <span style=\"color: #000000;\">&#125;</span><br /><br />      DbCreate<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"testdbf\"</span>, aStruct, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .T., <span style=\"color: #ff0000;\">\"MYALIAS\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> OpenExistingFreeTable<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   DbUseArea<span style=\"color: #000000;\">&#40;</span> .T., <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, <span style=\"color: #ff0000;\">\"testdbf\"</span>, <span style=\"color: #ff0000;\">\"TestAlias\"</span>, .T., .F. <span style=\"color: #000000;\">&#41;</span><br />   Browse<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------------------------------</span><br /> </div>[/code:28fbedd2]\n\n... and yes, the other clients (C#, C++, PHP...) as well as your own fwh app may use pure SQL against your DBF/NTX tables. Hope that helps.\nReinaldo.", "time": "19:56", "topic": "Advantage Database and SQL", "username": "reinaldocrespo" } ]
Advantage Database and SQL
[ { "date": "2015-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank You Very Much Reinaldo for that information! That helps me greatly. Can I ask you a couple of very basic follow-up questions?\n\n1) How would I set up your afiles array to pass 1 dbf and multiple ntx's to the CreateDictionary()? because the names of my dbf's aren't related to the ntx's. Example...\nCustomer.dbf\nCustname.ntx\nCustnbr.ntx\nCustid.ntx\nPayments.dbf\nPmttype.ntx\nPmtdate.ntx\n\n2) How do I link in the ADS.ch? I have never \"included\" anything in Harbour yet. The following is my current .hbp file:\n[color=#BF4040:1enp9oya]MATERIAL -Lc:\\libfiles -lrddads -lace32 -oMRPADS[/color:1enp9oya]\n\nThese are the only 2 Advantage commands I currently have at the beginning of my main app:\nREQUEST ADS\nrddsetdefault( \"ADSNTX\" )", "time": "23:30", "topic": "Advantage Database and SQL", "username": "Jay Hill" } ]
Advantage Database and SQL
[ { "date": "2015-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Jay;\n\n[quote:2b5m27z5]1) How would I set up your afiles array to pass 1 dbf and multiple ntx's to the CreateDictionary()? because the names of my dbf's aren't related to the ntx's. Example...\nCustomer.dbf\nCustname.ntx\nCustnbr.ntx\nCustid.ntx\nPayments.dbf\nPmttype.ntx\nPmtdate.ntx[/quote:2b5m27z5]\n\nNotice on my sample code posted here how the table and indexes get added to the data dictionary using ACE function AdsDDAddTable(). If you take a peek at the documentation -btw ads is extremely well documented- you will find how to use it.\n\nFrom my code:\n[code=fw:2b5m27z5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AdsDDAddTable<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span> afile<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #00C800;\">at</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".\"</span>, afile<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                cPath + aFile<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, ;<br />                cIndexs <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2b5m27z5]\n\nIn the case of items.dbf notice this translate to AdsDDAddTable( \"items\", \"items.dbf\", \"itm_id.ntx;itm_desc.ntx\" ) where itm_id.ntx and itm_desc.ntx are ntx index files on table items.dbf. It is all on my sample code. In your case that would be: AdsDDAddTable( \"customers\", \"customers.dbf\", \"custname.ntx;custnbr.ntx;custid.ntx\" ). \n\n[quote:2b5m27z5]2) How do I link in the ADS.ch? I have never \"included\" anything in Harbour yet. The following is my current .hbp file:\nMATERIAL -Lc:\\libfiles -lrddads -lace32 -oMRPADS[/quote:2b5m27z5]\nI don't use .hbp files. Don't really understand them. I don't link ads.ch. You might needed it on your include path if you are using any #defined values. \n\nAgain, all you need to create the data dictionary using ACE functions is on my sample code and all these functions are well documented. If you wish to see their wrapper implementation take a peek at adsfunc1.c.\n[code=fw:2b5m27z5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ADSDDADDTABLE <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />   hb_retl<span style=\"color: #000000;\">&#40;</span> AdsDDAddTable<span style=\"color: #000000;\">&#40;</span> HB_ADS_PARCONNECTION<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* hConnect */</span>,<br />                           <span style=\"color: #000000;\">&#40;</span> UNSIGNED8 * <span style=\"color: #000000;\">&#41;</span> hb_parcx<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* pTableName */</span>,<br />                           <span style=\"color: #000000;\">&#40;</span> UNSIGNED8 * <span style=\"color: #000000;\">&#41;</span> hb_parcx<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* pTableFileName */</span>,<br />                           <span style=\"color: #000000;\">&#40;</span> UNSIGNED16 <span style=\"color: #000000;\">&#41;</span> hb_ads_iFileType,<br />                           <span style=\"color: #000000;\">&#40;</span> UNSIGNED16 <span style=\"color: #000000;\">&#41;</span> hb_ads_iCharType,<br />                           <span style=\"color: #000000;\">&#40;</span> UNSIGNED8 * <span style=\"color: #000000;\">&#41;</span> hb_parcx<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">/* pTableIndexFileName */</span>,<br />                           <span style=\"color: #00C800;\">NULL</span> <span style=\"color: #000000;\">&#41;</span> == AE_SUCCESS <span style=\"color: #000000;\">&#41;</span>;<br /><span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:2b5m27z5]\n\nReinaldo.", "time": "23:55", "topic": "Advantage Database and SQL", "username": "reinaldocrespo" } ]
Advantage Database and SQL
[ { "date": "2015-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Reinaldo - Thank you very much again. I've got most of it. You've been especially helpful.\n\nOne last question:\n\nWhen using AdsDDAddTable, Is it imperative that I specify the indexes in the correct order? (that is when using the DD, I can now get rid of all my existing SET ORDER TO commands before issuing a SEEK) Or is that only when using SQL that the index(tag) order is irrelevant? \n\n[color=#BF80BF:2ufy1ict]AdsDDAddTable( \"items\", \"items.dbf\", \"itm_id.ntx;itm_desc.ntx\" )[/color:2ufy1ict]\n\nJay", "time": "00:29", "topic": "Advantage Database and SQL", "username": "Jay Hill" } ]
Advantage Database and SQL
[ { "date": "2015-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hey Jay;\n\nAlthough the SQL engine knows how to best use indexes to optimize speed, ISAM stays ISAM. By this I mean, that your ISAM code stays the same and works the same. With SQL you don't have syntax to \"setOrder\" or \"Seek\". The relationships between tables and existing indexes are saved on the Data Dictionary and this info is then used by the SQL engine to do its job. Indexed-Sequential activity stays \"old-school\". I hope that makes sense.\n\nI think part of the confusion is that ADS is the only SQL that is ISAM as well as SQL and you can mix and match according to your needs.\n\nReinaldo.", "time": "13:25", "topic": "Advantage Database and SQL", "username": "reinaldocrespo" } ]
Advantage Database and SQL
[ { "date": "2015-08-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you again, Reinaldo.\n\nJay", "time": "22:35", "topic": "Advantage Database and SQL", "username": "Jay Hill" } ]
Advantage Database and SQL