messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2013-12-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Error in \"oCn: Open (xConnect)\" something must be wrong, as would do to connect to the IP, my data server has the IP 192.168.1.99 or http:serverdat.net?\nregards",
"time": "17:13",
"topic": "Acceder a MSSQL",
"username": "Willi Quintana"
}
] |
Acceder a MSSQL
|
[
{
"date": "2013-12-11",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Willi\n\nYou can use the IP address of your server or the Server name. Make sure your userid, password and database name are correct.\n\nYou can use the Microsoft SQL Management Studio that comes with Sql Server to login to your database to test your connection credentials.\n\nRick Lipkin",
"time": "23:43",
"topic": "Acceder a MSSQL",
"username": "Rick Lipkin"
}
] |
Acceder a MSSQL
|
[
{
"date": "2013-12-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola Rick , le hago una pregunta. usted seria tan amable si posee una conexión de esta forma para MySql. ya que veo esta mas avanzado que yo.",
"time": "15:36",
"topic": "Acceder a MSSQL",
"username": "juan carlos bellucci"
}
] |
Acceder a MSSQL
|
[
{
"date": "2013-12-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Juan\n\nTake another look at my sample .. Ms Sql Server uses the built in Ole Provider called SqlOleDb which is on every Windows machine from Xp thru Windows 8.\n\nThere is nothing to configure or any setup needed on the workstation. That is what makes connecting to Ms Sql Server so nice. You do not need to distribute any Ole Client, run-time or Odbc to the desktop..\n\nAll you need to do is make sure your connection credentials are setup properly on your Sql Server and use ADO to manage and manipulate the data.\n\nRick Lipkin",
"time": "17:02",
"topic": "Acceder a MSSQL",
"username": "Rick Lipkin"
}
] |
Acceder a MSSQL
|
[
{
"date": "2017-11-29",
"forum": "FiveTouch",
"text": "Bien, me uno al grupo, soy bastante novato y espero aprender para poder ayudar en su dia...\n\nEstoy intentando hacer una pequeñiiiisima aplicación que funcione accediendo a datos en un Servidor MariaDB.\nAlguien lo está utilizando???\nAlgun ejemplo de su uso, sencillo, para empezar.???\n\nSi bien el link\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=33&t=31621&start=0&hilit=fivetouch+webservice\">viewtopic.php?f=33&t=31621&start=0&hilit=fivetouch+webservice</a><!-- l -->\nes el que deberia de darme un poco de luz... lo hecho andar, pero no rula...\n\n#include \"FiveTouch.ch\"\n\nFUNCTION Main()\n\nSET DELETE ON\nSET CENTURY ON\nSET ESCAPE ON\nSET DATE ITALIAN\nSETCANCEL(.T.)\n\nCLEAR SCREEN\n\nDEFINE DIALOG oDlg\n\noDlg:setWindowTitle( \"Gestione Prezzi\" ) \n\n@ 90, 220 BUTTON oBtnImp PROMPT \"test_htip()\" OF oDlg ;\n ACTION test_htip()\n\n@ 250, 90 BUTTON oBtnEnd PROMPT \"Salir\" OF oDlg ;\n ACTION oDlg:End()\n\nACTIVATE DIALOG oDlg CENTERED\n\nreturn nil\n\n// ------------------------------- CREA_FILE\nPROCEDURE test_htip()\n\n LOCAL oHttp, hQuery, cResponse\n\n hQUery := { => }\n hb_HCaseMatch( hQuery, .F. )\n\n oHttp := TIPClientHTTP():New( \"http://adaptaproyectoserp.com.ve/webservices/client.php\", .T. )\n hQuery[ \"nombre\" ] := \"THefull The BEST!\"\n \n IF ! oHttp:open()\n ? \"Error: oHttp:open(): \" + oHttp:lastErrorMessage()\n RETURN\n ENDIF\n\n IF ! oHttp:post( hQuery )\n ? \"Error: oHttp:post(): \" + oHttp:lastErrorMessage()\n ENDIF\n\n cResponse := oHttp:readAll()\n oHttp:close()\n\n Alert( cResponse )\n\n RETURN\n\n\nAlguien que pueda orientarme???\nSi hay que montar un webservice, o el Servidor MariaDB???\nCómo montar un webService, y cual???\n\nGracias.\n\nUn Saludo,\nXevi.",
"time": "21:58",
"topic": "Acceder a MariaDB",
"username": "Xevi"
}
] |
Acceder a MariaDB
|
[
{
"date": "2017-11-29",
"forum": "FiveTouch",
"text": "Xevi,\n\nAqui tienes la conferencia de Rafa Carmona sobre Servidor web & web services y su uso desde Harbour <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[url:3hwo4yp7]https://youtu.be/ivWorfpnnMs[/url:3hwo4yp7]",
"time": "22:14",
"topic": "Acceder a MariaDB",
"username": "Antonio Linares"
}
] |
Acceder a MariaDB
|
[
{
"date": "2017-11-29",
"forum": "FiveTouch",
"text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=34934&start=0\">viewtopic.php?f=6&t=34934&start=0</a><!-- l -->",
"time": "22:18",
"topic": "Acceder a MariaDB",
"username": "Antonio Linares"
}
] |
Acceder a MariaDB
|
[
{
"date": "2017-12-07",
"forum": "FiveTouch",
"text": "Un ejemplo muy simple en PHP:\n\n[url:2keqeg78]https://www.leaseweb.com/labs/2015/10/creating-a-simple-rest-api-in-php/[/url:2keqeg78]",
"time": "12:31",
"topic": "Acceder a MariaDB",
"username": "Antonio Linares"
}
] |
Acceder a MariaDB
|
[
{
"date": "2023-07-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hola me podrían decir como hago esta conexión?",
"time": "14:54",
"topic": "Acceder a dbf mediante ado",
"username": "jpcavagnaro"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2023-07-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hola Jorge,\n\n[code=fw:2nbduv5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oCn, oRs, aStates<br /><br /> <span style=\"color: #00C800;\">LOCAL</span> lShowError := .F.<br /><br /> cPathCnx := <span style=\"color: #ff0000;\">\"D:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\s</span>amples\"</span> <br /> cSql := <span style=\"color: #ff0000;\">\"SELECT * FROM Clients.dbf\"</span> <br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">(</span> cPathCnx , lShowError <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> oRs := FW_OpenRecordSet<span style=\"color: #000000;\">(</span> oCn, cSql <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">nil</span><br /> oRs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">xBrowse</span><span style=\"color: #000000;\">(</span>oRs,<span style=\"color: #ff0000;\">\"oRs\"</span><span style=\"color: #000000;\">)</span><br /> oRs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> nCol := <span style=\"color: #000000;\">1</span> <br /> aStates := ArrTranspose<span style=\"color: #000000;\">(</span> oRs:<span style=\"color: #000000;\">GetRows</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">[</span> nCol <span style=\"color: #000000;\">]</span> <span style=\"color: #B900B9;\">// *** Toma sólo la nCol columna. Es decir es un array aStates[n,n] *** //</span><br /> oRs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> ? <span style=\"color: #ff0000;\">\"Open Table Fail\"</span><br /> <span style=\"color: #00C800;\">endif</span><br /> oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> ? <span style=\"color: #ff0000;\">\"Connect Fail\"</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> aStates<br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------------//</span></div>[/code:2nbduv5p]",
"time": "15:39",
"topic": "Acceder a dbf mediante ado",
"username": "Cgallegoa"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2023-07-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Carlos, gracias por responder.\n\nle puse lShowError := .t. para que muestre el error y me dice que no se encuentra el especifico el nombre del origen de datos y no se especifico ningún controlador predeterminado.\n\ndebo instalar un controlador?",
"time": "15:57",
"topic": "Acceder a dbf mediante ado",
"username": "jpcavagnaro"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2023-07-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "No driver or provider need to be installed for using DBFs without FPT files. \nThe default Jet OLEDB provider that comes bundled with Windows OS is enough.\nFWH ADO functions take care of everything for you\n\nEstablishing a connection.\n\n[code=fw:1j2btye0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">(</span> foldername <span style=\"color: #000000;\">)</span></div>[/code:1j2btye0]\n\nNow all DBF tables (not dbfcdx tables having fpt memo files) are available as tables in this connection.\n\nOpen any table with\n[code=fw:1j2btye0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oRs := FW_OpenRecordSet<span style=\"color: #000000;\">(</span> oCn, <span style=\"color: #ff0000;\">\"states\"</span> <span style=\"color: #000000;\">)</span></div>[/code:1j2btye0] to use states.dbf\nOR\n[code=fw:1j2btye0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oRs := FW_OpenRecordSet<span style=\"color: #000000;\">(</span> oCn, <span style=\"color: #ff0000;\">\"select first,salary from customer\"</span> <span style=\"color: #000000;\">)</span></div>[/code:1j2btye0]\n\nNow deal with the oRs like any other ADO recordset.\n\nFor using dbfcdx tables (i.e., dbf tables with fpt memo files), we need to download and install\nvfpoledb provider\n\nIf you start working we can keep supporting you.",
"time": "16:44",
"topic": "Acceder a dbf mediante ado",
"username": "nageswaragunupudi"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2023-07-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr. Rao, excelente, funciono perfecto.\n\nTambién necesito usar algunas dbfcdx con memo (dbf y fpt), me podría informar como?",
"time": "19:54",
"topic": "Acceder a dbf mediante ado",
"username": "jpcavagnaro"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2023-07-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Download and install VFPOLEDB provider from\n<!-- m --><a class=\"postlink\" href=\"https://www.microsoft.com/en-us/download/details.aspx?id=32602\">https://www.microsoft.com/en-us/downloa ... x?id=32602</a><!-- m -->\nand install\n\nAfter that\nopen connection object\n[code=fw:jm5otzcm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"FOXPRO\"</span>, cfoldername <span style=\"color: #000000;\">}</span>, .T.<span style=\"color: #000000;\">)</span></div>[/code:jm5otzcm]\nNow you can use DBFCDX dbf files with fpt memo files",
"time": "03:35",
"topic": "Acceder a dbf mediante ado",
"username": "nageswaragunupudi"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2023-07-28",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Excelente Mr. Rao.\n\nEntonces, de esta manera, podemos usar de la misma forma sql y dbf solo cambiando la cadena de conexión? \n\nMuchas gracias",
"time": "11:28",
"topic": "Acceder a dbf mediante ado",
"username": "jpcavagnaro"
}
] |
Acceder a dbf mediante ado
|
[
{
"date": "2013-11-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Buenas a todos. \nA ver si alguien sabe decirme como acceder a la estructura interna de HB_ITEM en Harbour (no en xHarbour).\nConcrétamente quiero acceder a la dirección de:\nmyItem->item.asString.length // OJO, no al valor si no a la dirección.\n\nComo ejemplo:\nmyItem->item.asString.value;\n\npuedo acceder así:\nchar * miPuntero = myItem->item.asString.value;\no con la función:\nchar * miPuntero = hb_itemGetCPtr( myItem ); // Esta es la aconsejable\n\nPero para myItem->item.asString.length, cómo?\nHay alguna función que haga lo mismo que hb_itemGetCPtr( myIyem ) pero para myItem->item.asString.length?\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: --> <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> <!-- s:P --><img src=\"{SMILIES_PATH}/icon_razz.gif\" alt=\":P\" title=\"Razz\" /><!-- s:P --> <!-- s:twisted: --><img src=\"{SMILIES_PATH}/icon_twisted.gif\" alt=\":twisted:\" title=\"Twisted Evil\" /><!-- s:twisted: --> <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> <!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: --> <!-- s:arrow: --><img src=\"{SMILIES_PATH}/icon_arrow.gif\" alt=\":arrow:\" title=\"Arrow\" /><!-- s:arrow: -->",
"time": "14:39",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "xmanuel"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel\n\nHarbour trabaja internamente por omision de forma protegida para que no puedas hacer eso, pero eso no implica que no exista forma de hacerlo\n\ndebes compilar con el define \"_HB_API_INTERNAL_\"\n\nte dejo un ejemplo y la linea que de comando que uso para ejecutarlo\n\n[code=fw:12wui66m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> prueba<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"hello world!\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapiitm.h><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span>PRUEBA<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> PHB_ITEM miPuntero = hb_itemNew<span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">)</span>;<br /><br /> const char * c = hb_parc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>;<br /><br /> hb_itemPutC<span style=\"color: #000000;\">(</span> miPuntero, c <span style=\"color: #000000;\">)</span>;<br /><br /> printf<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"%s %d\"</span>, miPuntero->item.asString.value, miPuntero->item.asString.length<span style=\"color: #000000;\">)</span>;<br /><br /> hb_itemRelease<span style=\"color: #000000;\">(</span> miPuntero <span style=\"color: #000000;\">)</span>; <br /><br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP<br /> </div>[/code:12wui66m]\n\nlinea de comando: hbmk2 test -cflag=-D_HB_API_INTERNAL_",
"time": "16:05",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "Daniel Garcia-Gil"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Muchas gracias Daniel...\nQuería evitar eso precisamente.\n\nsi existiera una función que devolviera la dirección sería lo ideal para mí:\n\n...\nreturn &miPuntero->item.asString.length;\n\nSe te ocurre algo? <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: -->",
"time": "20:34",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "xmanuel"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel\n\npodrias hacerlo asi...\n\n[code=fw:17sfid6r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> prueba<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"hello world!\"</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> BEGINDUMP<br /><span style=\"color: #00D7D7;\">#include</span> <hbapi.h><br /><span style=\"color: #00D7D7;\">#include</span> <hbapiitm.h><br /><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">(</span>PRUEBA<span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> PHB_ITEM miPuntero = hb_itemNew<span style=\"color: #000000;\">(</span><span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">)</span>;<br /><br /> const char * c = hb_parc<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>;<br /><br /> int * i;<br /><br /> hb_itemPutC<span style=\"color: #000000;\">(</span> miPuntero, c <span style=\"color: #000000;\">)</span>;<br /><br /> i = &<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>int<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">(</span>miPuntero->item.asString.length<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>;<br /><br /> printf<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"%s %d\"</span>, miPuntero->item.asString.value, *i<span style=\"color: #000000;\">)</span>;<br /><br /> hb_itemRelease<span style=\"color: #000000;\">(</span> miPuntero <span style=\"color: #000000;\">)</span>; <br /><br /><span style=\"color: #000000;\">}</span><br /><br /><span style=\"color: #00D7D7;\">#pragma</span> ENDDUMP</div>[/code:17sfid6r]",
"time": "21:29",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "Daniel Garcia-Gil"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Ya Daniel, pero lo que quiero es evitar usar la estructura ITEM.\nLo que quiero es usar una función al estilo hb_itemGetCPtr( myItem ) pero para el puntero a myItem->item.asString.length ya así mo tener que ir en contra de las recomendaciones del equipo de Harbour.\n\nMira:\n//--------------------------------------\nHB_SIZE hb_itemGetCLen( PHB_ITEM pItem )\n{\n HB_TRACE( HB_TR_DEBUG, ( \"hb_itemGetCLen(%p)\", pItem ) );\n\n if( pItem && HB_IS_STRING( pItem ) )\n return pItem->item.asString.length;\n else\n return 0;\n}\n\n//--------------------------------------\nPues en vez de eso me gustaria que en las funciones del ITEM API hubiera una que devuelva el puntero y no el valor. Así no tendría que usar la directiva no recomendada _HB_API_INTERNAL_\n\nlong * hb_itemGetCPtrLen( PHB_ITEM pItem )\n{\n if( pItem && HB_IS_STRING( pItem ) )\n return &pItem->item.asString.length;\n else\n return NULL;\n}\n\n//--------------------------------------",
"time": "21:49",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "xmanuel"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Daniel si conoces a alguien del equipo de harbour y de xharbour podrías pedirle que incluyan la función?\n\n[code=fw:4ay4swho]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />HB_SIZE * hb_itemGetCPtrLen<span style=\"color: #000000;\">(</span> PHB_ITEM pItem <span style=\"color: #000000;\">)</span><br /><span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span> pItem && HB_IS_STRING<span style=\"color: #000000;\">(</span> pItem <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> &pItem->item.asString.length;<br /> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NULL</span>;<br /> <span style=\"color: #000000;\">}</span><br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:4ay4swho]\n\nPodrás? <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "11:27",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "xmanuel"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Olvidate Daniel.\nEscribí a Przemek y me ha dado una amplia explicación de porqué no está ni estará <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->",
"time": "20:48",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "xmanuel"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel\n\npor curiosidad cual es la explicacion que te dieron?",
"time": "22:45",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "Daniel Garcia-Gil"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2013-11-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Jajaja te pica la curiosidad no?\n\nTe la transcribo tal cual, ya sabes que Przemek se esplaya:\n\nThere are few serious problems with such function.\nIt operates on pointer to item body which may change if some\nother code change the item value. In such case modifying the\nvalue at pointer address will corrupt new item and maybe HVM\nHVM expect that all strings are CHR(0) ended in many different\nplaces. Strings without this condition may cause HVM crash.\nBut if you try to update string body then it may corrupt many\nother string items two. String items are shared and copy on write\nmechanism is used. If you change one string then you will also\nchange all other string items which share item value. You cannot\nchange string item body or string item length because it may\neffect more then one item. In the worst case you will overwrite\none of internal buffers used for shared string values changing\nall strings which may store such value even if they will be\ncreated in the future, i.e. all one byte strings are pointers\nto execatly the same memory area. Constant strings are pointers\nto PCODE so if you change them then PCODE is changed too and\nwill give different results executed next time.\nAdditionally if you try to write to static readonly buffer on\nsystems with hardware readonly memory protection it will cuase\nGPF. There are also any other bad side effects.\nI cannot imagine where such function can be safely used without\nrisk of internal HVM corruption. IMHO you should rethink what\nyou are trying to do and how to avoid manipulations in HVM\nintenral area.\n\nbest regards,\nPrzemek",
"time": "20:30",
"topic": "Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio",
"username": "xmanuel"
}
] |
Acceder a la estructura HB_ITEM en Harbour. Daniel o Antonio
|
[
{
"date": "2007-03-15",
"forum": "FiveWin para Pocket PC",
"text": "Muy buenas, alguien me podría decir, como puedo acceder a los datos de un listbox haciendo referencia a oTbr\n\nGracias.",
"time": "20:10",
"topic": "Acceder a los datos de un listbox",
"username": "softruz"
}
] |
Acceder a los datos de un listbox
|
[
{
"date": "2007-03-15",
"forum": "FiveWin para Pocket PC",
"text": "Te refieres a un browse ó a un listbox que usa un conjunto de elementos ?",
"time": "20:56",
"topic": "Acceder a los datos de un listbox",
"username": "Antonio Linares"
}
] |
Acceder a los datos de un listbox
|
[
{
"date": "2006-10-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estimados co-listeros, me inmagino que mas de uno ya habra evaluado esta necesidad, en resumen :\n\nTengo un servidor windows 2000, ahi tengo instalada mi aplicacion FW, tengo 3 versiones de la misma, puedo usar cualquier FW-Clipper-DBFCDX FWH-xHarbour-DBFCDX y FWH-xHarbour-MySQL.\nObviamente de manera local en mi RED ingresamos varios usuarios sin problemas.\n\nPregunta : de que manera, con que software, cual es la mejor forma de acceder al sistema que esta en el servidor, como si fuera un usuario mas de la RED, osea no solo una conexion remota sino unas 10 o mas.\nAlguien tiene experiencia, resultados concretos.\n\nMuchas gracias por sus comentarios",
"time": "22:17",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "Enrrique Vertiz"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "hola enrique, yo lo tengo en mi empresa y lo estoy haciendo con conexion mediante terminal server sobre una aplicación echa en fivewin + clipper con dbfcdx, la velocidad es muy buena.\n\nsaludos.",
"time": "13:02",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "MANOLO"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Terminal Server, ese es algo que viene con WinXP y Windows 2000 o 2003 server creo ?\nSabes si necesito IP Fija ??\nPor favor algun link donde pueda acceder a informacion de como trabajar con Terminal Server ??\nMuchas gracias por contestar",
"time": "14:45",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "Enrrique Vertiz"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola\n\nTambien puedes usar no-ip, si no tienes una ip fija o igualmente si la tienes.\n\nesta la direccion para mas informacion <!-- w --><a class=\"postlink\" href=\"http://www.no-ip.com\">www.no-ip.com</a><!-- w -->\n\n\nSaludos\nMarco A. Delgado",
"time": "14:54",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "Marco A. Delgado"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Lo del IP me queda claro... pero lo del terminal server ni idea.\n¿Alguien podría darnos los pasos por favor?\n\nGracias",
"time": "16:09",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "fleal"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Lo de terminal server depende muchismo del ancho de banda que tengas, y del \"punch\" que tenga el servidor.\n\nActualmente tenemos un cliente que tiene 25 conexiones remotas con terminal server sobre un ancho de banda de 1.3 Mbps, a un procesador Xeon de 2.4 GHZ con 1 GByte de memoria ram y la aplicacion es tremendamente lenta, sin embargo cuando tienes menos de 10 usuarios la velocidad es aceptable y funciona bien , para atender a los 25 usuarios remotos tendiramos que duplicar la capacidad del server metiendo otro procesador y otro Gbyte de memoria mas y doblar el ancho de banda pero el presupuesto no nos llega.\n\nLa solucion a estos problemas ha sido en todo caso, montar una VPN y utilizar Advantage Internet Server o bien la conexion internet de MySQL.\n\nLa solucion de terminales remotas que tenemos se basa mas que nada en conexiones diretamente a la IP del servidor mediante puertos, tanto para MySQL como para Advantage, con eso le hemos quitado carga de trabajo al servidor y lo hemos dejado solo para manejo de la base de datos, en vez de dividirlo entre procesamiento y servidor de bd.",
"time": "16:57",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "R.F."
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Rene, una consulta, Yo he probado trabajar directamente via el IP a mi BD MySQL pero alojada en un proveedor de Hosting externo, y me parecio demasiado lento, si monto Yo un server con IP y la BD MySQL acceder a la BD via IP no depende tambien de un Super Ancho de Bando y un maquinon ???\nGracias por tus comentarios",
"time": "19:31",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "Enrrique Vertiz"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Enrrique,\nTerminal Server es un sistema operativo para servidor. Por lo tanto caer en ésta categoría tiene un costo de 1,200 a 2,500 dolares. Este costo me lo paso un amigo.\nEl Internet information server de ADS tiene un costo de 2,490 euros... <!-- w --><a class=\"postlink\" href=\"http://www.abox.com\">www.abox.com</a><!-- w -->\nXhabour + mysql ¿¿Para ejecutar un programa fivewin via internet?? Más bien, creo que es para consultar y agregar información a una base de datos. \n\nOtra idea es que te planteras el consultar las bases de datos que están en tu servidor windows 2000. Siendo asi la solución podría ser usando xbscript y tiene un costo de 395 dolares. Entonces puedes agregar, modificar, consultar DBFs via internet.... <!-- w --><a class=\"postlink\" href=\"http://www.xharbour.com\">www.xharbour.com</a><!-- w -->",
"time": "14:57",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "fleal"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Enrrique Vertiz\":t2aeu02k]Rene, una consulta, Yo he probado trabajar directamente via el IP a mi BD MySQL pero alojada en un proveedor de Hosting externo, y me parecio demasiado lento, si monto Yo un server con IP y la BD MySQL acceder a la BD via IP no depende tambien de un Super Ancho de Bando y un maquinon ???\nGracias por tus comentarios[/quote:t2aeu02k]\n\nNO, si tu te lo montas \"en casa\" no tienes problemas:\n\n1) Los hostings comerciales no siempre estan en tu mismo pais, por lo tanto tienes que dar un montol de saltos sobre Internet para llegar hasta el servidor MySQL de tu proveedor de hosting, lo mismo nos pasa aqui con los demos de Advantage Internet Server que tenemos en nuestra pagina web (<!-- w --><a class=\"postlink\" href=\"http://www.google.d2g.com/ads/demos/\">www.google.d2g.com/ads/demos/</a><!-- w -->), si tu lo corres dentro de Mexico, aun con un moden de 56 kbps es alucinantemente rapido, si te lo llevas a USA funciona bien, pero si lo tratas de ejecutar desde España por ejemplo, es bastante lento, la razon: el numero de saltos que tienes que dar para llegar al servidor.\n\n2) En un hosting comercial, el ancho de banda esta compartido no solo por ti, sino por toda la gente tiene contratados servicios, por eso mismo, los proveedores restringen el ancho de banda y lo dividen en cargas que aprovechen para surtir el servicio a todos los clientes, con lo cual el montaje del servidor sobre un hosting comercial tampoco es una opcion.\n\nSi te lo quieres motnar en casa, te dire que nuestro server para ADS es un Pentium IV a 2.4 GH, tiene 512 Megs de ram y un ancho de banda de 1.3 Mbps ADSL. y nos fuciona de maravilla.",
"time": "18:45",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "R.F."
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote:r61i9bt8]1) Los hostings comerciales no siempre estan en tu mismo pais, por lo tanto tienes que dar un montol de saltos sobre Internet para llegar hasta el servidor MySQL de tu proveedor de hosting, lo mismo nos pasa aqui con los demos de Advantage Internet Server que tenemos en nuestra pagina web (<!-- w --><a class=\"postlink\" href=\"http://www.google.d2g.com/ads/demos/\">www.google.d2g.com/ads/demos/</a><!-- w -->), si tu lo corres dentro de Mexico, aun con un moden de 56 kbps es alucinantemente rapido, si te lo llevas a USA funciona bien, pero si lo tratas de ejecutar desde España por ejemplo, es bastante lento, la razon: el numero de saltos que tienes que dar para llegar al servidor.\n[/quote:r61i9bt8]\n\nA eso me referia con no-ip\n\nActualmente tengo montado un sistema hecho con fwh, xharbour y tmysql y por supuesto con una BD MySQL.\n\nY se conectan alrededor de 20 usuarios y la velocidad es muy aceptable se realizan alrededor de 150 consultas diarias, asi como modificaciones y altas de registros y les dire que tengo como servidor una PIV 2.8 GH con 1 Gb de memoria y un HD de 40 GB.\n\nMi direccion ip no es fija y mediante no-ip todos ellos se pueden conectar a la BD de MySQL sin ningun problema.\n\nSaludos\n\nMarco A. Delgado.",
"time": "19:07",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "Marco A. Delgado"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Saludos,\n\nTu solucion es la siguente:\n\nMontate un servidor Linux ( Fedora, Mandriva, etc. Prefiero Fedora ), alli montas tu base de datos MySql, asi como una vpn, adicional a esto hay un script que se llama ddclient para trabajar en Linux esto funciona para dyndns.com.\n\nYo tengo en un servidor 60 conexiones de esa manera. Cada una de esas conexiones realiza unas 300 operaciones diarias.",
"time": "20:49",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "pablovidal"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-10-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigos, como siempre, aca en el foro hay alternativas varias y siempre apuntando a la solucion, tomare en cuenta sus sugerencias, que en resumen significan montar el MySQL en un server en casa y veremos.\nGracias por sus opiniones",
"time": "19:16",
"topic": "Acceder a sistema desde ubicaciones remotas.",
"username": "Enrrique Vertiz"
}
] |
Acceder a sistema desde ubicaciones remotas.
|
[
{
"date": "2006-03-22",
"forum": "FiveWin para CA-Clipper",
"text": "[color=red:19hrxuwf][b:19hrxuwf]Antes que nada quiero saludar a todos los integrantes del foro.[/b:19hrxuwf][/color:19hrxuwf]\n\nMi problema es sobre descargas por FTP, hasta hace un tiempo la mayoria de mis clientes se conectaban por dial up para bajarse las listas de precios, algunos otros con ADSL y todo bien, pero ahora tengo unos nuevos que han contratado cable modem de Arnet/Telecom con un modem Motorola 5101 es el modelo para ser mas preciso y no se puede establecer la conexion. Estoy tratando de verificar con algo los puertos abiertos ya que los proveedores de internet dicen que ellos no cierran nada ni ponen ningun firewall ni nada pero la cosa es que no puedo ver el FTP desde fivewin y si voy por el explorer y coloco mi ip 209.99.22... anda de primera, desde el DOS ejecutando FTP tambien puedo entrar.\n\nSin mas les agradezco desde ya.",
"time": "14:13",
"topic": "Acceder a un Ftp por cable modem",
"username": "carlosortiz"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-03-29",
"forum": "FiveWin para CA-Clipper",
"text": "¿ Esta usando windows xp ? \n\nSi es asi, entonces revisa que tu programa no este bloqueado por el firewall de windows xp sp2\n\n\natte,\nLautaro",
"time": "23:57",
"topic": "Acceder a un Ftp por cable modem",
"username": "Lautaro"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-04-03",
"forum": "FiveWin para CA-Clipper",
"text": "El problema se presenta en cualquier windows, y lo que he notado es que en esta problematica siempre las conexiones son via USB, cuando es banda ancha por placa de red el problema no existe. Estoy pensando en que tiene que ver mas con el hardware que con el software.\n\nGracias.",
"time": "01:25",
"topic": "Acceder a un Ftp por cable modem",
"username": "carlosortiz"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-04-03",
"forum": "FiveWin para CA-Clipper",
"text": "Carlos,\n\nMuéstranos cómo estás usando el código de FTP ? gracias.",
"time": "06:27",
"topic": "Acceder a un Ftp por cable modem",
"username": "Antonio Linares"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-04-03",
"forum": "FiveWin para CA-Clipper",
"text": "Buenas tardes Carlos,\n\nutiliza el programa fport de Foundstone, lo puedes descargar desde aquí:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&subcontent=/resources/freetools.htm\">http://www.foundstone.com/index.htm?sub ... etools.htm</a><!-- m -->\n\nSaludos,\n\nFélix",
"time": "15:08",
"topic": "Acceder a un Ftp por cable modem",
"username": "Baxajaun"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-04-03",
"forum": "FiveWin para CA-Clipper",
"text": "// Antonio saco todo por que es un prg bastante complejo, \n// dejo solo las llamadas inherentes al tema\n\ndefine dial...\n // ---------------------------------------------------------------------\n // ---------------------------------------------------------------------\n redefine sbutton ID 101 OF oPrivate:oPags:aDialogs[2] \n FONToVentPrinc:oFont file m->cpatbmp+\"_conecta.bmp\";\n prompt \"Ingresar al servidor\" action busftp() text 4\nactivate dial...\nreturn .t.\n\n// --------\nfunc busftp()\n// --------\nlocal oFTP\noPrivate:oInternet:=TInternet():New()\nif !internetSt()\n internetDi()\n if !internetSt()\n oPrivate:oInternet:End()\n return .f.\n endif\nendif\n\n// Antonio, aca hace la llamada con LEVFTP\nmsgrun(\"Ingresando al servidor...\",\"\",{|oDlg|levftp(oPrivate:oInternet,oDlg,oFTP)},\"_insitio\")\n\noPrivate:oInternet:End()\nreturn nil\n\n//------------------------\nfunc levftp(oInternet,oDlg,oFTP)\n//------------------------\nlocal aFiles, nItem, recorre, aFiltro:=array(9)\nlocal ncannuevos\noFTP:=TFTP():New( \"209.99.228.215\", oInternet, \"dbfarma\", \"farmacia\")\nif empty( oFTP:hFTP )\n oDlg:end()\n // Antonio, sale por este error y por ende no puedo levantar \n // los datos del servidor\n msgstop(\"No se pudo establecer la conexión.\")\n return .f.\nendif\n\nsysrefresh()\n\noDlg:settext(\"Buscando actualizaciones...\")\nsysrefresh()\n\n\n// Levanto todo el directorio ftp del dbfarma\naFilesFtp = oFTP:Directory(\"*.*\")",
"time": "15:16",
"topic": "Acceder a un Ftp por cable modem",
"username": "carlosortiz"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-04-03",
"forum": "FiveWin para CA-Clipper",
"text": "Carlos,\n\nEstas usando las clases estandard de Windows, debería funcionar.\n\nHas probado el ejemplo samples\\FTPDir.prg ?",
"time": "18:36",
"topic": "Acceder a un Ftp por cable modem",
"username": "Antonio Linares"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2006-04-04",
"forum": "FiveWin para CA-Clipper",
"text": "Estoy usando las classes estandar, de hecho agregue un mensaje en TInternet y TFtp, las compile y las agregue en el LNK para ver si surtia algun cambio y nada sigue igual.\n\nTambien probe los ejemplos pelados sin nada de proceso solo apertura y nada.\nProbe tambien esta funcion que esta en los Samples\\SylInt.prg\n\n// Working with Internet Classes\n/*\n I tried to do my best to give you all necessary information to gain the perfect control over all internet function that can be manage with Fivewin for sure we can add some more (http function) but we don't have any control to display HTML text so that's why I didn't test it.\n\n Must of internet function that open session dial automaticaly the internet if you set the parameter for, but a better practice to AVOID GPF is to:\n\n 1- Check with InternetSt() if a connection is already establish\n 2- If not Establish connect with InternetDi() or InternetAu()\n 3- Do your work\n 4- Hangup with InternetHa() or InterautHa()\n\n Hope it will help Fivewin user\n\n*/\n\n#include \"FiveWin.ch\"\n#include \"menu.ch\"\n\n//----------------------------------------------------------------------------//\n\nfunction Main()\n etc, etc, ...\nreturn nil\n//----------------------------------------------------------------------------//\n\nfunction BuildMenu()\n etc, etc, ...\n MENUITEM \"Get archivo\" ACTION FTPGET()\nreturn oMenu\nFunction Flushdenet()\n\nFunction FTPGET() // mise a jour des constantes de salaire\n Local hftp\n Local n1:=0,message:=space(500),n2:=500\n if (hftp:=InternetConnect(onet,\"209.99.228.215\",21,\"dbfarma\",\"farmacia\",1,2,0)) == 0\n msginfo(\"Sorry can't connect to FTP site:\"+str(getlasterror()))\n if Intrespinf(@n1,message,@n2)\n msginfo(\"message:=\"+message)\n endif\n else\n // Change the filename by the one you want to get from the FTP site\n if ! Ftpgetfile(hftp,\"aviso.MEM\",\"c:\\tmp\\aviso.mem\",1,128,2,0)\n msginfo(\"Getlat:=\"+str(getlasterror()))\n if Intrespinf(@n1,message,@n2)\n msginfo(\"message:=\"+message)\n endif\n endif\n msginfo(\"Done!\")\n Internetclosehandle(hftp)\n endif\n\n return .t.\n\n\n\nProbe Qftp aunque con problemas con el .ch que no era el correcto, compile como pude y nada.\n\nAcabo de venir del cliente y estuve probando un exe pelado y aparentemente a la conexion la detecta bien InternetSt() retorna conectado, el problema esta en la definicion del objeto\noFTP:=TFTP():New( \"209.99.228.215\", oInternet, \"dbfarma\", \"farmacia\")\nesto devuelve vacio.\n\nTambien estuve chequeando los puertos para ver si habia algo (troyano/espia/virus) que lo tuviere abierto, lo hice on line desde <!-- m --><a class=\"postlink\" href=\"http://www.upseros.com/portscan.php\">http://www.upseros.com/portscan.php</a><!-- m --> y nada estaba cerrado, en un XP me dió INVISIBLE pero bueno ahi anda.\n\nLes copie mi WinInet.dll de mi pc a la de los clientes y nada, le puse el cable modem por medio de una placa de red y nada, lo que me esta quedando es formatear el equipo pero no tengo muchas ganas de meterme en un lio mas grande sobre todo con la infinidad de giladas que tiene este tio en la pc.\n\nEn fin Antonio he probado casi todo lo que esta a mi alcance antes de molestar en el foro, aunque se que no es molestia y estoy muy agradecido por la ayuda que todos brindan a esta comunidad. Muchas gracias a ustedes y seguire probando cosas.\n\nPD: En algunos clientes que tienen esta porqueria de aparato no les anda el Messenger por ejemplo. ( Motorola SBoard 5101 USB ), lo que si en todos los casos el FTP.exe por DOS anda bien.",
"time": "00:57",
"topic": "Acceder a un Ftp por cable modem",
"username": "carlosortiz"
}
] |
Acceder a un Ftp por cable modem
|
[
{
"date": "2005-10-12",
"forum": "FiveWin para CA-Clipper",
"text": "hola amigos, necesito entrar a un programa como control remoto, pero pasando por un router dlink, alguien conoce alguna herramienta que permita hacer esto",
"time": "16:00",
"topic": "Acceder a un programa en forma remorta pasando por un router",
"username": "Anonymous"
}
] |
Acceder a un programa en forma remorta pasando por un router
|
[
{
"date": "2005-10-13",
"forum": "FiveWin para CA-Clipper",
"text": "Hola,\nSi describirias con mas detalle tu peticion talvez pueda ayudarte..\nSalu2\nWilli",
"time": "15:54",
"topic": "Acceder a un programa en forma remorta pasando por un router",
"username": "Willi Quintana"
}
] |
Acceder a un programa en forma remorta pasando por un router
|
[
{
"date": "2005-10-13",
"forum": "FiveWin para CA-Clipper",
"text": "[quote=\"Anonymous\":vk5d1zx6]hola amigos, necesito entrar a un programa como control remoto, pero pasando por un router dlink, alguien conoce alguna herramienta que permita hacer esto[/quote:vk5d1zx6]\n\nTienes que utilizar la opcion de \"NAT\" o \"Virtual Server\" que tienen todos los routers.\n\nEn esa opcion deberas indicar que puerto vas a abrir y que equipo dentro de la red interna (direccion IP) debe responder a las peticiones",
"time": "20:14",
"topic": "Acceder a un programa en forma remorta pasando por un router",
"username": "R.F."
}
] |
Acceder a un programa en forma remorta pasando por un router
|
[
{
"date": "2020-12-23",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola,\n\n¿Es posible saber si el usuario ha tocado el checkbox del control?\n\nGracias y un saludo",
"time": "22:02",
"topic": "Acceder al checkbox del control datepicker",
"username": "joseluispalma"
}
] |
Acceder al checkbox del control datepicker
|
[
{
"date": "2020-12-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Jose Luis,\n\nPuedes mostrar una imagen del checkbox al que te refieres ?",
"time": "11:04",
"topic": "Acceder al checkbox del control datepicker",
"username": "Antonio Linares"
}
] |
Acceder al checkbox del control datepicker
|
[
{
"date": "2020-12-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio,\n\nCon bChanged lo he solucionado.\n\nMuchas gracias.",
"time": "12:32",
"topic": "Acceder al checkbox del control datepicker",
"username": "joseluispalma"
}
] |
Acceder al checkbox del control datepicker
|
[
{
"date": "2020-04-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola compañeros,\n\nTengo un GET con una acción que se accede con el botón correspondiente:\n \t[code=fw:2267dht0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"DOMICILIO\"</span><span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">VAR</span> oData:<span style=\"color: #000000;\">DOMICILIO</span> <span style=\"color: #0000ff;\">ACTION</span>…</div>[/code:2267dht0]\n\nQuiero establecer un ToolTip para el botón de la ACTION:\n [code=fw:2267dht0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oGet<span style=\"color: #000000;\">[</span><span style=\"color: #ff0000;\">\"DOMICILIO\"</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oBtn</span>:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Texto del tooltip\"</span></div>[/code:2267dht0]\n\nNo funciona, porque oBtn está vacío.\n\nSin embargo, si hago XBROWSER oGet[\"DOMICILIO\"] lo puedo ver. No veo qué hago mal.\nMuchas gracias.",
"time": "13:21",
"topic": "Acceder al oBtn del ACTION de un GET",
"username": "mgsoft"
}
] |
Acceder al oBtn del ACTION de un GET
|
[
{
"date": "2020-04-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Prueba desde la claúsula ON INIT del DIALOG, de esta forma\n[quote:2bl91ki5]\nON INIT ( oGetb:oBtn:cToolTip := { || \"Hola Amigos\" }, .... )\n[/quote:2bl91ki5]",
"time": "15:00",
"topic": "Acceder al oBtn del ACTION de un GET",
"username": "cnavarro"
}
] |
Acceder al oBtn del ACTION de un GET
|
[
{
"date": "2020-04-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Muchas gracias, así si que funciona.\n\n¿Pero es posible lograr hacerlo como señalo?\n\nLa cláusula ON INIT añade un parpadeo al diálogo que tiene un folder.",
"time": "15:39",
"topic": "Acceder al oBtn del ACTION de un GET",
"username": "mgsoft"
}
] |
Acceder al oBtn del ACTION de un GET
|
[
{
"date": "2020-04-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "El control ha de estar creado antes de poder instanciarlo correctamente, eso suele ocurrir con los controles definidos en dialogs, y con mayor motivo si están hechos con recursos\nEn cuanto al parpadeo, no entiendo por qué, pon un gif o algo para hacerme una idea del efecto que te produce.",
"time": "15:45",
"topic": "Acceder al oBtn del ACTION de un GET",
"username": "cnavarro"
}
] |
Acceder al oBtn del ACTION de un GET
|
[
{
"date": "2020-04-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Muchas gracias Cristóbal.\n\nParpadea todo un momento, no el botón.",
"time": "15:53",
"topic": "Acceder al oBtn del ACTION de un GET",
"username": "mgsoft"
}
] |
Acceder al oBtn del ACTION de un GET
|
[
{
"date": "2020-04-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Te he entendido, Eduardo, por eso te he comentado el tema de que me envíes un GIF para ver el efecto que te hace",
"time": "16:03",
"topic": "Acceder al oBtn del ACTION de un GET",
"username": "cnavarro"
}
] |
Acceder al oBtn del ACTION de un GET
|
[
{
"date": "2008-02-20",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Muy buenas, en nuestros proyectos bajo windows utlizamos libMySQL.dll para el acceso a MySQL, mi pregunta es, ¿se puede utilizar la misma libreria para tal acceso en Linux? sino por favor decirme como puedo acceder a Mysql.\n\n\nUn Saludo.",
"time": "13:36",
"topic": "Accediendo a MySQL",
"username": "softruz"
}
] |
Accediendo a MySQL
|
[
{
"date": "2008-02-26",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Si se puede, pero no usando la DLL de Windows, sino la librería de enlace dinámico de MySQL propia para Linux.",
"time": "08:37",
"topic": "Accediendo a MySQL",
"username": "Antonio Linares"
}
] |
Accediendo a MySQL
|
[
{
"date": "2008-03-04",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "[quote=\"softruz\":xp9n5i2g]Muy buenas, en nuestros proyectos bajo windows utlizamos libMySQL.dll para el acceso a MySQL, mi pregunta es, ¿se puede utilizar la misma libreria para tal acceso en Linux? sino por favor decirme como puedo acceder a Mysql.\n\n\nUn Saludo.[/quote:xp9n5i2g]\n\nEstimado:\nTienes algún correo donde poder realizarte algunas consultas?\nGracias",
"time": "22:52",
"topic": "Accediendo a MySQL",
"username": "metaldrummer"
}
] |
Accediendo a MySQL
|
[
{
"date": "2008-03-07",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Muy Buenas, dime tu email y te envio mi email.\n\n¿Alguien tiene algún ejemplo de como acceder a MysQL?\nUn Saludo.",
"time": "10:14",
"topic": "Accediendo a MySQL",
"username": "softruz"
}
] |
Accediendo a MySQL
|
[
{
"date": "2009-12-16",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Pasarse por:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=12&t=17612\">viewtopic.php?f=12&t=17612</a><!-- l -->\n\nUn Saludo.",
"time": "11:44",
"topic": "Accediendo a MySQL",
"username": "softruz"
}
] |
Accediendo a MySQL
|
[
{
"date": "2019-03-03",
"forum": "FiveTouch",
"text": "En este ejemplo construimos un browse con el resultado de una consulta SQL en una base de datos remota MySQL:\n\nmysql.prg\n[code=fw:3d096qi4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveTouch.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg := QDialog<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oLayout := QVBoxLayout<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oBrw := QTableView<span style=\"color: #000000;\">(</span> oDlg <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> aRows := GetData<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> n, m, aKeys := hb_HKeys<span style=\"color: #000000;\">(</span> aRows<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oModel := QStandardItemModel<span style=\"color: #000000;\">(</span> Len<span style=\"color: #000000;\">(</span> aRows <span style=\"color: #000000;\">)</span>, Len<span style=\"color: #000000;\">(</span> aKeys <span style=\"color: #000000;\">)</span>, oDlg <span style=\"color: #000000;\">)</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;\">(</span> aKeys <span style=\"color: #000000;\">)</span><br /> oModel:<span style=\"color: #000000;\">SetHorizontalHeaderItem</span><span style=\"color: #000000;\">(</span> n - <span style=\"color: #000000;\">1</span>, QStandardItem<span style=\"color: #000000;\">(</span> aKeys<span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</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;\">(</span> aRows <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">for</span> m = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">(</span> aKeys <span style=\"color: #000000;\">)</span><br /> oModel:<span style=\"color: #000000;\">SetItem</span><span style=\"color: #000000;\">(</span> n - <span style=\"color: #000000;\">1</span>,m - <span style=\"color: #000000;\">1</span>, QStandardItem<span style=\"color: #000000;\">(</span> hb_HGet<span style=\"color: #000000;\">(</span> aRows<span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span>, aKeys<span style=\"color: #000000;\">[</span> m <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> oDlg:<span style=\"color: #000000;\">SetLayout</span><span style=\"color: #000000;\">(</span> oLayout <span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">SetModel</span><span style=\"color: #000000;\">(</span> oModel <span style=\"color: #000000;\">)</span><br /> oLayout:<span style=\"color: #000000;\">AddWidget</span><span style=\"color: #000000;\">(</span> oBrw <span style=\"color: #000000;\">)</span><br /><br /> oDlg:<span style=\"color: #000000;\">SetWindowTitle</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"A browse\"</span> <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">Resize</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">400</span> <span style=\"color: #000000;\">)</span> <br /> oDlg:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">Exec</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> GetData<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oClient := TIpClientHttp<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://www.fivetechsoft.com/webservice.php\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> hRequest := <span style=\"color: #000000;\">{</span>=><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAl</span> hParams := <span style=\"color: #000000;\">{</span>=><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAl</span> cJson<br /><br /> <span style=\"color: #00C800;\">if</span> oClient:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> <br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"database\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"fivetech_webservice\"</span><br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"username\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"fivetech_test\"</span><br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"password\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"webservice\"</span><br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"sql\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"SELECT * FROM `users`\"</span><br /> <br /> oClient:<span style=\"color: #000000;\">oUrl</span>:<span style=\"color: #000000;\">AddGetForm</span><span style=\"color: #000000;\">(</span> hParams <span style=\"color: #000000;\">)</span><br /> cJson = oClient:<span style=\"color: #000000;\">ReadAll</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> hb_jsonDecode<span style=\"color: #000000;\">(</span> cJson, @hRequest <span style=\"color: #000000;\">)</span><br /> oClient:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> hRequest<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"result\"</span> <span style=\"color: #000000;\">]</span><br /> </div>[/code:3d096qi4]\n\n[img:3d096qi4]https://fivetechsoft.github.io/screenshots/fivetouch_mysql1.png[/img:3d096qi4]",
"time": "08:59",
"topic": "Accediendo a MySQL desde FiveTouch",
"username": "Antonio Linares"
}
] |
Accediendo a MySQL desde FiveTouch
|
[
{
"date": "2019-03-03",
"forum": "FiveTouch",
"text": "Añadimos algunos botones en la zona inferior del browse:\n\nmysql.prg\n[code=fw:3qj6uz5q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveTouch.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg := QDialog<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oLayout := QVBoxLayout<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oBrw := QTableView<span style=\"color: #000000;\">(</span> oDlg <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> aRows := GetData<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> n, m, aKeys := hb_HKeys<span style=\"color: #000000;\">(</span> aRows<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oModel := QStandardItemModel<span style=\"color: #000000;\">(</span> Len<span style=\"color: #000000;\">(</span> aRows <span style=\"color: #000000;\">)</span>, Len<span style=\"color: #000000;\">(</span> aKeys <span style=\"color: #000000;\">)</span>, oDlg <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oButtons := QWidget<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> oLayoutH := QHBoxLayout<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oBtnOk, oBtnCancel<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;\">(</span> aKeys <span style=\"color: #000000;\">)</span><br /> oModel:<span style=\"color: #000000;\">SetHorizontalHeaderItem</span><span style=\"color: #000000;\">(</span> n - <span style=\"color: #000000;\">1</span>, QStandardItem<span style=\"color: #000000;\">(</span> aKeys<span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</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;\">(</span> aRows <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">for</span> m = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">(</span> aKeys <span style=\"color: #000000;\">)</span><br /> oModel:<span style=\"color: #000000;\">SetItem</span><span style=\"color: #000000;\">(</span> n - <span style=\"color: #000000;\">1</span>,m - <span style=\"color: #000000;\">1</span>, QStandardItem<span style=\"color: #000000;\">(</span> hb_HGet<span style=\"color: #000000;\">(</span> aRows<span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span>, aKeys<span style=\"color: #000000;\">[</span> m <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> oDlg:<span style=\"color: #000000;\">SetLayout</span><span style=\"color: #000000;\">(</span> oLayout <span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">SetModel</span><span style=\"color: #000000;\">(</span> oModel <span style=\"color: #000000;\">)</span><br /> oLayout:<span style=\"color: #000000;\">AddWidget</span><span style=\"color: #000000;\">(</span> oBrw <span style=\"color: #000000;\">)</span><br /><br /> oLayout:<span style=\"color: #000000;\">AddWidget</span><span style=\"color: #000000;\">(</span> oButtons <span style=\"color: #000000;\">)</span><br /> oButtons:<span style=\"color: #000000;\">SetLayout</span><span style=\"color: #000000;\">(</span> oLayoutH <span style=\"color: #000000;\">)</span><br /> oLayoutH:<span style=\"color: #000000;\">AddWidget</span><span style=\"color: #000000;\">(</span> oBtnOk := QPushButton<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> oBtnOk:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Ok\"</span> <span style=\"color: #000000;\">)</span><br /> oBtnOk:<span style=\"color: #000000;\">Connect</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"clicked()\"</span>, <span style=\"color: #000000;\">{</span> || oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /> oLayoutH:<span style=\"color: #000000;\">AddWidget</span><span style=\"color: #000000;\">(</span> oBtnCancel := QPushButton<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> oBtnCancel:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Cancel\"</span> <span style=\"color: #000000;\">)</span><br /> oBtnCancel:<span style=\"color: #000000;\">Connect</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"clicked()\"</span>, <span style=\"color: #000000;\">{</span> || oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><br /> oDlg:<span style=\"color: #000000;\">SetWindowTitle</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"A browse\"</span> <span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">Resize</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">700</span>, <span style=\"color: #000000;\">700</span> <span style=\"color: #000000;\">)</span> <br /> oDlg:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oDlg:<span style=\"color: #000000;\">Exec</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> GetData<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oClient := TIpClientHttp<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://www.fivetechsoft.com/webservice.php\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> hRequest := <span style=\"color: #000000;\">{</span>=><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAl</span> hParams := <span style=\"color: #000000;\">{</span>=><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">LOCAl</span> cJson<br /><br /> <span style=\"color: #00C800;\">if</span> oClient:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> <br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"database\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"fivetech_webservice\"</span><br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"username\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"fivetech_test\"</span><br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"password\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"webservice\"</span><br /> hParams<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"sql\"</span> <span style=\"color: #000000;\">]</span> = <span style=\"color: #ff0000;\">\"SELECT * FROM `users`\"</span><br /> <br /> oClient:<span style=\"color: #000000;\">oUrl</span>:<span style=\"color: #000000;\">AddGetForm</span><span style=\"color: #000000;\">(</span> hParams <span style=\"color: #000000;\">)</span><br /> cJson = oClient:<span style=\"color: #000000;\">ReadAll</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> hb_jsonDecode<span style=\"color: #000000;\">(</span> cJson, @hRequest <span style=\"color: #000000;\">)</span><br /> oClient:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> hRequest<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"result\"</span> <span style=\"color: #000000;\">]</span><br /> </div>[/code:3qj6uz5q]\n\n[img:3qj6uz5q]https://fivetechsoft.github.io/screenshots/fivetouch_mysql2.png[/img:3qj6uz5q]",
"time": "09:22",
"topic": "Accediendo a MySQL desde FiveTouch",
"username": "Antonio Linares"
}
] |
Accediendo a MySQL desde FiveTouch
|
[
{
"date": "2019-05-02",
"forum": "FiveTouch",
"text": "Hola Antonio, puedes mostrar el contenido de webservice.php asi veo que haces?\nMuchas gracias",
"time": "16:01",
"topic": "Accediendo a MySQL desde FiveTouch",
"username": "Marcelo Roggeri"
}
] |
Accediendo a MySQL desde FiveTouch
|
[
{
"date": "2019-05-02",
"forum": "FiveTouch",
"text": "Marcelo,\n\nAqui está el código fuente del webservice.php:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=219709#p219709\">viewtopic.php?p=219709#p219709</a><!-- l -->",
"time": "19:13",
"topic": "Accediendo a MySQL desde FiveTouch",
"username": "Antonio Linares"
}
] |
Accediendo a MySQL desde FiveTouch
|
[
{
"date": "2019-05-02",
"forum": "FiveTouch",
"text": "Gracias Antonio, no lo había visto. Perdón.\nSaludos",
"time": "20:36",
"topic": "Accediendo a MySQL desde FiveTouch",
"username": "Marcelo Roggeri"
}
] |
Accediendo a MySQL desde FiveTouch
|
[
{
"date": "2015-11-26",
"forum": "FiveTouch",
"text": "Gracias a Rafa Carmona aqui teneis un ejemplo funcionando de como acceder a un web service\nusando código Harbour y FiveTouch! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEsto abre las puertas a usar cualquier base de datos remota (MySQL, SQL, etc) usando un web service\nque es la forma recomendada de hacerlo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nFinalmente podemos usar cualquier motor de base de datos desde FiveTouch! Muchas gracias Rafa!!!\n\n[code=fw:1a47l6fd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">PROCEDURE test_htip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oHttp, hQuery, cResponse<br /><br /> hQUery := <span style=\"color: #000000;\">{</span> => <span style=\"color: #000000;\">}</span><br /> hb_HCaseMatch<span style=\"color: #000000;\">(</span> hQuery, .F. <span style=\"color: #000000;\">)</span><br /><br /> oHttp := TIPClientHTTP<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"http://adaptaproyectoserp.com.ve/webservices/client.php\"</span>, .T. <span style=\"color: #000000;\">)</span><br /> hQuery<span style=\"color: #000000;\">[</span> <span style=\"color: #ff0000;\">\"nombre\"</span> <span style=\"color: #000000;\">]</span> := <span style=\"color: #ff0000;\">\"THefull The BEST!\"</span><br /> <br /> <span style=\"color: #00C800;\">IF</span> ! oHttp:<span style=\"color: #000000;\">open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"Error: oHttp:open(): \"</span> + oHttp:<span style=\"color: #000000;\">lastErrorMessage</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> <span style=\"color: #00C800;\">IF</span> ! oHttp:<span style=\"color: #000000;\">post</span><span style=\"color: #000000;\">(</span> hQuery <span style=\"color: #000000;\">)</span><br /> ? <span style=\"color: #ff0000;\">\"Error: oHttp:post(): \"</span> + oHttp:<span style=\"color: #000000;\">lastErrorMessage</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> cResponse := oHttp:<span style=\"color: #000000;\">readAll</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oHttp:<span style=\"color: #000000;\">close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> Alert<span style=\"color: #000000;\">(</span> cResponse <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span></div>[/code:1a47l6fd]\n\n[img:1a47l6fd]https://bitbucket.org/fivetech/screenshots/downloads/webservice_fivetouch.JPG[/img:1a47l6fd]",
"time": "12:49",
"topic": "Accediendo a un web service desde FiveTouch!!!",
"username": "Antonio Linares"
}
] |
Accediendo a un web service desde FiveTouch!!!
|
[
{
"date": "2015-11-26",
"forum": "FiveTouch",
"text": "Usándolo con FiveTouch para Android:\n\n[img:1o2ne87c]https://bitbucket.org/fivetech/screenshots/downloads/fivetouch_web_service_android1.png[/img:1o2ne87c]\n\n[img:1o2ne87c]https://bitbucket.org/fivetech/screenshots/downloads/fivetouch_web_service_android2.png[/img:1o2ne87c]",
"time": "22:59",
"topic": "Accediendo a un web service desde FiveTouch!!!",
"username": "Antonio Linares"
}
] |
Accediendo a un web service desde FiveTouch!!!
|
[
{
"date": "2015-11-27",
"forum": "FiveTouch",
"text": "muy bien",
"time": "15:25",
"topic": "Accediendo a un web service desde FiveTouch!!!",
"username": "sygecom"
}
] |
Accediendo a un web service desde FiveTouch!!!
|
[
{
"date": "2015-11-28",
"forum": "FiveTouch",
"text": "Un placer como siempre ayudando a la comunidad <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->",
"time": "21:58",
"topic": "Accediendo a un web service desde FiveTouch!!!",
"username": "thefull"
}
] |
Accediendo a un web service desde FiveTouch!!!
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Can a button be activated via a keyboard shortcut instead via mouse ? For example: Alt-N (next). Thank you.",
"time": "09:21",
"topic": "Accelerator keys for buttons ? (SOLVED)",
"username": "HunterEC"
}
] |
Accelerator keys for buttons ? (SOLVED)
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\nIf you are not talking about the buttons used in the Dialogs, Yes you can\r\nuse '&' before the character which you want to use with Alt combination\r\nas under. \r\n\r\n[code:1o9jx385]\n\nThrough Code :\n\n@ 15,15 BUTTON \"&Next\" SIZE 35, 12 ;\n ACTION MsgInfo( \"Any action here!\" ) DEFAULT\n\nor\n\nThrough Resources :\n\nREDEFINE BUTTON PROMPT \"&Next\" ID 120 OF oDlg \n ACTION oPags:GoPrev()\n\n[/code:1o9jx385]\n\nBut you can't use keyboard for the buttons used in the toolbar. You have\nto use mouse to select them.\n\nRegards,\n\n- Ramesh Babu P\n\n\n[/code]",
"time": "09:51",
"topic": "Accelerator keys for buttons ? (SOLVED)",
"username": "RAMESHBABU"
}
] |
Accelerator keys for buttons ? (SOLVED)
|
[
{
"date": "2008-11-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rameshbabu:\r\n\r\nThank you for the tip, but I need it for a dialog button.",
"time": "17:00",
"topic": "Accelerator keys for buttons ? (SOLVED)",
"username": "HunterEC"
}
] |
Accelerator keys for buttons ? (SOLVED)
|
[
{
"date": "2008-11-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\n[code:20w88qvv]\n>>but I need it for a dialog button.\n[/code:20w88qvv]\r\n\r\nI did not understand what you mean. Can you pelease show me the\r\ncode.\r\n\r\nRegards,\r\n\r\n- Ramesh Babu P",
"time": "04:56",
"topic": "Accelerator keys for buttons ? (SOLVED)",
"username": "RAMESHBABU"
}
] |
Accelerator keys for buttons ? (SOLVED)
|
[
{
"date": "2008-11-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\nTo my opinion you can only use keyboard shortcuts in button if you are using plain text in the button (e.g. \"&Next\").\r\n\r\nIf you are using bitmaps into your buttons, you can only use specials keys (function keys, insert, delete, etc.) to be connected to your button.\r\n\r\nYou can do this by using :[code:21qn32ny]SET KEY VK_NEXT TO Your_Function\".[/code:21qn32ny]\r\nGood luck.",
"time": "11:12",
"topic": "Accelerator keys for buttons ? (SOLVED)",
"username": "driessen"
}
] |
Accelerator keys for buttons ? (SOLVED)
|
[
{
"date": "2008-12-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you guys, problem solved with the &. <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) -->",
"time": "06:15",
"topic": "Accelerator keys for buttons ? (SOLVED)",
"username": "HunterEC"
}
] |
Accelerator keys for buttons ? (SOLVED)
|
[
{
"date": "2009-09-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Antonio,\n\n[color=#BF0000:1w6lgj2f][b:1w6lgj2f]* Enhancement: Class TBtnBmp now supports Accelerators keys.[/b:1w6lgj2f][/color:1w6lgj2f]\nThis feature is working when the ::Focus is on BtnBmp() but if ::Focus is on TXBrowse or TWBrowse, it's not working.\n\nJust report.\n\nRegards,\nDutch",
"time": "18:33",
"topic": "Accelerators Keys on TBtnBmp has still some problem?",
"username": "dutch"
}
] |
Accelerators Keys on TBtnBmp has still some problem?
|
[
{
"date": "2016-09-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Guys:\n\nI have customers still running in Windows XP. When they type the Alt-number (Alt-165, Alt-164, Alt-160, etc.) combination to get Spanish accentuated characters sometimes it hangs up or displays the wrong characters. This does not happens in Windows 10. Any ideas ?\n\nThank you very much !",
"time": "01:45",
"topic": "Accentuated characters in XP",
"username": "HunterEC"
}
] |
Accentuated characters in XP
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It is possible to do this :\nselect 0\nuse \\\\192.168.10.3\\DATA\\XYZ.DBF\n\nHow to establish the connection to the server (user name and password) if there is not network letter already mapped ??\nThanks .",
"time": "09:40",
"topic": "Acces of a file with IP Adress",
"username": "Jack"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Try using WNetAddCon() function.\n\nEMG",
"time": "10:17",
"topic": "Acces of a file with IP Adress",
"username": "Enrico Maria Giordano"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for this answer .\nI dont want to use a drive letter because i dont want the user to be able\nto explore the network drive .",
"time": "10:48",
"topic": "Acces of a file with IP Adress",
"username": "Jack"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry, I don't know.\n\nEMG",
"time": "11:12",
"topic": "Acces of a file with IP Adress",
"username": "Enrico Maria Giordano"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jack\n\nUNC paths work just fine .. however i would be careful in a WAN environment .. just too many things can happen over long distances .. users still need share rights to your databases .. \n\nI use \\\\server\\volume\\folder\\table.dbf ... all the time and you can set defa to a unc as well and then just select as usual.\n\nRick Lipkin",
"time": "11:37",
"topic": "Acces of a file with IP Adress",
"username": "Rick Lipkin"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\nThanks for your help .\nHow to have access to the server (how to log) before the use of the Unc.\nI dont want that the user have access to the network drive with explorer .\n\nThanks",
"time": "12:00",
"topic": "Acces of a file with IP Adress",
"username": "Jack"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jack\n\nI agree with you .. I have used UNC access for just that reason .. I don't want people running thru a mapped drive with Explorer to get to my application just to open the tables in Excel and really mess things up.\n\nYou can use either a DNS name like :\n\nuse (\\\\myserver\\volume\\folder\\table.dbf)\n\nor\n\nuse ( \\\\10.1.10.111\\volume\\folder\\table.dbf )\n\nAgain .. users will need full rights to the application folder, but it does not need to be mapped.\n\nRick Lipkin",
"time": "13:55",
"topic": "Acces of a file with IP Adress",
"username": "Rick Lipkin"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2008-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\nThanks for your help,\nit works fine .",
"time": "16:04",
"topic": "Acces of a file with IP Adress",
"username": "Jack"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2009-09-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Rick,\n[quote:1r2pnpbu]use (\\\\myserver\\volume\\folder\\table.dbf)\nor\nuse ( \\\\10.1.10.111\\volume\\folder\\table.dbf )[/quote:1r2pnpbu]\n\nCould you show how to pass user and password?\n\nThanks in advance\nOtto",
"time": "22:04",
"topic": "Acces of a file with IP Adress",
"username": "Otto"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2009-09-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Otto\n\nYour user will need prior authendication rights given to them from their Network Admin .. once they have folder permisions the UNC will work fine .. no userid or password is necessary.\n\nThis will even work and span servers as long as the proper user permissions are set\n\n\\\\server1\\volume\\folder\\table.dbf\n\\\\server2\\volume\\folder\\table.dbf\n\nAs long as the user has permissions to the above folder on either server .. \n\nselect 0\nuse( \"\\\\server1\\volume\\folder\\table.dbf\") via DBFCDX shared\n\nor\n\nselect 0\nuse( \"\\\\server2\\volume\\folder\\table.dbf\") via DBFCDX shared\n\nwill work.\n\nIf you know the server1 or server2 IP address .. you can substitute the address for the server name\n\nServer1 IP is 10.1.34.40\nServer2 IP is 10.1.34.41\n\nselect 0\nuse( \"\\\\10.1.34.40\\volume\\folder\\table.dbf\") via DBFCDX shared\n\nor\n\nselect 0\nuse( \"\\\\10.1.34.41\\volume\\folder\\table.dbf\") via DBFCDX shared\n\nEverything I have said here assumes the above server(s) are within the same organization and firewall .. anything outside of that you will need a different strategy.\n\nHope that helps ..\n\nRick Lipkin",
"time": "23:29",
"topic": "Acces of a file with IP Adress",
"username": "Rick Lipkin"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2009-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "new Harbour 2.0beta3 support it!!\n NETIO_CONNECT( \"192.168.0.1\" )\n use net:table1\n NETIO_CONNECT( \"192.168.0.2\" )\n use net:table2\n use net:192.168.0.3:table3",
"time": "02:38",
"topic": "Acces of a file with IP Adress",
"username": "Sheng"
}
] |
Acces of a file with IP Adress
|
[
{
"date": "2020-10-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola buenas tardes estimados, despues de casi 3 años que estuve fuera de programacion, ya reactive de nuevo mi cuenta y restableci mi clave, ya que me sali fuera de la programacion de fivewin.\n\nEspero que se encuentren todos bien en este foro tan esplendido que al parecer ya existen nuevas actualizaciones y mejoras, es un gusto saber que aun continuan mejorando el lenguaje y ando desactualizado y creo que ya olvide como programar segun yo.\n\nEl motivo por el cual estoy segun de regreso es por una necesidad de solicitarles un favor de como accesar al motor de las bases de datos tablas de SQL con un pequeño codigo de programacion en prg de como hacer conexiones y mostrarlo en browse, les adjunto las tablas de sql. \nEs que necesito extraer alguna informacion de consulta, pero no logro como hacer la conexion o que se necesita instalar en una pc aparte y no estar directamente en el servidor principal que ahi se encuentran la base principal ando perdido en ese detalle de conexiones a las tablas SQL.\n\nEspero que con esos datos sea suficiente para el acceso a la tabla.\n\nusuario : sa\nClave : Solo1$$\n\nAqui le adjunto en archivo comprimido de las tablas que extrai.\n\n[url:g3llvji7]https://www.4shared.com/account/home.jsp#dir=a_9IZFb7[/url:g3llvji7]\n\n\nSera que me puedan apoyar al respecto por favor?\n\nEspero sus comentarios.\nGracias\n\nAtte: Adriano C. C.",
"time": "18:28",
"topic": "Accesar a las tablas tipo SQL",
"username": "ACC69"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-10-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Have a look at \\samples\\adorick.prg ... shows how to make a connection to MS Access .. how to access tables via ADO ( recordsets ) .. browses with xBrowse \n\nRick Lipkin",
"time": "14:50",
"topic": "Accesar a las tablas tipo SQL",
"username": "Rick Lipkin"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-10-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Rick Lipkin\":3izt640p]Have a look at \\samples\\adorick.prg ... shows how to make a connection to MS Access .. how to access tables via ADO ( recordsets ) .. browses with xBrowse \n\nRick Lipkin[/quote:3izt640p]\n\n\nHola buenos dias Ing. Rick gracias por responder, pero el detalle es este por la extension de la base de datos que no logro ubicarme que no me deja accesar a la tabla, y pues no tengo ni idea que necesito instalar pero en el servidor esta instalado SQL Server Management Studio no se que version sea, pero el detalle por prg es lo que no logro como hacer conexion, no se si tenga que ver estas dos extensiones que de la base de datos, es por eso que adjunte en el archivo comprimido.\n\nEstas son las dos bases de datos pero de diferente extension uno es de .mdf y el otro .LDF\n\nct004_MEZZ_CORP_SA_DE_CV_DIC_2014_C.mdf\nct004_MEZZ_CORP_SA_DE_CV_DIC_2014_C_log.LDF\n\nY entonces cual de estos es lo que yo necesito accesar, alguien que tenga experiencia y haya logrado conectarse desde programa de un ejemplo de prg de fivewin?, solo necesito hacer consultas a los registros de la base de datos y crear informes, eso es todo lo que se me dificulta es hacer la conexion y por medio de un browse visualizar registros o si el Ing. Nages me puede apoyar al respecto.\n\nGracias y saludos a todos.\n\nAtte: Adriano C. C.",
"time": "16:47",
"topic": "Accesar a las tablas tipo SQL",
"username": "ACC69"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-10-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Rick Lipkin\":2div0qsa]Have a look at \\samples\\adorick.prg ... shows how to make a connection to MS Access .. how to access tables via ADO ( recordsets ) .. browses with xBrowse \n\nRick Lipkin[/quote:2div0qsa]\n\n\nHola buenos dias Ing. Rick gracias por responder, pero el detalle es este por la extension de la base de datos que no logro ubicarme que no me deja accesar a la tabla, y pues no tengo ni idea que necesito instalar pero en el servidor esta instalado SQL Server Management Studio no se que version sea, pero el detalle por prg es lo que no logro como hacer conexion, no se si tenga que ver estas dos extensiones que de la base de datos, es por eso que adjunte en el archivo comprimido.\n\nEstas son las dos bases de datos pero de diferente extension uno es de .mdf y el otro .LDF\n\nct004_MEZZ_CORP_SA_DE_CV_DIC_2014_C.mdf\nct004_MEZZ_CORP_SA_DE_CV_DIC_2014_C_log.LDF\n\nY entonces cual de estos es lo que yo necesito accesar, alguien que tenga experiencia y haya logrado conectarse desde programa de un ejemplo de prg de fivewin?, solo necesito hacer consultas a los registros de la base de datos y crear informes, eso es todo lo que se me dificulta es hacer la conexion y por medio de un browse visualizar registros o si el Ing. Nages me puede apoyar al respecto.\n\nGracias y saludos a todos.\n\nAtte: Adriano C. C.",
"time": "16:48",
"topic": "Accesar a las tablas tipo SQL",
"username": "ACC69"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-10-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Adriano\nme parece que tienes que agregarlo desde el sql management studio, presiona attach y selecciona tu archivo .mdf\n [url=https://postimg.cc/cKD0fMDb:httjw8ep][img:httjw8ep]https://i.postimg.cc/cKD0fMDb/82sHU.png[/img:httjw8ep][/url:httjw8ep]",
"time": "18:21",
"topic": "Accesar a las tablas tipo SQL",
"username": "artu01"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-11-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"artu01\":krayeys0]Adriano\nme parece que tienes que agregarlo desde el sql management studio, presiona attach y selecciona tu archivo .mdf\n [url=https://postimg.cc/cKD0fMDb:krayeys0][img:krayeys0]https://i.postimg.cc/cKD0fMDb/82sHU.png[/img:krayeys0][/url:krayeys0][/quote:krayeys0]\n\nHola gracias Ing. Art01, esa parte ya logre adjuntar el archivo, pero ahora como hacer conexion desde mi codigo fuente de prg y editar la base de datos solo consultar registros es lo que requiero, alguien me puede tirar un ejemplo?.\n\nGracias.\n\nAtte: Adriano C. C.\n\n<!-- e --><a href=\"mailto:acc69@hotmail.com\">acc69@hotmail.com</a><!-- e -->",
"time": "19:44",
"topic": "Accesar a las tablas tipo SQL",
"username": "ACC69"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-11-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Adriano en el foro puedes encontrar muchos ejemplos de accesar a tablas sql, aqui tienes un ejemplo\n[code=fw:2yhvhald]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ado.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /> xsource:=<span style=\"color: #ff0000;\">\"localhost\"</span> <span style=\"color: #B900B9;\">//nombre servidor</span><br /> xCatalog:=<span style=\"color: #ff0000;\">\"arturo\"</span> <span style=\"color: #B900B9;\">// nombre bd</span><br /> xUserID:= <span style=\"color: #ff0000;\">\"root\"</span> <span style=\"color: #B900B9;\">// user</span><br /> xPassword:=<span style=\"color: #ff0000;\">\"123456\"</span> <span style=\"color: #B900B9;\">// password</span><br /> <br /> oCn := FW_OpenAdoConnection<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"SQL\"</span>, xSource, xCatalog, xUserID, xPassword <span style=\"color: #000000;\">}</span>, .t. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> oCn == <span style=\"color: #00C800;\">nil</span><br /> ? <span style=\"color: #ff0000;\">\"conexion fallida\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /> ? <span style=\"color: #ff0000;\">\"Conexion exitosa\"</span><br /> <br /> lRs:=.f.<br /> cSql:= <span style=\"color: #ff0000;\">\"SELECT * from tu_tabla \"</span><br /> <br /> <br /> <span style=\"color: #00C800;\">TRY</span><br /> oRs := FW_OpenRecordSet<span style=\"color: #000000;\">(</span> oCn, cSql <span style=\"color: #000000;\">)</span><br /> lRs:=.t.<br /> catch<br /> ? <span style=\"color: #ff0000;\">\"Error en lectura\"</span><br /> endtry<br /> <br /> <span style=\"color: #00C800;\">if</span> lRs<br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"BRW_GUIA\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Notas de Pedido\"</span> <br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw ;<br /> DATASOURCE oRs ;<br /> COLUMNS <span style=\"color: #ff0000;\">\"FACBOL\"</span>,<span style=\"color: #ff0000;\">\"FECHA\"</span>,<span style=\"color: #ff0000;\">\"NUMERO\"</span>,<span style=\"color: #ff0000;\">\"RAZSOC\"</span>,<span style=\"color: #ff0000;\">\"MONEDA\"</span>, ;<br /> <span style=\"color: #ff0000;\">\"TOTBRUTO\"</span>,<span style=\"color: #ff0000;\">\"TOTDSCTO\"</span>,<span style=\"color: #ff0000;\">\"TOTSUB\"</span>,<span style=\"color: #ff0000;\">\"TOTIGV\"</span>,<span style=\"color: #ff0000;\">\"TOTAL\"</span> ;<br /> FIELDSIZES <span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">68</span>,<span style=\"color: #000000;\">54</span>,<span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">30</span>,<span style=\"color: #000000;\">85</span>,<span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">60</span>,<span style=\"color: #000000;\">85</span> ;<br /> HEADERS ;<br /> <span style=\"color: #ff0000;\">\"F/B\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"FECHA\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"NUMERO\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"CLIENTE\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"MON.\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"T.BRUTO\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"T.DSCTO\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"SUBTOT\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"IGV\"</span> ;<br /> ,<span style=\"color: #ff0000;\">\"TOTAL\"</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4001</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> LINES CELL NOBORDER <span style=\"color: #0000ff;\">UPDATE</span> <br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /> <br /> oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> oCn:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> </div>[/code:2yhvhald]",
"time": "03:47",
"topic": "Accesar a las tablas tipo SQL",
"username": "artu01"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-11-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Aqui otra manera de conectarse\n\n[code=fw:3adw1fm0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">TRY</span><br /> oCnMsq:=toleauto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"adodb.connection\"</span><span style=\"color: #000000;\">)</span><br />CATCH oError<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"No se ha podido crear la conexión !\"</span>, <span style=\"color: #ff0000;\">\"Error de datos\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br />END<br /><br />oCnMsq:<span style=\"color: #000000;\">ConnectionString</span>:=<span style=\"color: #ff0000;\">\"Driver={SQL Server};\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Server=SERVER;\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Database=mydbase;\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Uid=SA;\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Pwd=miclave;\"</span><br /><span style=\"color: #00C800;\">TRY</span><br /> oCnMsq:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />CATCH oError<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"No pude abrir la conexión para crear las tablas !\"</span>, <span style=\"color: #ff0000;\">\"Error de datos\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br />END<br /> </div>[/code:3adw1fm0]",
"time": "12:16",
"topic": "Accesar a las tablas tipo SQL",
"username": "leandro"
}
] |
Accesar a las tablas tipo SQL
|
[
{
"date": "2020-11-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"leandro\":2cs4m7lw]Aqui otra manera de conectarse\n\n[code=fw:2cs4m7lw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">TRY</span><br /> oCnMsq:=toleauto<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"adodb.connection\"</span><span style=\"color: #000000;\">)</span><br />CATCH oError<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"No se ha podido crear la conexión !\"</span>, <span style=\"color: #ff0000;\">\"Error de datos\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br />END<br /><br />oCnMsq:<span style=\"color: #000000;\">ConnectionString</span>:=<span style=\"color: #ff0000;\">\"Driver={SQL Server};\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Server=SERVER;\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Database=mydbase;\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Uid=SA;\"</span>+;<br /> <span style=\"color: #ff0000;\">\"Pwd=miclave;\"</span><br /><span style=\"color: #00C800;\">TRY</span><br /> oCnMsq:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br />CATCH oError<br /> MsgStop<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"No pude abrir la conexión para crear las tablas !\"</span>, <span style=\"color: #ff0000;\">\"Error de datos\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">(</span>.F.<span style=\"color: #000000;\">)</span><br />END<br /> </div>[/code:2cs4m7lw][/quote:2cs4m7lw]\n\n\nHola buenos dias gracias a ambos al Ing. Artu01 y al ing. Leandro por sus amables ejemplos, lo adaptare a mi necesidad y lograr conectarme.\n\nSaludos y buen dia!\n\nAtte: Adriano C. C.",
"time": "15:37",
"topic": "Accesar a las tablas tipo SQL",
"username": "ACC69"
}
] |
Accesar a las tablas tipo SQL
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.