messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2019-08-04", "forum": "mod_harbour", "text": "Get ready to blow your mind... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThis code is a \"loader\" that automatically turns any HTML into a self-executable mod_harbour app... without having to install mod_harbour !!!\n\nautorun.html\n[img:11j3umux]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/autorun_modharbour&#46;JPG?raw=true[/img:11j3umux]", "time": "18:37", "topic": "AutoRun HTML !!!", "username": "Antonio Linares" } ]
AutoRun HTML !!!
[ { "date": "2019-08-07", "forum": "mod_harbour", "text": "Dear Antonio,\nwhat do we use autorun for.\nBest regards\nOtto", "time": "17:55", "topic": "AutoRun HTML !!!", "username": "Otto" } ]
AutoRun HTML !!!
[ { "date": "2019-08-07", "forum": "mod_harbour", "text": "You could save these pages in a place like GitHub or a host where there is no way to install mod_harbour, but using\nthe auto loader, it connects to a remote \"harbour server\" and starts working <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThis opens the idea of providing \"Harbour servers\" for xbase development on the web", "time": "21:40", "topic": "AutoRun HTML !!!", "username": "Antonio Linares" } ]
AutoRun HTML !!!
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there an autosize property in the say object?\nThanks in advance\nOtto", "time": "22:27", "topic": "AutoSize oSay", "username": "Otto" } ]
AutoSize oSay
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "If you omit the SIZE clause then the SAY object is autosize.\n\nEMG", "time": "23:33", "topic": "AutoSize oSay", "username": "Enrico Maria Giordano" } ]
AutoSize oSay
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "How can I do this with workshop?\nregards,\nOtto", "time": "08:00", "topic": "AutoSize oSay", "username": "Otto" } ]
AutoSize oSay
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "You have to calculate the width of the text using GetTextWidth() function and then to use the Move() method to resize the SAY object.\n\nEMG", "time": "13:58", "topic": "AutoSize oSay", "username": "Enrico Maria Giordano" } ]
AutoSize oSay
[ { "date": "2005-12-12", "forum": "FiveWin para CA-Clipper", "text": "Hola a todos.\n\nCreo recordar algo sobre una clase para manejar archivos de Autocad. ¿Alguien sabe algo de esto?\n\nEn concreto necesito imprimir desde mi aplicación archivos DWG. Creo que con Autocad se puede hacer una conexión OLE, pero no todos los puestos desde donde se van a imprimir los planos tienen el Autocad. Estoy mirando VoloView y otras utilidades parecidas, pero de momento ando un poco perdido.\n\nSaludos", "time": "11:04", "topic": "Autocad", "username": "Sebastián Almirón" } ]
Autocad
[ { "date": "2005-12-12", "forum": "FiveWin para CA-Clipper", "text": "Hola Sebastian:\nTomado del foro anterior:\n\nSalu2Willi\n\n\n\nHola Foro\n\nAqui les tengo un cad completo hecjo con FWH\n\npueden bajarlo de\n<!-- m --><a class=\"postlink\" href=\"http://www.hechoenbolivia.com/quark\">http://www.hechoenbolivia.com/quark</a><!-- m -->\n\nsaludos\nArturo Tamayo Daza", "time": "15:07", "topic": "Autocad", "username": "Willi Quintana" } ]
Autocad
[ { "date": "2005-12-12", "forum": "FiveWin para CA-Clipper", "text": "Gracias Willi, le hecharé un vistazo. \n\nSaludos", "time": "16:20", "topic": "Autocad", "username": "Sebastián Almirón" } ]
Autocad
[ { "date": "2005-12-14", "forum": "FiveWin para CA-Clipper", "text": "Hello\n\nCould you tell me how to display AutoCAD file type .DWG?\nI want to display .DWG into my Resource Dialog or windows?\n\nThank you.\n\nRichard", "time": "14:52", "topic": "Autocad", "username": "Taiwan" } ]
Autocad
[ { "date": "2007-02-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien sabe si un programa fivewin puede autofinalizar pasado algun tiempo de no utilizarse. Mucha gente se olvida de cerrar su ordenador y puede perfectamente quedar varios dias con el programa y las bases de datos abiertas. el servidor depende de otro departamento y muchas veces cuando quiero desconectar los procesos tengo que llamarles y amenudo no les pillo puesto que funcionamos con turnos diferentes. Habia pensado en un timer, pero como se cuando el programa utiliza el ordenador o sencillamente existe la posibilidad de terminar el programa sin la colaboracion del usuario. Alguna idea?", "time": "10:21", "topic": "Autocierre del programa", "username": "Andrés González" } ]
Autocierre del programa
[ { "date": "2019-12-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:2vf2n2mr]https&#58;//mybergland&#46;com/fwforum/button&#46;gif[/img:2vf2n2mr]", "time": "10:16", "topic": "Autocode", "username": "Otto" } ]
Autocode
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nAUTOCODE \nvisual editing of Fivewin classes.\nBest regards,\nOtto\n\n[url:580tvqp2]http&#58;//www&#46;bergland&#46;info/fw/Autocode&#46;mp4[/url:580tvqp2]", "time": "18:11", "topic": "Autocode show", "username": "Otto" } ]
Autocode show
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto, congratulations\nIt is a wonder, great work", "time": "19:33", "topic": "Autocode show", "username": "cnavarro" } ]
Autocode show
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\nthank you.\nThe sad thing about no one is using it.\n\nBest regards,\nOtto", "time": "19:37", "topic": "Autocode show", "username": "Otto" } ]
Autocode show
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto\nWhere I downloaded the latest version?", "time": "21:17", "topic": "Autocode show", "username": "cnavarro" } ]
Autocode show
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\nplease send me an email.\notto [at-sign]\natzwanger \n[.]com\nBest regards,\nOtto", "time": "21:55", "topic": "Autocode show", "username": "Otto" } ]
Autocode show
[ { "date": "2015-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Sent, thanks", "time": "22:27", "topic": "Autocode show", "username": "cnavarro" } ]
Autocode show
[ { "date": "2015-10-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Sent mail, thanks", "time": "05:35", "topic": "Autocode show", "username": "bpd2000" } ]
Autocode show
[ { "date": "2015-10-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nHave considered to host it at bitbucket ?\n\nAll FiveTech tools are stored there", "time": "10:36", "topic": "Autocode show", "username": "Antonio Linares" } ]
Autocode show
[ { "date": "2015-11-02", "forum": "FiveWin for Harbour/xHarbour", "text": "This is really a wonderful tool. \n1. It never gets obsolete, because it uses *.ch files in fwh\\include folder. So it always helps us with the latest syntax.\n2. We never go wrong or commit syntax errors if we use it.\n\nIf we really start using it, it becomes an addiction.", "time": "17:48", "topic": "Autocode show", "username": "nageswaragunupudi" } ]
Autocode show
[ { "date": "2015-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Where can I get it?\nDoes it work wit any editor?", "time": "16:44", "topic": "Autocode show", "username": "AHF" } ]
Autocode show
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Otto;\n\nHow are you?\n\nWill AutoCode work with resources?\n\nFor example, this code does not seem to be understood by AutoCode:\n\n[code=fw:1qh7deqj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> ::<span style=\"color: #000000;\">oDlg</span> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Patient\"</span> <span style=\"color: #0000ff;\">TITLE</span> cTitle <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oOwner</span> TRANSPARENT ;<br />      <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">240</span>,<span style=\"color: #000000;\">240</span>,<span style=\"color: #000000;\">240</span><span style=\"color: #000000;\">&#41;</span> ;<br />        GRADIENT <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">217</span>, <span style=\"color: #000000;\">227</span>, <span style=\"color: #000000;\">234</span> <span style=\"color: #000000;\">&#41;</span> , nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">237</span>, <span style=\"color: #000000;\">242</span>, <span style=\"color: #000000;\">248</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:1qh7deqj]\n\n\nReinaldo.", "time": "03:44", "topic": "Autocode show", "username": "reinaldocrespo" } ]
Autocode show
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Look\n\n[url=http&#58;//postimage&#46;org/:1fqksyur][img:1fqksyur]http&#58;//s27&#46;postimg&#46;org/d9ymk1h4z/Title230&#46;png[/img:1fqksyur][/url:1fqksyur]", "time": "05:48", "topic": "Autocode show", "username": "cnavarro" } ]
Autocode show
[ { "date": "2015-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hey Cristóbal, \n\nI tried two different virtual windows machines. There must be some editor problems or configuration that I'm missing. It just doesn't work on my end but I'll keep searching see if I find what's wrong.\n\nThank you,\n\nReinaldo.", "time": "15:20", "topic": "Autocode show", "username": "reinaldocrespo" } ]
Autocode show
[ { "date": "2011-11-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Desde el sistema informático envío mail's.\n\nTengo una casilla memo donde rellenan los destinatarios del correo.\n\nEstoy intentando diseñar la captura de los destinatarios al estilo outlook\n\n[url=http&#58;//imageshack&#46;us/photo/my-images/27/outlookp&#46;png/:3dne6cjx][img:3dne6cjx]http&#58;//img27&#46;imageshack&#46;us/img27/1222/outlookp&#46;png[/img:3dne6cjx][/url:3dne6cjx]\n\nUploaded with [url=http&#58;//imageshack&#46;us:3dne6cjx]ImageShack.us[/url:3dne6cjx]\n\nExiste alguna posibilidad?, alguien a realizado algo parecido?", "time": "11:26", "topic": "Autocompletar mail", "username": "fgondi" } ]
Autocompletar mail
[ { "date": "2011-11-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos fgondi;\n\nrevisate \n[url:1m5eo8rx]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=21772&hilit=autocomplete[/url:1m5eo8rx]\n\nlo unico que veo distinto es seguir llenando en el get.", "time": "16:21", "topic": "Autocompletar mail", "username": "mag071" } ]
Autocompletar mail
[ { "date": "2011-11-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos,\n\nMuchas gracias.\n\nYa había visto la clase AutoGet pero:\n\n1.- Sirve para un Get no para un Memo (aunque se podría adaptar)\n2.- No muestra una lista desplegable con la opciones.\n\nTambién he revisado de James Bott:\n[url:8aybdibo]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=22106&hilit=autoget[/url:8aybdibo]\nQue se acerca mas a lo que quiero. Pero esta opción no permitiría seguir llenando el get (mas de una captura en la misma casilla)", "time": "19:23", "topic": "Autocompletar mail", "username": "fgondi" } ]
Autocompletar mail
[ { "date": "2008-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\r\n\r\nI know that is question has been asked before, but is there a class for autocomplete like in Internet-Explorer. So you type something, and the autocomplete will be in blue-reverse.\r\n\r\nI use to have a class in FW16bit, but it doesn't work anymore in FWH.\r\n\r\nIn that class I specified the get-field and an array with all the valid get-values.\r\n\r\nThanks,\r\nRegards,\r\nMarc", "time": "09:42", "topic": "Autocomplete in tGet", "username": "Marc Vanzegbroeck" } ]
Autocomplete in tGet
[ { "date": "2008-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Mark,\r\n\r\nI found this class from Maurilio Viana\r\n\r\n[code:3la4taf0]// TAutoGet&#46;prg\n// Auto complete text in get features\n// By&#58; Maurilio Viana, mouri_ryo@hotmail&#46;com\n// Date&#58; 4/25/2007\n// New features, bug fixes and enhancements are welcome &#58;-&#41;\n// Please, let me now when you include new features, bug fixes etc in this class\n//\n// ToDo&#58; Show drop down window with possible options when typing\n//\n\n/* Revisions 4/25/2007 10&#58;49AM by James Bott\nMethod AutoFill&#58; nKey was not defined as a LOCAL&#46; Fixed&#46;\nMethod AutoFill&#58; nLength was mispelled &#40;as nLenght&#41;&#46; Fixed&#46;\nMethod AutoFill&#58; &#58;&#58;Cargo changed to &#58;&#58;lAuto &#40;see reason below&#41;\nMethod AutoFill&#58; Changed to using vkey&#46;ch manifest constants instead of numbers&#46;\nMethod Redefine&#58; Was passing aItems to the parent method &#40;not needed&#41;&#46;\nMethod LostFocus&#58; Added this method&#46;\nMethos New&#40;&#41; and Redefine&#40;&#41;&#46; Was passing bChanged, and then &#58;&#58;bChange to parent&#46; Fixed&#46;\n\nIt is not a good idea to use &#58;&#58;Cargo, &#58;&#58;bPostKey, or &#58;&#58;bLostFocus in the class since these\nthen cannot be used by the programmer&#46; It would be better to subclass the needed methods and add\nwhatever functionality needed&#46; So, &#58;&#58;Cargo and &#58;&#58;bLostFocus were eliminated&#46;\n\nUnfortuneately, not using &#58;&#58;bPostKey is somewhat of a challenge&#46; We can subclass KeyDown&#40;&#41; and\nKeyChar&#40;&#41; but some of each method will have to be copied into the new methods and thus if there\nare any changes to these sections of code in future versions of TGET, then this method in\nTAutoGet will have to be updated also&#46;\n\nBug?&#58; If the items in &#58;&#58;aArray are in proper case, e&#46;g&#46; \"Mauro,\" they are automatically converted\nto proper case when autofilled, however, if you backspace they are converted to all lower case&#46;\n\n*/\n\n#include \"fivewin&#46;ch\"\n\n//---------------------------------------------------------------------------//\n\nCLASS TAutoGet FROM TGet\n DATA aItems AS ARRAY\n DATA lAuto AS LOGICAL\n\n METHOD New&#40; nRow , nCol , bSetGet , oWnd , nWidth , nHeight,;\n cPict , bValid , nClrFore , nClrBack , oFont , lDesign,;\n oCursor , lPixel , cMsg , lUpdate , bWhen , lCenter,;\n lRight , bChanged, lReadOnly, lPassword, lNoBorder, nHelpID,;\n lSpinner, bUp , bDown , bMin , bMax , aItems &#41; CONSTRUCTOR\n\n METHOD ReDefine&#40; nID , bSetGet , oWnd , nHelpId , cPict, bValid ,;\n nClrFore, nClrBack, oFont , oCursor , cMsg , lUpdate,;\n bWhen , bChanged, lReadOnly, lSpinner, bUp , bDown ,;\n bMin , bMax, aItems &#41; CONSTRUCTOR\n METHOD SetItems&#40; aItems &#41;\n METHOD AutoFill&#40;&#41;\n METHOD LostFocus&#40; hWndGetFocus &#41; inline &#58;&#58;SetPos&#40;1&#41;, &#58;&#58;lAuto &#58;= Nil, &#58;&#58;super&#58;LostFocus&#40; hWndGetFocus &#41;\nEND CLASS\n\n//---------------------------------------------------------------------------//\n\nMETHOD New&#40;nRow , nCol , bSetGet , oWnd , nWidth , nHeight , cPict ,;\n bValid , nClrFore , nClrBack, oFont , lDesign, oCursor , lPixel ,;\n cMsg , lUpdate , bWhen , lCenter , lRight , bChanged, lReadOnly,;\n lPassword, lNoBorder, nHelpId , lSpinner, bUp , bDown , bMin ,;\n bMax , aItems&#41; CLASS TAutoGet\n local nLen, i\n\n Super&#58;New&#40;nRow , nCol , bSetGet , oWnd , nWidth , nHeight,;\n cPict , bValid , nClrFore , nClrBack , oFont , lDesign,;\n oCursor, lPixel , cMsg , lUpdate , bWhen , lCenter,;\n lRight , bChanged, lReadOnly, lPassword, lNoBorder, nHelpId,;\n lSpinner, bUp , bDown , bMin , bMax &#41;\n\n if&#40;aItems == Nil, aItems &#58;= &#123;&#125;, &#41;\n\n &#58;&#58;aItems &#58;= aItems\n\n &#58;&#58;bPostKey &#58;= &#123;|oGet, cBuffer| &#58;&#58;AutoFill&#40;&#41; &#125;\n\nreturn&#40; Self &#41;\n\n//---------------------------------------------------------------------------//\n\nMETHOD ReDefine&#40;nID , bSetGet , oWnd , nHelpId, cPict , bValid, nClrFore,;\n nClrBack , oFont , oCursor, cMsg , lUpdate, bWhen , bChanged,;\n lReadOnly, lSpinner, bUp , bDown , bMin , bMax , aItems &#41; CLASS TAutoGet\n\n Super&#58;ReDefine&#40;nID , bSetGet , oWnd , nHelpId, cPict , bValid, nClrFore ,;\n nClrBack , oFont , oCursor, cMsg , lUpdate, bWhen , bChanged,;\n lReadOnly, lSpinner, bUp , bDown , bMin , bMax &#41;\n\n\n if&#40;aItems == Nil, aItems &#58;= &#123;&#125;, &#41;\n\n &#58;&#58;aItems &#58;= aItems\n\n &#58;&#58;bPostKey &#58;= &#123;|oGet, cBuffer| &#58;&#58;AutoFill&#40;&#41; &#125;\n\nreturn&#40; Self &#41;\n\n//---------------------------------------------------------------------------//\n// Set items of AutoGet\n//---------------------------------------------------------------------------//\n\nMETHOD SetItems&#40; aItems &#41; CLASS TAutoGet\n if&#40;aItems == Nil, aItems &#58;= &#123;&#125;, &#41;\n &#58;&#58;aItems &#58;= aItems\nreturn&#40; Nil &#41;\n\n//---------------------------------------------------------------------------//\n// Auto fill text when typed based on aItems\n// Return&#58; Always returns &#46;T&#46;\n//---------------------------------------------------------------------------//\n\nMETHOD AutoFill&#40;&#41; CLASS TAutoGet\n local nPosItem &#58;= 0 // Text position into &#58;&#58;aItems\n local nPosCursor &#58;= &#58;&#58;nPos // Current cursor position\n local nLength &#58;= len&#40;&#58;&#58;cText&#41; // Text length\n local cStartTxt &#58;= left&#40;&#58;&#58;cText, nPosCursor-1&#41; // Start text &#40;position 1 to cursor position -1&#41;\n local cItem &#58;= \"\"\n local nKey &#58;= 0\n\n if len&#40;&#58;&#58;aItems&#41; = 0 // We have no items to search in this GET\n return&#40;&#46;T&#46;&#41;\n endif\n\n //-------------------------------------------------------------------------\n // We use &#58;&#58;lAuto to control when we must search in &#58;&#58;aItems for typed text\n // We must seek in &#58;&#58;aItems when GET is blank or when user clear it\n //-------------------------------------------------------------------------\n if valtype&#40;&#58;&#58;lAuto&#41; != \"L\" // Cargo isn't logical yet -> GET received focus now\n if ! empty&#40;&#58;&#58;Value&#41; // GET isn't empty\n &#58;&#58;lAuto &#58;= &#46;F&#46; // We don't use autofill\n else // GET is empty\n &#58;&#58;lAuto &#58;= &#46;T&#46; // Use autofill\n endif\n else // We are controlling if use or no autofill\n if empty&#40;&#58;&#58;Value&#41; // User could cleaned the GET text\n &#58;&#58;lAuto &#58;= &#46;T&#46; // Use autofill\n endif\n endif\n\n if ! &#58;&#58;lAuto // If don't control autofill\n return&#40;&#46;t&#46;&#41;\n endif\n\n nKey &#58;= &#58;&#58;nLastKey\n do case\n case nKey == VK_TAB &#46;or&#46; ;\n nKey == VK_RETURN &#46;or&#46; ;\n nKey == VK_DELETE\n &#58;&#58;Assign&#40;&#41; // Assign typed text\n case nKey >= 32 &#46;and&#46; nKey <= 256\n FOR EACH cItem IN &#58;&#58;aItems\n nPosItem += 1\n if ToUpper&#40; cItem &#41; = ToUpper&#40;cStartTxt&#41;\n nLength &#58;= len&#40; rtrim&#40; cItem &#41; &#41;\n cItem += space&#40; nLength - len&#40;cItem&#41; &#41;\n &#58;&#58;SetText&#40; cItem &#41;\n &#58;&#58;SetSel&#40; nPosCursor -1, nLength&#41; // Select found text\n &#58;&#58;oGet&#58;Buffer = Pad&#40; cItem, Len&#40; &#58;&#58;oGet&#58;Buffer &#41;&#41; // add by&#58;ss-bbs\n return&#40;&#46;t&#46;&#41;\n endif\n NEXT\n &#58;&#58;HideSel&#40;&#41; // Text not found -> Undo selected text\n endcase\nreturn&#40; &#46;T&#46; &#41;\n\n//---------------------------------------------------------------------------//\n// Convert latin characters to ANSI upper case\n// &#40;for some reason AnsiUpper causes a GPF with Commercial xHB&#41;\n//---------------------------------------------------------------------------//\n\nSTATIC function ToUpper&#40; cString &#41;\n cString &#58;= upper&#40; cString &#41;\n cString &#58;= strtran&#40;strtran&#40;strtran&#40;strtran&#40;cString,\"á\",\"Á\"&#41;,\"à\",\"À\"&#41;,\"ã\",\"Ã\"&#41;,\"â\",\"Â\"&#41;\n cString &#58;= strtran&#40;strtran&#40;cString,\"é\",\"É\"&#41;,\"ê\",\"Ê\"&#41;\n cString &#58;= strtran&#40;cString,\"í\",\"Í\"&#41;\n cString &#58;= strtran&#40;strtran&#40;strtran&#40;cString,\"ó\",\"Ó\"&#41;,\"õ\",\"Õ\"&#41;,\"ô\",\"Ô\"&#41;\n cString &#58;= strtran&#40;strtran&#40;strtran&#40;cString,\"ú\",\"Ú\"&#41;,\"ñ\",\"Ñ\"&#41;,\"ç\",\"Ç\"&#41;\nreturn&#40; cString &#41;\n\n//---------------------------------------------------------------------------//\n\n// --- EoF ---\n[/code:3la4taf0]\n\n[code:3la4taf0]/*----------------------------------------------------------------------------//\n!short&#58; AUTOGET */\n\n#xcommand REDEFINE AUTOGET &#91; <oGet> VAR &#93; <uVar> ;\n &#91; ID <nId> &#93; ;\n &#91; <dlg&#58; OF, WINDOW, DIALOG> <oDlg> &#93; ;\n &#91; <help&#58;HELPID, HELP ID> <nHelpId> &#93; ;\n &#91; VALID <ValidFunc> &#93; ;\n &#91; <pict&#58; PICTURE, PICT> <cPict> &#93; ;\n &#91; <color&#58;COLOR,COLORS> <nClrFore> &#91;,<nClrBack>&#93; &#93; ;\n &#91; FONT <oFont> &#93; ;\n &#91; CURSOR <oCursor> &#93; ;\n &#91; MESSAGE <cMsg> &#93; ;\n &#91; <update&#58; UPDATE> &#93; ;\n &#91; WHEN <uWhen> &#93; ;\n &#91; ON CHANGE <uChange> &#93; ;\n &#91; <readonly&#58; READONLY, NO MODIFY> &#93; ;\n &#91; <spin&#58; SPINNER> &#91;ON UP <SpnUp>&#93; &#91;ON DOWN <SpnDn>&#93; &#91;MIN <Min>&#93; &#91;MAX <Max>&#93; &#93; ;\n &#91; ITEMS <aItems>&#93; ;\n => ;\n &#91; <oGet> &#58;= &#93; TAutoGet&#40;&#41;&#58;ReDefine&#40; <nId>, bSETGET&#40;<uVar>&#41;, <oDlg>,;\n <nHelpId>, <cPict>, <&#123;ValidFunc&#125;>, <nClrFore>, <nClrBack>,;\n <oFont>, <oCursor>, <cMsg>, &#46;T&#46;, <&#123;uWhen&#125;>,;\n &#91; \\&#123;|nKey,nFlags,Self| <uChange> \\&#125;&#93;, <&#46;readonly&#46;>,;\n <&#46;spin&#46;>, <&#123;SpnUp&#125;>, <&#123;SpnDn&#125;>, <&#123;Min&#125;>, <&#123;Max&#125;>, <aItems>&#41;\n\n#command @ <nRow>, <nCol> AUTOGET &#91; <oGet> VAR &#93; <uVar> ;\n &#91; <dlg&#58; OF, WINDOW, DIALOG> <oWnd> &#93; ;\n &#91; <pict&#58; PICTURE, PICT> <cPict> &#93; ;\n &#91; VALID <ValidFunc> &#93; ;\n &#91; <color&#58;COLOR,COLORS> <nClrFore> &#91;,<nClrBack>&#93; &#93; ;\n &#91; SIZE <nWidth>, <nHeight> &#93; ;\n &#91; FONT <oFont> &#93; ;\n &#91; <design&#58; DESIGN> &#93; ;\n &#91; CURSOR <oCursor> &#93; ;\n &#91; <pixel&#58; PIXEL> &#93; ;\n &#91; MESSAGE <cMsg> &#93; ;\n &#91; <update&#58; UPDATE> &#93; ;\n &#91; WHEN <uWhen> &#93; ;\n &#91; <lCenter&#58; CENTER, CENTERED> &#93; ;\n &#91; <lRight&#58; RIGHT> &#93; ;\n &#91; ON CHANGE <uChange> &#93; ;\n &#91; <readonly&#58; READONLY, NO MODIFY> &#93; ;\n &#91; <pass&#58; PASSWORD> &#93; ;\n &#91; <lNoBorder&#58; NO BORDER, NOBORDER> &#93; ;\n &#91; <help&#58;HELPID, HELP ID> <nHelpId> &#93; ;\n &#91; ITEMS <aItems>&#93; ;\n => ;\n &#91; <oGet> &#58;= &#93; TAutoGet&#40;&#41;&#58;New&#40; <nRow>, <nCol>, bSETGET&#40;<uVar>&#41;,;\n &#91;<oWnd>&#93;, <nWidth>, <nHeight>, <cPict>, <&#123;ValidFunc&#125;>,;\n <nClrFore>, <nClrBack>, <oFont>, <&#46;design&#46;>,;\n <oCursor>, <&#46;pixel&#46;>, <cMsg>, &#46;T&#46;, <&#123;uWhen&#125;>,;\n <&#46;lCenter&#46;>, <&#46;lRight&#46;>,;\n &#91;\\&#123;|nKey, nFlags, Self| <uChange>\\&#125;&#93;, <&#46;readonly&#46;>,;\n <&#46;pass&#46;>, &#91;<&#46;lNoBorder&#46;>&#93;, <nHelpId>,,,,,,<aItems> &#41;\n\n#command @ <nRow>, <nCol> AUTOGET &#91; <oGet> VAR &#93; <uVar> ;\n &#91; <dlg&#58; OF, WINDOW, DIALOG> <oWnd> &#93; ;\n &#91; <pict&#58; PICTURE, PICT> <cPict> &#93; ;\n &#91; VALID <ValidFunc> &#93; ;\n &#91; <color&#58;COLOR,COLORS> <nClrFore> &#91;,<nClrBack>&#93; &#93; ;\n &#91; SIZE <nWidth>, <nHeight> &#93; ;\n &#91; FONT <oFont> &#93; ;\n &#91; <design&#58; DESIGN> &#93; ;\n &#91; CURSOR <oCursor> &#93; ;\n &#91; <pixel&#58; PIXEL> &#93; ;\n &#91; MESSAGE <cMsg> &#93; ;\n &#91; <update&#58; UPDATE> &#93; ;\n &#91; WHEN <uWhen> &#93; ;\n &#91; <lCenter&#58; CENTER, CENTERED> &#93; ;\n &#91; <lRight&#58; RIGHT> &#93; ;\n &#91; ON CHANGE <uChange> &#93; ;\n &#91; <readonly&#58; READONLY, NO MODIFY> &#93; ;\n &#91; <help&#58;HELPID, HELP ID> <nHelpId> &#93; ;\n &#91; <spin&#58; SPINNER> &#91;ON UP <SpnUp>&#93; &#91;ON DOWN <SpnDn>&#93; &#91;MIN <Min>&#93; &#91;MAX <Max>&#93; &#93; ;\n &#91; ITEMS <aItems>&#93; ;\n => ;\n &#91; <oGet> &#58;= &#93; TAutoGet&#40;&#41;&#58;New&#40; <nRow>, <nCol>, bSETGET&#40;<uVar>&#41;,;\n &#91;<oWnd>&#93;, <nWidth>, <nHeight>, <cPict>, <&#123;ValidFunc&#125;>,;\n <nClrFore>, <nClrBack>, <oFont>, <&#46;design&#46;>,;\n <oCursor>, <&#46;pixel&#46;>, <cMsg>, &#46;T&#46;, <&#123;uWhen&#125;>,;\n <&#46;lCenter&#46;>, <&#46;lRight&#46;>,;\n &#91;\\&#123;|nKey, nFlags, Self| <uChange>\\&#125;&#93;, <&#46;readonly&#46;>,;\n &#46;f&#46;, &#46;f&#46;, <nHelpId>,;\n <&#46;spin&#46;>, <&#123;SpnUp&#125;>, <&#123;SpnDn&#125;>, <&#123;Min&#125;>, <&#123;Max&#125;>, <aItems> &#41; \n[/code:3la4taf0]", "time": "09:51", "topic": "Autocomplete in tGet", "username": "StefanHaupt" } ]
Autocomplete in tGet
[ { "date": "2008-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks stefan,\r\n\r\nI will try it.\r\n\r\nRegards,\r\nMarc", "time": "10:57", "topic": "Autocomplete in tGet", "username": "Marc Vanzegbroeck" } ]
Autocomplete in tGet
[ { "date": "2022-01-15", "forum": "mod_harbour", "text": "Hello friends,\n\nThe jQuery UI Autocomplete widget enables users to quickly find and select from a list of values as they type.\n If you find the jQuery UI Autocomplete demos and documentation too daunting, here are some examples with \nexplanation to get you started.\n\n<!-- m --><a class=\"postlink\" href=\"https://salman-w.blogspot.com/2013/12/jquery-ui-autocomplete-examples.html\">https://salman-w.blogspot.com/2013/12/j ... mples.html</a><!-- m -->\n\nWe took the demo[u:1di06f8r] using-label-value-pairs.html[/u:1di06f8r].\nThe data is loaded into the WIDGET using a JSON.\n \n[img:1di06f8r]https&#58;//mybergland&#46;com/fwforum/autocompletedata&#46;jpg[/img:1di06f8r]\n\n\nWe now read the data from a DBF file into a string and pass this string to HTML.\n\nThere, we assign the string to a JSON object.\n\n[img:1di06f8r]https&#58;//mybergland&#46;com/fwforum/dbf2jsonstring&#46;jpg[/img:1di06f8r]\n\n\nHere you can see the result.\n\nBest regards,\nOtto\n[img:1di06f8r]https&#58;//mybergland&#46;com/fwforum/autocomplete_collapse&#46;gif[/img:1di06f8r]", "time": "17:20", "topic": "Autocomplete widget (similar FW combobox)", "username": "Otto" } ]
Autocomplete widget (similar FW combobox)
[ { "date": "2006-11-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nNext code did work with previous versions from fw , now it fails :\n\n[code:2pc7jotk]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n LOCAL oDlg , butok\n LOCAL cCad &#58;= \" \" \n DEFINE DIALOG oDlg TITLE \"TGet from \" + FWDESCRIPTION\n @ 1, 2 SAY \"Text&#46;&#46;&#58;\" OF oDlg\n @ 1, 6 GET oGet VAR cCad OF oDlg SIZE 60, 10 COLOR \"W/G\" PICTURE \"@K\" ;\nON CHANGE VulGetAan&#40;oGet , &#123;\"E\",\"P\"&#125; , &#123;\"e-mail\",\"Pakjes\"&#125; , ButOk&#41;//tracelog&#40;oGet&#91;3&#93;&#58;nLastKey &#41;\n @ 3, 7 BUTTON ButOk PROMPT \"&Ok\" OF oDlg SIZE 30, 12 ACTION oDlg&#58;End&#40;&#41;\n @ 3, 16 BUTTON \"&Cancel\" SIZE 30, 12 OF oDlg ACTION oDlg&#58;End&#40;&#41; CANCEL\n\n ACTIVATE DIALOG oDlg CENTERED \n\nreturn nil\n//------------------------------------------------------------------------//\nPROC VulGetAan&#40;oGet, ArrCode , ArrVal , ButOk&#41;\n**********************************************\nLOCAL x &#58;= CHR&#40;oGet&#58;nLastKey&#41; , i\nIF x == CHR&#40;13&#41;\n\tButOk&#58;setFocus&#40;&#41;\nEND\n\ntracelog&#40;x , oGet&#58;nPos&#41;\nIF oGet&#58;nPos > 1\n\tRETURN\nEND\nIF &#40; i &#58;= ASCAN&#40;ArrCode , x&#41; &#41; > 0\n\toGet&#58;oGet&#58;Buffer &#58;= ArrVal&#91;i&#93;\n\toGet&#58;Assign&#40;&#41;\n\toGet&#58;Refresh&#40;&#41;\nEND\nRETURN\n\n[/code:2pc7jotk]\n\nIt seems that now oGet:nPos starts with 2 , changing \n\nIF oGet:nPos > 1 in oGet:nPos > 2 \n\nThen it works\n\nAnother problem is that the cursor remains on position 1 , i can't move it to the next position.\n\nI tryed with oGet:Setpos(3) , oGet:npos := oGet:oGet:npos := 3 , ......\n\nFrank", "time": "12:00", "topic": "Autofill get from first chatacter", "username": "Frank Demont" } ]
Autofill get from first chatacter
[ { "date": "2014-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "When I try testage5.prg I have this error \n\n Error description: Error BASE/1004 No exported method: EVAL\n Args:\n [ 1] = U \n\nStack Calls\n===========\n Called from: => (b)EVAL( 0 )\n Called from: .\\source\\classes\\AUTOGET.PRG => (b)TGETLIST( 312 )\n Called from: .\\source\\classes\\AUTOGET.PRG => TGETLIST:KEYCOUNT( 0 )\n Called from: .\\source\\classes\\AUTOGET.PRG => TAUTOGET:CREATELIST( 159 )\n Called from: .\\source\\classes\\AUTOGET.PRG => TAUTOGET:OPENLIST( 271 )\n Called from: .\\source\\classes\\AUTOGET.PRG => (b)TAUTOGET( 54 )\n Called from: .\\source\\classes\\AUTOGET.PRG => TAUTOGET:KEYCHAR( 0 )\n Called from: => TWINDOW:HANDLEEVENT( 0 )\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1733 )\n Called from: .\\source\\classes\\TGET.PRG => TAUTOGET:HANDLEEVENT( 589 )\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH( 3279 )\n Called from: => DIALOGBOXINDIRECT( 0 )\n Called from: .\\source\\classes\\DIALOG.PRG => TDIALOG:ACTIVATE( 277 )\n Called from: TESTAGE5.prg => MAIN( 42 )\n\nRegards Maurizio", "time": "10:55", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "Maurizio" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2014-07-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurizio,\n\nPlease try this change in Class TAutoGet:\n\n METHOD KeyCount() INLINE If( ! Empty( ::bKeyCount ), Eval( ::bKeyCount ), 0 )", "time": "17:49", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "Antonio Linares" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2014-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, \nnow no error , but doesn't work , when I press a letter nothing happens .\n\nThank Maurizio \n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->", "time": "07:58", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "Maurizio" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2014-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurizio,\n\nClass TAutoGet has been developed by Daniel García Gil, I am going to ask him, thanks", "time": "08:07", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "Antonio Linares" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2014-07-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello\n\nthe integration with DBF is not implemented yet, the sample testage5.prg didn't should be distributed until finish the DBF integration, please use an array or hash instead of DBF\n\nsorry my mistake", "time": "12:16", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "Daniel Garcia-Gil" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2017-05-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Daniel,\n\nWas testage5.prg ever completed? Has anybody got an example of a wild seek using DBFCDX?\n\nRegards\nDavid", "time": "12:56", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "David Williams" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2017-05-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Till integration with DBF is completed by Mr Daniel, we can use this sample to use DBF\n[code=fw:35oi1v4a]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"autoget.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">static</span> lSeekWild := .t.<br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;field FIRST<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oGet, cName, cName1, cName2<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oRs, &nbsp;cAlias := <span style=\"color: #ff0000;\">\"CUST\"</span><br />&nbsp; &nbsp;cName := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> CUST SHARED VIA <span style=\"color: #ff0000;\">'DBFCDX'</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> UPPER<span style=\"color: #000000;\">&#40;</span>FIRST<span style=\"color: #000000;\">&#41;</span> TAG FIRST1 <span style=\"color: #0000ff;\">TO</span> TMP MEMORY<br />&nbsp; &nbsp;SET ORDER <span style=\"color: #0000ff;\">TO</span> TAG FIRST1<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">define</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">title</span> <span style=\"color: #ff0000;\">\"Test Autoget\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">600</span>, <span style=\"color: #000000;\">480</span> <span style=\"color: #0000ff;\">pixel</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span> autoget oGet <span style=\"color: #0000ff;\">var</span> cName <span style=\"color: #0000ff;\">of</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATASOURCE <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILTER CUST-><span style=\"color: #000000;\">&#40;</span> ListFilter1<span style=\"color: #000000;\">&#40;</span> uDataSource, cData, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLUMN <span style=\"color: #000000;\">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HEIGHTLIST <span style=\"color: #000000;\">100</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"ok\"</span> <span style=\"color: #0000ff;\">OF</span> odlg <span style=\"color: #0000ff;\">ACTION</span> msgalert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Get 1:\"</span>+cName<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"close\"</span> <span style=\"color: #0000ff;\">OF</span> odlg <span style=\"color: #0000ff;\">ACTION</span> odlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">activate</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">centered</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// match case without case sensitive</span><br /><span style=\"color: #00C800;\">function</span> ListFilter1<span style=\"color: #000000;\">&#40;</span> aList, cData, oSelf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aNewList := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cFor &nbsp; &nbsp; := Upper<span style=\"color: #000000;\">&#40;</span> AllTrim<span style=\"color: #000000;\">&#40;</span> cData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> bFor<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> lSeekWild<br />&nbsp; &nbsp; &nbsp; cFor &nbsp; &nbsp; := <span style=\"color: #ff0000;\">'\"'</span> + cFor + <span style=\"color: #ff0000;\">'\" $ UPPER(FIRST)'</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; cFor &nbsp; &nbsp; := <span style=\"color: #ff0000;\">'UPPER(FIRST)=\"'</span> + cFor + <span style=\"color: #ff0000;\">'\"'</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;bFor &nbsp; &nbsp; := &<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"{ ||\"</span> + cFor + <span style=\"color: #ff0000;\">\"}\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aNewList &nbsp; &nbsp;:= FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FIRST\"</span>, bFor <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> aNewList<br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:35oi1v4a]\nYou may toggle static variable lSeekWild as .T. or .F.", "time": "12:36", "topic": "Autoget Error in FW May 2014 and June 2014", "username": "nageswaragunupudi" } ]
Autoget Error in FW May 2014 and June 2014
[ { "date": "2017-03-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nEstoy sustituyendo la clase Autoget de Maurilio Viana por la de Daniel G. Gil, y me parece que esta última es mucho más potente. Hay una funcionalidad que me gustaría añadir, que al pulsar space apareciera el desplegable con todos los posibles valores del campo. Si alguien lo ha hecho agradecería que explicara la manera de conseguirlo.\n\nSaludos,\nJosé Luis", "time": "20:00", "topic": "Autoget de Daniel G. Gil", "username": "José Luis Sánchez" } ]
Autoget de Daniel G. Gil
[ { "date": "2017-03-05", "forum": "FiveWin para Harbour/xHarbour", "text": "José luis, estoy implementando esta clase y me gustaría cambiar el font de la lista. Alguna idea ?. Muchas gracias.", "time": "23:12", "topic": "Autoget de Daniel G. Gil", "username": "horacio" } ]
Autoget de Daniel G. Gil
[ { "date": "2017-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":1ffierh4][quote:1ffierh4]Mr. NAG, I have not yet defined the xBrowse, if I could put a sample of both options or which one would recommend me? Is for a billing and the data entry will be in an ARRAY and the data source of a MYSQL table ... greetings, thanks ... Shock \n\nGoogle translator: \nMr. NAG, I have not yet defined the xBrowse, if I could Put a sample of both options or which one would you recommend me? Is it a billing and the data entry will be in ARRAY and the data source of MYSQL table ... greetings, thanks ...Shock\n[/quote:1ffierh4]\nPlease look into mariainv.prg in this link\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33908&p=201499&hilit=mariainv.prg#p201499\">viewtopic.php?f=3&t=33908&p=201499&hilit=mariainv.prg#p201499</a><!-- l -->[/quote:1ffierh4]\n\nSaludos...\n nageswaragunupudi escribió:\n\n joseluisysturiz escribió:\n Se puede usar algo como el autoget en una edicion de celda en un xBrowse.? si es asi, algun sample...saludos...gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->\n\n\n Use EDIT_LISTBOX or EDIT_GET_LISTBOX\n\n\n\nMr. NAG, aun no he definido el xBrowse, si podria colocar un sample de ambas opciones o cual me recomendaria.? es para una facturacion y la entrada de datos sera en un ARRAY y el origen de los datos de una tabla MYSQL...saludos, gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->\n\nGoogle translator:\nMr. NAG, I have not yet defined the xBrowse, if I could put a sample of both options or which one would recommend me? Is for a billing and the data entry will be in an ARRAY and the data source of a MYSQL table ... greetings, thanks... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "18:31", "topic": "Autoget desde Recursos", "username": "joseluisysturiz" } ]
Autoget desde Recursos
[ { "date": "2017-07-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos,\n\ntengo el siguiente problema con la clase Autoget, defininiendola desde recursos, cuando se tiene extendida la lista asociada, y se pasa el mouse por ella, se pintan los controles que están bajo la lista, una imagen explica mas:\n\n[url:3ja7e4u2]https&#58;//app&#46;box&#46;com/s/fwpi8xil1lxmhcsz5xyd65xow26aocxy[/url:3ja7e4u2]\n\nNo se si estoy haciendo algo mal\n\nSaludos\n\nMarcelo Vía", "time": "02:49", "topic": "Autoget desde Recursos", "username": "Marcelo Via Giglio" } ]
Autoget desde Recursos
[ { "date": "2017-07-21", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Marcelo Via Giglio\":lwveuw11]Hola a todos,\n\ntengo el siguiente problema con la clase Autoget, defininiendola desde recursos, cuando se tiene extendida la lista asociada, y se pasa el mouse por ella, se pintan los controles que están bajo la lista, una imagen explica mas:\n\n[url:lwveuw11]https&#58;//app&#46;box&#46;com/s/fwpi8xil1lxmhcsz5xyd65xow26aocxy[/url:lwveuw11]\n\nNo se si estoy haciendo algo mal\n\nSaludos\n\nMarcelo Vía[/quote:lwveuw11]\nSaludos, no he usado esta clase, es mas, no la conocia, podrias colocar una pantalla de como se ve y como definir el recurso.? es decir un pequeño sample de su uso ya que aun no le veo la funcionalidad, no se si sera algo que ando buscando que es que cuando vaya escribriendo en el GET, me de despliegue como en GOOGLE, las palabras que coincidere voy a escribir, pero imagino eso habria que hacerlo desde un disccionario o desde una tabla que tenga bastante datos, en mi caso lo quiero para buscar coincidencia en busqueda de clientes o de articulos..\n\ny la otra consulta es...se puede usar esta clase con DATASOURCE de MySql.? saludos, gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "05:11", "topic": "Autoget desde Recursos", "username": "joseluisysturiz" } ]
Autoget desde Recursos
[ { "date": "2017-07-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nen la carpeta de samples existen ejemplo todos los testaget.... pero todos los ejemplos son sin recursos\n\nY la fuente de datos puede ser la que quieras, tu defines como filtrar y la fuente\n\nSaludos \n\nMarcelo Vía", "time": "13:17", "topic": "Autoget desde Recursos", "username": "Marcelo Via Giglio" } ]
Autoget desde Recursos
[ { "date": "2017-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nExiste alguna solución para el problema reportado en este chat al usar la clase Autoget desde recursos (estoy probando con FH1706). La característica de esta clase me parece muy interesante y útil, debería completarse el desarrollo.\n\nSaludos\n\nFernando Espinoza A.", "time": "13:10", "topic": "Autoget desde Recursos", "username": "nanoespinoza" } ]
Autoget desde Recursos
[ { "date": "2017-07-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen dia, hay algun ejemplo simples para testes? Gracias, saludos.", "time": "13:54", "topic": "Autoget desde Recursos", "username": "karinha" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Karinha\n\nAquí un ejemplo para que pruebe; primero el recurso\n\n[quote:2zt284el]\n// RESOURCE SCRIPT generated by \"Pelles C for Windows, version 7.00\".\n\n#include <windows.h>\n#include <commctrl.h>\n#include <richedit.h>\n\nLANGUAGE LANG_SPANISH,SUBLANG_SPANISH_ECUADOR\n\nAUTOGET DIALOGEX DISCARDABLE 6, 18, 210, 142\nSTYLE DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE\nCAPTION \"Dialog\"\nFONT 8, \"Tahoma\", 0, 0, 1\n{\n CONTROL \"\", 101, \"Edit\", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 12, 8, 84, 12\n CONTROL \"OK\", IDOK, \"Button\", WS_TABSTOP, 160, 5, 45, 15\n CONTROL \"Cancel\", IDCANCEL, \"Button\", WS_TABSTOP, 160, 23, 45, 15\n}\n[/quote:2zt284el]\n\nY el .prg sería este:\n\n[quote:2zt284el]\n#include \"FiveWin.ch\"\n#include \"AutoGet.ch\"\n\nstatic aCountries := {;\n {\"Afghanistan\", 'AF'},; \n {\"Åland Islands\", 'AX'},; \n {\"Albania\", 'AL'},; \n {\"Algeria\", 'DZ'},; \n {\"American Samoa\", 'AS'},; \n {\"AndorrA\", 'AD'},; \n {\"Angola\", 'AO'},; \n {\"Anguilla\", 'AI'},; \n {\"Antarctica\", 'AQ'},; \n {\"Antigua and Barbuda\", 'AG'},; \n {\"Argentina\", 'AR'},; \n {\"Armenia\", 'AM'},; \n {\"Aruba\", 'AW'},; \n {\"Australia\", 'AU'},; \n {\"Austria\", 'AT'},; \n {\"Azerbaijan\", 'AZ'},; \n {\"Bahamas\", 'BS'},; \n {\"Bahrain\", 'BH'},; \n {\"Bangladesh\", 'BD'},; \n {\"Barbados\", 'BB'},; \n {\"Belarus\", 'BY'},; \n {\"Belgium\", 'BE'},; \n {\"Belize\", 'BZ'},; \n {\"Benin\", 'BJ'},; \n {\"Bermuda\", 'BM'},; \n {\"Bhutan\", 'BT'},; \n {\"Bolivia\", 'BO'},; \n {\"Bosnia and Herzegovina\", 'BA'},; \n {\"Botswana\", 'BW'},; \n {\"Bouvet Island\", 'BV'},; \n {\"Brazil\", 'BR'},; \n {\"British Indian Ocean Territory\", 'IO'},; \n {\"Brunei Darussalam\", 'BN'},; \n {\"Bulgaria\", 'BG'},; \n {\"Burkina Faso\", 'BF'},; \n {\"Burundi\", 'BI'},; \n {\"Cambodia\", 'KH'},; \n {\"Cameroon\", 'CM'},; \n {\"Canada\", 'CA'},; \n {\"Cape Verde\", 'CV'},; \n {\"Cayman Islands\", 'KY'},; \n {\"Central African Republic\", 'CF'},; \n {\"Chad\", 'TD'},; \n {\"Chile\", 'CL'},; \n {\"China\", 'CN'},; \n {\"Christmas Island\", 'CX'},; \n {\"Cocos (Keeling) Islands\", 'CC'},; \n {\"Colombia\", 'CO'},; \n {\"Comoros\", 'KM'},; \n {\"Congo\", 'CG'},; \n {\"Congo, The Democratic Republic of the\", 'CD'},; \n {\"Cook Islands\", 'CK'},; \n {\"Costa Rica\", 'CR'},; \n {\"Cote D'Ivoire\", 'CI'},; \n {\"Croatia\", 'HR'},; \n {\"Cuba\", 'CU'},; \n {\"Cyprus\", 'CY'},; \n {\"Czech Republic\", 'CZ'},; \n {\"Denmark\", 'DK'} }\n\n\nFunction Main()\nLOCAL oDlg, oGet, cName:=Space(20), oBtn1, oBtn2\n\nDEFINE DIALOG oDlg TITLE \"Prueba del Augo-Get de FW1706\" RESOURCE \"AUTOGET\"\n\n REDEFINE AUTOGET oGet var cName of oDlg ID 101 ;\n DATASOURCE aCountries;\n FILTER ListFilter1( uDataSource, cData, Self ); \n COLUMN 1 ;\n HEIGHTLIST 100\n\n REDEFINE BUTTON oBtn1 OF oDlg ID 1 ACTION MsgAlert(\"Get 1:\"+cName)\n REDEFINE BUTTON oBtn2 OF oDlg ID 2 ACTION oDlg:end()\n\nACTIVATE DIALOG oDlg CENTERED\nReturn nil\n\n\n//---------------------------------------------------------------------------//\n// match case without case sensitive\nFunction ListFilter1( aList, cData, oSelf )\n Local aNewList := { }\n Local uItem\n \n For each uItem in oSelf:uOrgData\n\n If Lower( SubStr( uItem[ 1 ], 1, Len( cData ) ) ) == Lower( cData )\n AAdd( aNewList, uItem )\n Endif \n \n Next\nRETURN aNewList\n[/quote:2zt284el]\n\nSaludos\n\nFernando Espinoza A.", "time": "05:23", "topic": "Autoget desde Recursos", "username": "nanoespinoza" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Perfecto! Gracias.\n\n[img:2o9kwarb]http&#58;//i&#46;imgur&#46;com/i1Qvx1R&#46;png[/img:2o9kwarb]\n\nSaludos.", "time": "14:59", "topic": "Autoget desde Recursos", "username": "karinha" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Cambios:\n\n[code=fw:2vltc7cx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// RESOURCE SCRIPT generated by \"Pelles C for Windows, version 7.00\".</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />LANGUAGE LANG_FRENCH,SUBLANG_FRENCH<br /><br />AUTOGET DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">142</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|WS_CAPTION|WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"AutoGet Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"Tahoma\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">12</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">84</span>, <span style=\"color: #000000;\">12</span><br />CONTROL <span style=\"color: #ff0000;\">\"OK\"</span>, IDOK, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br />CONTROL <span style=\"color: #ff0000;\">\"Cancel\"</span>, IDCANCEL, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">23</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:2vltc7cx]\n\n[code=fw:2vltc7cx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"AutoGet.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> aCountries := <span style=\"color: #000000;\">&#123;</span>;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Afghanistan\"</span>, <span style=\"color: #ff0000;\">'AF'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Åland Islands\"</span>, <span style=\"color: #ff0000;\">'AX'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Albania\"</span>, <span style=\"color: #ff0000;\">'AL'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Algeria\"</span>, <span style=\"color: #ff0000;\">'DZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"American Samoa\"</span>, <span style=\"color: #ff0000;\">'AS'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"AndorrA\"</span>, <span style=\"color: #ff0000;\">'AD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Angola\"</span>, <span style=\"color: #ff0000;\">'AO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Anguilla\"</span>, <span style=\"color: #ff0000;\">'AI'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Antarctica\"</span>, <span style=\"color: #ff0000;\">'AQ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Antigua and Barbuda\"</span>, <span style=\"color: #ff0000;\">'AG'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Argentina\"</span>, <span style=\"color: #ff0000;\">'AR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Armenia\"</span>, <span style=\"color: #ff0000;\">'AM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Aruba\"</span>, <span style=\"color: #ff0000;\">'AW'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Australia\"</span>, <span style=\"color: #ff0000;\">'AU'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Austria\"</span>, <span style=\"color: #ff0000;\">'AT'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Azerbaijan\"</span>, <span style=\"color: #ff0000;\">'AZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bahamas\"</span>, <span style=\"color: #ff0000;\">'BS'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bahrain\"</span>, <span style=\"color: #ff0000;\">'BH'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bangladesh\"</span>, <span style=\"color: #ff0000;\">'BD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Barbados\"</span>, <span style=\"color: #ff0000;\">'BB'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Belarus\"</span>, <span style=\"color: #ff0000;\">'BY'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Belgium\"</span>, <span style=\"color: #ff0000;\">'BE'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Belize\"</span>, <span style=\"color: #ff0000;\">'BZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Benin\"</span>, <span style=\"color: #ff0000;\">'BJ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bermuda\"</span>, <span style=\"color: #ff0000;\">'BM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bhutan\"</span>, <span style=\"color: #ff0000;\">'BT'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bolivia\"</span>, <span style=\"color: #ff0000;\">'BO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bosnia and Herzegovina\"</span>, <span style=\"color: #ff0000;\">'BA'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Botswana\"</span>, <span style=\"color: #ff0000;\">'BW'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bouvet Island\"</span>, <span style=\"color: #ff0000;\">'BV'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Brazil\"</span>, <span style=\"color: #ff0000;\">'BR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"British Indian Ocean Territory\"</span>, <span style=\"color: #ff0000;\">'IO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Brunei Darussalam\"</span>, <span style=\"color: #ff0000;\">'BN'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bulgaria\"</span>, <span style=\"color: #ff0000;\">'BG'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Burkina Faso\"</span>, <span style=\"color: #ff0000;\">'BF'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Burundi\"</span>, <span style=\"color: #ff0000;\">'BI'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cambodia\"</span>, <span style=\"color: #ff0000;\">'KH'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cameroon\"</span>, <span style=\"color: #ff0000;\">'CM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Canada\"</span>, <span style=\"color: #ff0000;\">'CA'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cape Verde\"</span>, <span style=\"color: #ff0000;\">'CV'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cayman Islands\"</span>, <span style=\"color: #ff0000;\">'KY'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Central African Republic\"</span>, <span style=\"color: #ff0000;\">'CF'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Chad\"</span>, <span style=\"color: #ff0000;\">'TD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Chile\"</span>, <span style=\"color: #ff0000;\">'CL'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"China\"</span>, <span style=\"color: #ff0000;\">'CN'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Christmas Island\"</span>, <span style=\"color: #ff0000;\">'CX'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cocos (Keeling) Islands\"</span>, <span style=\"color: #ff0000;\">'CC'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Colombia\"</span>, <span style=\"color: #ff0000;\">'CO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Comoros\"</span>, <span style=\"color: #ff0000;\">'KM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Congo\"</span>, <span style=\"color: #ff0000;\">'CG'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Congo, The Democratic Republic of the\"</span>, <span style=\"color: #ff0000;\">'CD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cook Islands\"</span>, <span style=\"color: #ff0000;\">'CK'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Costa Rica\"</span>, <span style=\"color: #ff0000;\">'CR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cote D'Ivoire\"</span>, <span style=\"color: #ff0000;\">'CI'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Croatia\"</span>, <span style=\"color: #ff0000;\">'HR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cuba\"</span>, <span style=\"color: #ff0000;\">'CU'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cyprus\"</span>, <span style=\"color: #ff0000;\">'CY'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Czech Republic\"</span>, <span style=\"color: #ff0000;\">'CZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Denmark\"</span>, <span style=\"color: #ff0000;\">'DK'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oGet, cName:=Space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span>, oBtn1, oBtn2, oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-12</span> BOLD<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Prueba del Augo-Get de FW1701\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"AUTOGET\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORS CLR_WHITE, CLR_MAGENTA<br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> AUTOGET oGet <span style=\"color: #0000ff;\">var</span> cName <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASOURCE aCountries &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILTER ListFilter1<span style=\"color: #000000;\">&#40;</span> uDataSource, cData, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style=\"color: #000000;\">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEIGHTLIST <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORS CLR_BLACK, CLR_YELLOW<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Get 1:\"</span>+cName<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oBtn1:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Autoget con Recurso esta perfecto\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;oBtn2:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Salir - Exit\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// match case without case sensitive</span><br /><span style=\"color: #00C800;\">Function</span> ListFilter1<span style=\"color: #000000;\">&#40;</span> aList, cData, oSelf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> aNewList := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> uItem<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> each uItem in oSelf:<span style=\"color: #000000;\">uOrgData</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> Lower<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> uItem<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span>, Len<span style=\"color: #000000;\">&#40;</span> cData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == Lower<span style=\"color: #000000;\">&#40;</span> cData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aNewList, uItem <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> aNewList<br />&nbsp;</div>[/code:2vltc7cx]\n\nSaludos.", "time": "15:02", "topic": "Autoget desde Recursos", "username": "karinha" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Holas,\n\nautoget da un comportamiento raro, cuando se aplica WindowsXP.Manifest modificando el ejemplo:\n\n[code=fw:11l7icp0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />LANGUAGE LANG_FRENCH,SUBLANG_FRENCH<br /><br />AUTOGET DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">142</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|WS_CAPTION|WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"AutoGet Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"Tahoma\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">12</span>, &nbsp;<span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">84</span>, <span style=\"color: #000000;\">12</span><br />CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">102</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">12</span>, <span style=\"color: #000000;\">22</span>, <span style=\"color: #000000;\">84</span>, <span style=\"color: #000000;\">22</span><br />CONTROL <span style=\"color: #ff0000;\">\"OK\"</span>, IDOK, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br />CONTROL <span style=\"color: #ff0000;\">\"Cancel\"</span>, IDCANCEL, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">23</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;<br /><span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\"WindowsXP.Manifest\"</span><br /><br />&nbsp;</div>[/code:11l7icp0]\n\n\n[code=fw:11l7icp0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"AutoGet.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> aCountries := <span style=\"color: #000000;\">&#123;</span>;<br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Afghanistan\"</span>, <span style=\"color: #ff0000;\">'AF'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Åland Islands\"</span>, <span style=\"color: #ff0000;\">'AX'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Albania\"</span>, <span style=\"color: #ff0000;\">'AL'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Algeria\"</span>, <span style=\"color: #ff0000;\">'DZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"American Samoa\"</span>, <span style=\"color: #ff0000;\">'AS'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"AndorrA\"</span>, <span style=\"color: #ff0000;\">'AD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Angola\"</span>, <span style=\"color: #ff0000;\">'AO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Anguilla\"</span>, <span style=\"color: #ff0000;\">'AI'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Antarctica\"</span>, <span style=\"color: #ff0000;\">'AQ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Antigua and Barbuda\"</span>, <span style=\"color: #ff0000;\">'AG'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Argentina\"</span>, <span style=\"color: #ff0000;\">'AR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Armenia\"</span>, <span style=\"color: #ff0000;\">'AM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Aruba\"</span>, <span style=\"color: #ff0000;\">'AW'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Australia\"</span>, <span style=\"color: #ff0000;\">'AU'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Austria\"</span>, <span style=\"color: #ff0000;\">'AT'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Azerbaijan\"</span>, <span style=\"color: #ff0000;\">'AZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bahamas\"</span>, <span style=\"color: #ff0000;\">'BS'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bahrain\"</span>, <span style=\"color: #ff0000;\">'BH'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bangladesh\"</span>, <span style=\"color: #ff0000;\">'BD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Barbados\"</span>, <span style=\"color: #ff0000;\">'BB'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Belarus\"</span>, <span style=\"color: #ff0000;\">'BY'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Belgium\"</span>, <span style=\"color: #ff0000;\">'BE'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Belize\"</span>, <span style=\"color: #ff0000;\">'BZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Benin\"</span>, <span style=\"color: #ff0000;\">'BJ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bermuda\"</span>, <span style=\"color: #ff0000;\">'BM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bhutan\"</span>, <span style=\"color: #ff0000;\">'BT'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bolivia\"</span>, <span style=\"color: #ff0000;\">'BO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bosnia and Herzegovina\"</span>, <span style=\"color: #ff0000;\">'BA'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Botswana\"</span>, <span style=\"color: #ff0000;\">'BW'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bouvet Island\"</span>, <span style=\"color: #ff0000;\">'BV'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Brazil\"</span>, <span style=\"color: #ff0000;\">'BR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"British Indian Ocean Territory\"</span>, <span style=\"color: #ff0000;\">'IO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Brunei Darussalam\"</span>, <span style=\"color: #ff0000;\">'BN'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Bulgaria\"</span>, <span style=\"color: #ff0000;\">'BG'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Burkina Faso\"</span>, <span style=\"color: #ff0000;\">'BF'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Burundi\"</span>, <span style=\"color: #ff0000;\">'BI'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cambodia\"</span>, <span style=\"color: #ff0000;\">'KH'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cameroon\"</span>, <span style=\"color: #ff0000;\">'CM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Canada\"</span>, <span style=\"color: #ff0000;\">'CA'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cape Verde\"</span>, <span style=\"color: #ff0000;\">'CV'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cayman Islands\"</span>, <span style=\"color: #ff0000;\">'KY'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Central African Republic\"</span>, <span style=\"color: #ff0000;\">'CF'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Chad\"</span>, <span style=\"color: #ff0000;\">'TD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Chile\"</span>, <span style=\"color: #ff0000;\">'CL'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"China\"</span>, <span style=\"color: #ff0000;\">'CN'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Christmas Island\"</span>, <span style=\"color: #ff0000;\">'CX'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cocos (Keeling) Islands\"</span>, <span style=\"color: #ff0000;\">'CC'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Colombia\"</span>, <span style=\"color: #ff0000;\">'CO'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Comoros\"</span>, <span style=\"color: #ff0000;\">'KM'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Congo\"</span>, <span style=\"color: #ff0000;\">'CG'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Congo, The Democratic Republic of the\"</span>, <span style=\"color: #ff0000;\">'CD'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cook Islands\"</span>, <span style=\"color: #ff0000;\">'CK'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Costa Rica\"</span>, <span style=\"color: #ff0000;\">'CR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cote D'Ivoire\"</span>, <span style=\"color: #ff0000;\">'CI'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Croatia\"</span>, <span style=\"color: #ff0000;\">'HR'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cuba\"</span>, <span style=\"color: #ff0000;\">'CU'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Cyprus\"</span>, <span style=\"color: #ff0000;\">'CY'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Czech Republic\"</span>, <span style=\"color: #ff0000;\">'CZ'</span><span style=\"color: #000000;\">&#125;</span>,; <br /><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Denmark\"</span>, <span style=\"color: #ff0000;\">'DK'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oGet, cName:=Space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span>, oBtn1, oBtn2, oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-12</span> BOLD<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Prueba del Augo-Get de FW1701\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"AUTOGET\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORS CLR_WHITE, CLR_MAGENTA<br /><br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> AUTOGET oGet <span style=\"color: #0000ff;\">var</span> cName <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASOURCE aCountries &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILTER ListFilter1<span style=\"color: #000000;\">&#40;</span> uDataSource, cData, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style=\"color: #000000;\">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEIGHTLIST <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORS CLR_BLACK, CLR_YELLOW<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> AUTOGET oGet <span style=\"color: #0000ff;\">var</span> cName <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATASOURCE aCountries &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILTER ListFilter1<span style=\"color: #000000;\">&#40;</span> uDataSource, cData, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMN <span style=\"color: #000000;\">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEIGHTLIST <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORS CLR_BLACK, CLR_YELLOW<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Get 1:\"</span>+cName<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oBtn1:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #ff0000;\">\"Autoget con Recurso esta perfecto\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;oBtn2:<span style=\"color: #000000;\">cTooltip</span> := <span style=\"color: #ff0000;\">\"Salir - Exit\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// match case without case sensitive</span><br /><span style=\"color: #00C800;\">Function</span> ListFilter1<span style=\"color: #000000;\">&#40;</span> aList, cData, oSelf <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> aNewList := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> uItem<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> each uItem in oSelf:<span style=\"color: #000000;\">uOrgData</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> Lower<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> uItem<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">1</span>, Len<span style=\"color: #000000;\">&#40;</span> cData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == Lower<span style=\"color: #000000;\">&#40;</span> cData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aNewList, uItem <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> aNewList</div>[/code:11l7icp0]\n\nAl abrir la primera lista y pasar el mouse por ella, se muestran los controles debajo de la misma\n\n[url:11l7icp0]https&#58;//app&#46;box&#46;com/s/kvm64tfe9sxmbmy3zi7216zm93d4smio[/url:11l7icp0]\n\nBueno debo aclarar que estoy utiizando FWH15.08\n\nSalidos cordiales\n\nMarcelo Vía", "time": "19:40", "topic": "Autoget desde Recursos", "username": "Marcelo Via Giglio" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Marcelo, Intenta ahora:\n\n\n[code=fw:nlb8ovhb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// RESOURCE SCRIPT generated by \"Pelles C for Windows, version 7.00\".</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />#ifndef __64__<br />&nbsp; &nbsp;<span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\"./WinXP/WindowsXP.Manifest\"</span><br />#endif<br /><br />#ifdef __64__<br />&nbsp; &nbsp;<span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\"WinXP/WindowsXP.Manifest64\"</span><br />#endif<br /><br />LANGUAGE LANG_FRENCH,SUBLANG_FRENCH<br /><br />AUTOGET DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">142</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|WS_CAPTION|WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"AutoGet Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"Tahoma\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">12</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">84</span>, <span style=\"color: #000000;\">12</span><br />CONTROL <span style=\"color: #ff0000;\">\"OK\"</span>, IDOK, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br />CONTROL <span style=\"color: #ff0000;\">\"Cancel\"</span>, IDCANCEL, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">23</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:nlb8ovhb]\n\nSaludos.", "time": "20:09", "topic": "Autoget desde Recursos", "username": "karinha" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "[img:3frkrtsj]http&#58;//i&#46;imgur&#46;com/WMRlbJO&#46;png[/img:3frkrtsj]\n\nSaludos.", "time": "20:17", "topic": "Autoget desde Recursos", "username": "karinha" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "João,\n\nprueba aumentando un get abajo del autoget, cuando se despliega la lista, mueve el mouse por la lista y veras que se muestra el otro get sobre la lista\n\nSaludos\n\nMarcelo Vía", "time": "20:48", "topic": "Autoget desde Recursos", "username": "Marcelo Via Giglio" } ]
Autoget desde Recursos
[ { "date": "2017-07-26", "forum": "FiveWin para Harbour/xHarbour", "text": "És verdad Marcelo usted está correcto. Saludos.", "time": "21:30", "topic": "Autoget desde Recursos", "username": "karinha" } ]
Autoget desde Recursos
[ { "date": "2017-07-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Se puede usar algo como el autoget en una edicion de celda en un xBrowse.? si es asi, algun sample...saludos...gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "06:11", "topic": "Autoget desde Recursos", "username": "joseluisysturiz" } ]
Autoget desde Recursos
[ { "date": "2017-07-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"joseluisysturiz\":2jwci7bx]Se puede usar algo como el autoget en una edicion de celda en un xBrowse.? si es asi, algun sample...saludos...gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->[/quote:2jwci7bx]\nUse EDIT_LISTBOX or EDIT_GET_LISTBOX", "time": "14:28", "topic": "Autoget desde Recursos", "username": "nageswaragunupudi" } ]
Autoget desde Recursos
[ { "date": "2017-07-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":2hsdmfly][quote=\"joseluisysturiz\":2hsdmfly]Se puede usar algo como el autoget en una edicion de celda en un xBrowse.? si es asi, algun sample...saludos...gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->[/quote:2hsdmfly]\nUse EDIT_LISTBOX or EDIT_GET_LISTBOX[/quote:2hsdmfly]\n\nMr. NAG, aun no he definido el xBrowse, si podria colocar un sample de ambas opciones o cual me recomendaria.? es para una facturacion y la entrada de datos sera en un ARRAY y el origen de los datos de una tabla MYSQL...saludos, gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nGoogle translator:\nMr. NAG, I have not yet defined the xBrowse, if I could put a sample of both options or which one would recommend me? Is for a billing and the data entry will be in an ARRAY and the data source of a MYSQL table ... greetings, thanks... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "16:41", "topic": "Autoget desde Recursos", "username": "joseluisysturiz" } ]
Autoget desde Recursos
[ { "date": "2017-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Marcelo Via Giglio\":2yak6x70]João,\n\nprueba aumentando un get abajo del autoget, cuando se despliega la lista, mueve el mouse por la lista y veras que se muestra el otro get sobre la lista\n\nSaludos\n\nMarcelo Vía[/quote:2yak6x70]\n\nComplementando lo que indica Marcelo; aparte de lo indicado, sucede que cuando vuelves a un AutoGet luego de haber seleccionado un valor, borras el contenido inicial y quieres seleccionar un nuevo elemento diferente de la lista, ya no te aparece el cuadro con las coincidencias.\n\nAdemás, me gustaría conocer si es que el array fuente de DATASOURCE pueda ser unidimensional (ese era realmente el problema que tenía inicialmente, por lo cual no funcionaba bien la clase).\n\nSaludos\n\nFernando Espínoza A.", "time": "04:58", "topic": "Autoget desde Recursos", "username": "nanoespinoza" } ]
Autoget desde Recursos
[ { "date": "2017-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:ooxi7jly]Mr. NAG, I have not yet defined the xBrowse, if I could put a sample of both options or which one would recommend me? Is for a billing and the data entry will be in an ARRAY and the data source of a MYSQL table ... greetings, thanks ... Shock \n\nGoogle translator: \nMr. NAG, I have not yet defined the xBrowse, if I could Put a sample of both options or which one would you recommend me? Is it a billing and the data entry will be in ARRAY and the data source of MYSQL table ... greetings, thanks ...Shock\n[/quote:ooxi7jly]\nPlease look into mariainv.prg in this link\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33908&p=201499&hilit=mariainv.prg#p201499\">viewtopic.php?f=3&t=33908&p=201499&hilit=mariainv.prg#p201499</a><!-- l -->", "time": "13:38", "topic": "Autoget desde Recursos", "username": "nageswaragunupudi" } ]
Autoget desde Recursos
[ { "date": "2017-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola,\n\nI'm moving from Autoget by Maurilio Viana to autoget by Daniel G. Gil, and I think that the lastest is more powerful. I want to add a feature, when pressing the space key the class shows the list with all the possible values for the field. If anybody has done this, please explan how to do it.\n\nRegads,\nJosé Luis", "time": "20:04", "topic": "Autoget from Daniel G. Gil", "username": "José Luis Sánchez" } ]
Autoget from Daniel G. Gil
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Members\n\nI would like to know if this class is working well from resources, I am trying to make it work with FWH1706 and I get some error messages. If possible with an example.\n\nRegards", "time": "13:02", "topic": "Autoget from Daniel G. Gil", "username": "nanoespinoza" } ]
Autoget from Daniel G. Gil
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nAutoGet Class works fine. I've an old FWH version in which autoget is included and works fine from resources. Yo have several samples in the samples folder.\n\nRegards,", "time": "13:35", "topic": "Autoget from Daniel G. Gil", "username": "José Luis Sánchez" } ]
Autoget from Daniel G. Gil
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=34359\">viewtopic.php?f=6&t=34359</a><!-- l -->", "time": "16:38", "topic": "Autoget from Daniel G. Gil", "username": "joseluisysturiz" } ]
Autoget from Daniel G. Gil
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Estimado José Luis\n\nPodrías poner un ejemplo usando recursos, estoy probando con la FW1706 y me presenta errores, uno es identico a lo que detalla José Luis Isturiz en el enlace previo.\n\nSaludos\n\nFernando Espinoza A.", "time": "20:16", "topic": "Autoget from Daniel G. Gil", "username": "nanoespinoza" } ]
Autoget from Daniel G. Gil
[ { "date": "2012-06-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Can I use autoget with Tget features ?\n\nsample \n\nx,y AUTOGET ..... Items aNombres ..... BITMAPS \"bnt\" Action List_nombres()\n\nRegards", "time": "21:15", "topic": "Autoget test", "username": "Eoeo" } ]
Autoget test
[ { "date": "2012-06-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nWelcome back to the forums. Lets see this time how it goes... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "21:17", "topic": "Autoget test", "username": "Antonio Linares" } ]
Autoget test
[ { "date": "2012-06-05", "forum": "FiveWin for Harbour/xHarbour", "text": "ok Antonio\nHave you an Idea for this ?\n[b:19m0qqe5]Not run !![/b:19m0qqe5]\n\nI ask also to Maurilio but this guy not work with fwh from 2008\n\n#include \"fivewin.ch\"\n#include \"TAutoGet.ch\"\nfunction AutoGet()\n\n local oDlg, oGet, cName, aNames\n\n cName := space(20)\n aNames := {\"Mauro\", \"Mauricio\", \"Maurilio\", \"Maurizio\"}\n\n define dialog oDlg title \"Test Autoget\"\n\n @ 2,2 autoget oGet var cName of oDlg items aNames SIZE 130,10\n [b:19m0qqe5] oGet:cBmpName:=\"search.bmp\"\n oGet:bAction:= { | o | MsgInfo( o:GetText() ) }\n oGet:lAdjustBtn :=.t.[/b:19m0qqe5]\n\n activate dialog oDlg centered\n\nreturn nil", "time": "09:18", "topic": "Autoget test", "username": "Eoeo" } ]
Autoget test
[ { "date": "2012-06-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nI don't know what it is AUTOGET, it is not part of FiveWin.\n\nWhere is it ? Whom does it belong ?", "time": "09:39", "topic": "Autoget test", "username": "Antonio Linares" } ]
Autoget test
[ { "date": "2012-06-05", "forum": "FiveWin for Harbour/xHarbour", "text": "the class i in this forum \n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=21772&hilit=autoget\">viewtopic.php?f=3&t=21772&hilit=autoget</a><!-- l -->\n\nthe author is Maurilio Vania\n[code=fw:wflwaf4r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"autoget.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oGet1, cName1, oGet2, cName2, aNames, lOk := .F.<br /><br />&nbsp; &nbsp;cName &nbsp; &nbsp;:= space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cCity &nbsp; &nbsp;:= space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// aCities &nbsp;:= {}</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// aNames &nbsp; := {\"RAmeSh\", \"rAmA rAo\", \"rAmDev\", \"rAM kUMAR\", \"raMADevi\", \"ramanA\"}</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// aCities &nbsp;:= {\"HYDERABAD\", \"SECUNDERABAD\", \"VIJAYAWADA\", \"VISAKHAPATNAM\", \"WARANGAL\", \"TIRUPATHI\"}</span><br />&nbsp; &nbsp;REQUEST DBFCDX<br />&nbsp; &nbsp;rddsetdefault<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"dbfcdx\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;REQUEST DBFFPT<br />&nbsp; &nbsp;USE CUSTOMER SHARED <span style=\"color: #00C800;\">NEW</span> <br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">index</span> <span style=\"color: #0000ff;\">on</span> field->FIRST &nbsp;TAG I_TEMP &nbsp;<span style=\"color: #0000ff;\">TO</span> TEMP &nbsp;TEMPORARY<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">XBROWSE</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;dbgotop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Autoget\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//@ 1.2,1.2 SAY oSay1 PROMPT \"Enter Name\" oF oDlg</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//@ 1.4,5.1 AUTOGET oGet1 VAR cName OF oDlg SIZE 110,12 ITEMS aNames &nbsp;CASE CUPPER &nbsp;ADD ITEMS</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.1</span>,<span style=\"color: #000000;\">1.2</span> <span style=\"color: #0000ff;\">SAY</span> oSay1 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Enter City\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.4</span>,<span style=\"color: #000000;\">5.1</span> AUTOGET oGet2 <span style=\"color: #0000ff;\">VAR</span> cCity <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">110</span>,<span style=\"color: #000000;\">12</span> &nbsp;<span style=\"color: #00C800;\">CASE</span> CPROPER <span style=\"color: #B900B9;\">//ADD ITEMS</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3.0</span>,<span style=\"color: #000000;\">19</span> &nbsp;<span style=\"color: #0000ff;\">BUTTON</span> oOk <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Finish\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">35</span>,<span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>lOk := .T., oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><br /><br /><span style=\"color: #B900B9;\">// TAutoGet.prg</span><br /><span style=\"color: #B900B9;\">// Auto complete text in get features</span><br /><span style=\"color: #B900B9;\">// By: Maurilio Viana, <!-- e --><a href=\"mailto:mouri_ryo@hotmail.com\">mouri_ryo@hotmail.com</a><!-- e --></span><br /><span style=\"color: #B900B9;\">// Date: 4/25/2007</span><br /><span style=\"color: #B900B9;\">// New features, bug fixes and enhancements are welcome :-)</span><br /><span style=\"color: #B900B9;\">// Please, let me now when you include new features, bug fixes etc in this class</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// ToDo: Show drop down window with possible options when typing</span><br /><span style=\"color: #B900B9;\">//</span><br /><br /><span style=\"color: #B900B9;\">/* Revisions 4/25/2007 10:49AM by James Bott<br />Method AutoFill: nKey was not defined as a LOCAL. Fixed.<br />Method AutoFill: nLength was mispelled (as nLenght). Fixed.<br />Method AutoFill: ::Cargo changed to ::lAuto (see reason below)<br />Method AutoFill: Changed to using vkey.ch manifest constants instead of numbers.<br />Method Redefine: Was passing aItems to the parent method (not needed).<br />Method LostFocus: Added this method.<br />Methos New() and Redefine(). Was passing bChanged, and then ::bChange to parent. Fixed.<br />Functin Proper() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;was added by RAMESH BABU P on 19-06-2011<br />DATA nCase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;was added by RAMESH BABU P on 19-06-2011<br />DATA lAddNewItems &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; was added by RAMESH BABU P on 20-06-2011<br />FUNCTION AddNewItem(aItems,cText) was added by RAMESH BABU P on 20-06-2011<br /><br />It is not a good idea to use ::Cargo, ::bPostKey, or ::bLostFocus in the class since these<br />then cannot be used by the programmer. It would be better to subclass the needed methods and add<br />whatever functionality needed. So, ::Cargo and ::bLostFocus were eliminated.<br /><br />Unfortuneately, not using ::bPostKey is somewhat of a challenge. We can subclass KeyDown() and<br />KeyChar() but some of each method will have to be copied into the new methods and thus if there<br />are any changes to these sections of code in future versions of TGET, then this method in<br />TAutoGet will have to be updated also.<br /><br />Bug?: If the items in ::aArray are in proper case, e.g. \"Mauro,\" they are automatically converted<br />to proper case when autofilled, however, if you backspace they are converted to all lower case.<br /><br />*/</span><br /><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TAutoGet <span style=\"color: #0000ff;\">FROM</span> TGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> aItems AS ARRAY<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> lAuto AS LOGICAL<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> nCase AS NUMERIC <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// 1 UPPER CASE, 2 lower case, 3 Proper Case - Added by RAMESH BABU P</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> lAddNewItems AS LOGICAL <span style=\"color: #0000ff;\">INIT</span> .T. &nbsp;<span style=\"color: #B900B9;\">// .T. to Add New Items to aItems, .F. Don't Add - Added by RAMESH BABU P</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> cAlias<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nRow &nbsp; &nbsp;, nCol &nbsp; &nbsp;, bSetGet &nbsp;, oWnd &nbsp; &nbsp; , nWidth &nbsp; , nHeight,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPict &nbsp; , bValid &nbsp;, nClrFore , nClrBack , oFont &nbsp; &nbsp;, lDesign,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCursor , lPixel &nbsp;, cMsg &nbsp; &nbsp; , lUpdate &nbsp;, bWhen &nbsp; &nbsp;, lCenter,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRight &nbsp;, bChanged, lReadOnly, lPassword, lNoBorder, nHelpID,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSpinner, bUp &nbsp; &nbsp; , bDown &nbsp; &nbsp;, bMin &nbsp; &nbsp; , bMax &nbsp; &nbsp; , aItems ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCase &nbsp; , lAddNewItems<span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span> nID &nbsp; &nbsp; , bSetGet , oWnd &nbsp; &nbsp; , nHelpId , cPict, bValid ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrFore, nClrBack, oFont &nbsp; &nbsp;, oCursor , cMsg , lUpdate,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bWhen &nbsp; , bChanged, lReadOnly, lSpinner, bUp &nbsp;, bDown &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bMin &nbsp; &nbsp;, bMax, aItems, nCase, lAddNewItems <span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> SetItems<span style=\"color: #000000;\">&#40;</span> aItems <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> AutoFill<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> Autoseek<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> LostFocus<span style=\"color: #000000;\">&#40;</span> hWndGetFocus <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">inline</span> ::<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">lAuto</span> := .T., <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">lAddNewItems</span>,AddNewItem<span style=\"color: #000000;\">&#40;</span>@::<span style=\"color: #000000;\">aItems</span>,::<span style=\"color: #000000;\">cText</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> ,::<span style=\"color: #00C800;\">super</span>:<span style=\"color: #000000;\">LostFocus</span><span style=\"color: #000000;\">&#40;</span> hWndGetFocus <span style=\"color: #000000;\">&#41;</span><br /><br />END <span style=\"color: #00C800;\">CLASS</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>nRow &nbsp; &nbsp; , nCol &nbsp; &nbsp; , bSetGet , oWnd &nbsp; &nbsp;, nWidth , nHeight , cPict &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bValid &nbsp; , nClrFore , nClrBack, oFont &nbsp; , lDesign, oCursor , lPixel &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cMsg &nbsp; &nbsp; , lUpdate &nbsp;, bWhen &nbsp; , lCenter , lRight , bChanged, lReadOnly,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lPassword, lNoBorder, nHelpId , lSpinner, bUp &nbsp; &nbsp;, bDown &nbsp; , bMin &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bMax &nbsp; &nbsp; , aItems, &nbsp;nCase, lAddNewItems<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TAutoGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nLen, i<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> nCase := <span style=\"color: #000000;\">3</span>, lAddNewItems := .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>nRow &nbsp; , nCol &nbsp; &nbsp;, bSetGet &nbsp;, oWnd &nbsp; &nbsp; , nWidth &nbsp; , nHeight,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPict &nbsp;, bValid &nbsp;, nClrFore , nClrBack , oFont &nbsp; &nbsp;, lDesign,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCursor, lPixel &nbsp;, cMsg &nbsp; &nbsp; , lUpdate &nbsp;, bWhen &nbsp; &nbsp;, lCenter,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRight , bChanged, lReadOnly, lPassword, lNoBorder, nHelpId,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSpinner, bUp &nbsp; &nbsp;, bDown &nbsp; &nbsp;, bMin &nbsp; &nbsp; , bMax <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>aItems == <span style=\"color: #00C800;\">Nil</span>, aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nCase</span> &nbsp; &nbsp; &nbsp; &nbsp;:= nCase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Added by RAMESH BABU P</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lAddNewItems</span> := lAddNewItems &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Added by RAMESH BABU P</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">aItems</span> &nbsp; &nbsp; &nbsp; := aItems<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//::bPostKey := {|oGet, cBuffer| ::AutoFill()}</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bPostKey</span> := <span style=\"color: #000000;\">&#123;</span>|oGet, cBuffer| ::<span style=\"color: #000000;\">Autoseek</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<br /><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span>nID &nbsp; &nbsp; &nbsp;, bSetGet , oWnd &nbsp; , nHelpId, cPict &nbsp;, bValid, nClrFore,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrBack , oFont &nbsp; , oCursor, cMsg &nbsp; , lUpdate, bWhen , bChanged,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lReadOnly, lSpinner, bUp &nbsp; &nbsp;, bDown &nbsp;, bMin &nbsp; , bMax &nbsp;, aItems &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCase, lAddNewItems <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TAutoGet<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> nCase := <span style=\"color: #000000;\">3</span>, lAddNewItems := .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">&#40;</span>nID &nbsp; &nbsp; &nbsp;, bSetGet , oWnd &nbsp; , nHelpId, cPict &nbsp;, bValid, nClrFore ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrBack , oFont &nbsp; , oCursor, cMsg &nbsp; , lUpdate, bWhen , bChanged,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lReadOnly, lSpinner, bUp &nbsp; &nbsp;, bDown &nbsp;, bMin &nbsp; , bMax &nbsp;<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>aItems == <span style=\"color: #00C800;\">Nil</span>, aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nCase</span> &nbsp; &nbsp; &nbsp; &nbsp;:= nCase<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">lAddNewItems</span> := lAddNewItems<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">aItems</span> &nbsp; &nbsp; &nbsp; := aItems<br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">bPostKey</span> := <span style=\"color: #000000;\">&#123;</span>|oGet, cBuffer| ::<span style=\"color: #000000;\">AutoFill</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// Set items of AutoGet</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> SetItems<span style=\"color: #000000;\">&#40;</span> aItems <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TAutoGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>aItems == <span style=\"color: #00C800;\">Nil</span>, aItems := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">aItems</span> &nbsp; := aItems<br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">Nil</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><br /><span style=\"color: #00C800;\">METHOD</span> AutoSeek<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TAutoGet<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nPosItem &nbsp; := <span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Text position into ::aItems</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nPosCursor := ::<span style=\"color: #000000;\">nPos</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Current cursor position</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nLength &nbsp; &nbsp;:= len<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cText</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Text length</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cStartTxt &nbsp;:= <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cText</span>, nPosCursor<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Start text (position 1 to cursor position -1)</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cItem &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nKey &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//-------------------------------------------------------------------------</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// We use ::lAuto to control when we must search in ::aItems for typed text</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// We must seek in ::aItems when GET is blank or when user clear it</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//-------------------------------------------------------------------------</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> valtype<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">lAuto</span><span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #ff0000;\">\"L\"</span> <span style=\"color: #B900B9;\">// Cargo isn't logical yet -> GET received focus now</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ! empty<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">// GET isn't empty</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">lAuto</span> := .F. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// We don't use autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// GET is empty</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">lAuto</span> := .T. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Use autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// We are controlling if use or no autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> empty<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// User could cleaned the GET text</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">lAuto</span> := .T. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Use autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lAuto</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// If don't control autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;nKey := ::<span style=\"color: #000000;\">nLastKey</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> nKey == VK_TAB .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nKey == VK_RETURN .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nKey == VK_DELETE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">Assign</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Assign typed text</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> nKey >= <span style=\"color: #000000;\">32</span> .and. nKey <= <span style=\"color: #000000;\">256</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbseek<span style=\"color: #000000;\">&#40;</span>cStartTxt,.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cItem := field->FIRST <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> &nbsp;cItem = ToUpper<span style=\"color: #000000;\">&#40;</span>cStartTxt, ::<span style=\"color: #000000;\">nCase</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// ADDED &nbsp; BY RAMESH BABU P on 19-06-2011</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLength := len<span style=\"color: #000000;\">&#40;</span> rtrim<span style=\"color: #000000;\">&#40;</span> cItem <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cItem &nbsp; += space<span style=\"color: #000000;\">&#40;</span> nLength - len<span style=\"color: #000000;\">&#40;</span>cItem<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cItem <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">&#40;</span> nPosCursor <span style=\"color: #000000;\">-1</span>, nLength<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Select found text</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Buffer</span> = Pad<span style=\"color: #000000;\">&#40;</span> cItem, Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Buffer</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// add by:ss-bbs</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">HideSel</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// Text not found -> Undo selected text</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br /><br /><span style=\"color: #00C800;\">Return</span> .t. <br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// Auto fill text when typed based on aItems</span><br /><span style=\"color: #B900B9;\">// Return: Always returns .T.</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> AutoFill<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TAutoGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nPosItem &nbsp; := <span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Text position into ::aItems</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nPosCursor := ::<span style=\"color: #000000;\">nPos</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Current cursor position</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nLength &nbsp; &nbsp;:= len<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cText</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Text length</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cStartTxt &nbsp;:= <span style=\"color: #0000ff;\">left</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cText</span>, nPosCursor<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Start text (position 1 to cursor position -1)</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cItem &nbsp; &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nKey &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> len<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// We have no items to search in this GET</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//-------------------------------------------------------------------------</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// We use ::lAuto to control when we must search in ::aItems for typed text</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// We must seek in ::aItems when GET is blank or when user clear it</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//-------------------------------------------------------------------------</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> valtype<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">lAuto</span><span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #ff0000;\">\"L\"</span> <span style=\"color: #B900B9;\">// Cargo isn't logical yet -> GET received focus now</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ! empty<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; <span style=\"color: #B900B9;\">// GET isn't empty</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">lAuto</span> := .F. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// We don't use autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// GET is empty</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">lAuto</span> := .T. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Use autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// We are controlling if use or no autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> empty<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// User could cleaned the GET text</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">lAuto</span> := .T. &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Use autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">lAuto</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// If don't control autofill</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;nKey := ::<span style=\"color: #000000;\">nLastKey</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> nKey == VK_TAB .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nKey == VK_RETURN .or. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nKey == VK_DELETE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">Assign</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Assign typed text</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> nKey >= <span style=\"color: #000000;\">32</span> .and. nKey <= <span style=\"color: #000000;\">256</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> EACH cItem IN ::<span style=\"color: #000000;\">aItems</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPosItem += <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//if &nbsp;ToUpper( cItem ) &nbsp;= ToUpper( cStartTxt ) &nbsp; // REMOVED BY RAMESH BABU P on 19-06-2011</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cItem := ToUpper<span style=\"color: #000000;\">&#40;</span> cItem,::<span style=\"color: #000000;\">nCase</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// ADDED &nbsp; BY RAMESH BABU P on 19-06-2011</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> &nbsp;cItem = ToUpper<span style=\"color: #000000;\">&#40;</span>cStartTxt, ::<span style=\"color: #000000;\">nCase</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// ADDED &nbsp; BY RAMESH BABU P on 19-06-2011</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLength := len<span style=\"color: #000000;\">&#40;</span> rtrim<span style=\"color: #000000;\">&#40;</span> cItem <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cItem &nbsp; += space<span style=\"color: #000000;\">&#40;</span> nLength - len<span style=\"color: #000000;\">&#40;</span>cItem<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cItem <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">SetSel</span><span style=\"color: #000000;\">&#40;</span> nPosCursor <span style=\"color: #000000;\">-1</span>, nLength<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Select found text</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Buffer</span> = Pad<span style=\"color: #000000;\">&#40;</span> cItem, Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Buffer</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// add by:ss-bbs</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span>.t.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">HideSel</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// Text not found -> Undo selected text</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// Convert latin characters to ANSI upper case</span><br /><span style=\"color: #B900B9;\">// (for some reason AnsiUpper causes a GPF with Commercial xHB)</span><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">function</span> ToUpper<span style=\"color: #000000;\">&#40;</span> cString, nCase <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nCase = <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; cString := lower<span style=\"color: #000000;\">&#40;</span> cString <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif nCase = <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; cString := proper<span style=\"color: #000000;\">&#40;</span> cString <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; cString := upper<span style=\"color: #000000;\">&#40;</span> cString <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;cString := strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>cString,<span style=\"color: #ff0000;\">\"á\"</span>,<span style=\"color: #ff0000;\">\"Á\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"à\"</span>,<span style=\"color: #ff0000;\">\"À\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"ã\"</span>,<span style=\"color: #ff0000;\">\"Ã\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"â\"</span>,<span style=\"color: #ff0000;\">\"Â\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cString := strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>cString,<span style=\"color: #ff0000;\">\"é\"</span>,<span style=\"color: #ff0000;\">\"É\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"ê\"</span>,<span style=\"color: #ff0000;\">\"Ê\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cString := strtran<span style=\"color: #000000;\">&#40;</span>cString,<span style=\"color: #ff0000;\">\"í\"</span>,<span style=\"color: #ff0000;\">\"Í\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cString := strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>cString,<span style=\"color: #ff0000;\">\"ó\"</span>,<span style=\"color: #ff0000;\">\"Ó\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"õ\"</span>,<span style=\"color: #ff0000;\">\"Õ\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"ô\"</span>,<span style=\"color: #ff0000;\">\"Ô\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cString := strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>strtran<span style=\"color: #000000;\">&#40;</span>cString,<span style=\"color: #ff0000;\">\"ú\"</span>,<span style=\"color: #ff0000;\">\"Ú\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"ñ\"</span>,<span style=\"color: #ff0000;\">\"Ñ\"</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"ç\"</span>,<span style=\"color: #ff0000;\">\"Ç\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> cString <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><span style=\"color: #B900B9;\">// ADDED BY RAMESH BABU P on 19-06-2011</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> proper<span style=\"color: #000000;\">&#40;</span>cString<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> point,spot,times,char1,char2,char3,char4,char5<br /><br />STORE <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> point,spot,times<br />STORE <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #0000ff;\">TO</span> char1<br />STORE <span style=\"color: #ff0000;\">\".\"</span> <span style=\"color: #0000ff;\">TO</span> char2<br />STORE <span style=\"color: #ff0000;\">\"/\"</span> <span style=\"color: #0000ff;\">TO</span> char3<br />STORE <span style=\"color: #ff0000;\">\"-\"</span> <span style=\"color: #0000ff;\">TO</span> char4<br />STORE <span style=\"color: #ff0000;\">\"_\"</span> <span style=\"color: #0000ff;\">TO</span> char5<br /><br />* Convert beginning letter <span style=\"color: #0000ff;\">of</span> string <span style=\"color: #0000ff;\">to</span> Upper <span style=\"color: #00C800;\">Case</span> & last letter <span style=\"color: #0000ff;\">to</span> lower <span style=\"color: #00C800;\">case</span><br />cString = UPPER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span>cString,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+LOWER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">RIGHT</span><span style=\"color: #000000;\">&#40;</span>cString,LEN<span style=\"color: #000000;\">&#40;</span>cString<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />* First capitalise every 1st letter in a word after a space and after a dot<br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> point ><span style=\"color: #000000;\">0</span> .AND. times <= <span style=\"color: #000000;\">5</span><br /><br />&nbsp; &nbsp;point = <span style=\"color: #00C800;\">AT</span><span style=\"color: #000000;\">&#40;</span>char1,<span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cString,spot,LEN<span style=\"color: #000000;\">&#40;</span>TRIM<span style=\"color: #000000;\">&#40;</span>cString<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>-spot<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> point ><span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; spot = point + spot<br />&nbsp; &nbsp; &nbsp; cString = STUFF<span style=\"color: #000000;\">&#40;</span>cString,spot,<span style=\"color: #000000;\">1</span>,UPPER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">SUBSTR</span><span style=\"color: #000000;\">&#40;</span>cString,spot,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> times = <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char1 = char2<br />&nbsp; &nbsp; &nbsp; ELSEIF times = <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char1 = char3<br />&nbsp; &nbsp; &nbsp; ELSEIF times = <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char1 = char4<br />&nbsp; &nbsp; &nbsp; ELSEIF times = <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char1 = char5<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; STORE <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> &nbsp;point,spot<br />&nbsp; &nbsp; &nbsp; times = times + <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> times ><span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOOP<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">ENDDO</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> cString<br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> AddNewItem<span style=\"color: #000000;\">&#40;</span>aItems,cText<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">IF</span> ASCAN<span style=\"color: #000000;\">&#40;</span>aItems,<span style=\"color: #000000;\">&#123;</span>|x|UPPER<span style=\"color: #000000;\">&#40;</span>ALLTRIM<span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> == UPPER<span style=\"color: #000000;\">&#40;</span>ALLTRIM<span style=\"color: #000000;\">&#40;</span>cText<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;AADD<span style=\"color: #000000;\">&#40;</span>aItems,cText<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br />&nbsp;<br />&nbsp;</div>[/code:wflwaf4r]\nAntonio , why not implement it on fw Tget class ?", "time": "12:21", "topic": "Autoget test", "username": "Eoeo" } ]
Autoget test
[ { "date": "2012-06-05", "forum": "FiveWin for Harbour/xHarbour", "text": "I have this feature running in my programs. See <!-- m --><a class=\"postlink\" href=\"http://cincomundos.wordpress.com/2008/01/17/306/\">http://cincomundos.wordpress.com/2008/01/17/306/</a><!-- m --> and the video on el Puchero page at alanit.com\n\nRegards,", "time": "15:24", "topic": "Autoget test", "username": "José Luis Sánchez" } ]
Autoget test
[ { "date": "2012-06-05", "forum": "FiveWin for Harbour/xHarbour", "text": "josè,\n I need with Bitmaps...action", "time": "20:03", "topic": "Autoget test", "username": "Eoeo" } ]
Autoget test
[ { "date": "2012-06-06", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't know how to include bitmaps on autoget, sorry.\n\nRegards,", "time": "11:58", "topic": "Autoget test", "username": "José Luis Sánchez" } ]
Autoget test
[ { "date": "2012-06-08", "forum": "FiveWin for Harbour/xHarbour", "text": "josé this is strange...\n\nTautoget is from Tget\n\nTget can use Bitmaps...Action \n\n\nBut Tautoget not use bitmap..Action .... strange.....!!!", "time": "08:47", "topic": "Autoget test", "username": "Eoeo" } ]
Autoget test
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello ,\n\nI made some test with autoincrement field :\n\nDBCREATE(cDbfFile , {{\"ID\",\"+\",10,0}} , \"DBFCDX\" , .T. )\nDBG DbStruct() // gives ID , + , 4 , 0\n? FieldLen(\"ID\") // 4 WHY TRUNCATED TO 4 ?????????????????????????\n\nFOR i := 1 TO 10001\n DBAPPEND()\nNEXT\n\n? Recno() , FIELD->ID // 10001 , 10001\n\nFIELD->ID accepts a number with length 5 , DSTRUCT seems to give a wrong result !!!\n\nWhat is the real length ??? maybe 10 ?????\nHow can it be showed ?\nFrank Demont", "time": "11:58", "topic": "Autoincrement field for DBFCDX", "username": "Franklin Demont" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe it indicates the number of bytes used for the field? I'm not sure, I never used autoincrement field, sorry.\n\nEMG", "time": "12:16", "topic": "Autoincrement field for DBFCDX", "username": "Enrico Maria Giordano" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Frank\n\nI saw your post also in the xHarbour forum and almost mentioned my comments there ... however, auto-increment means one thing in the Sql world and another in the xBase world.\n\nIn the Sql world auto-increment is handled by the database and created automatically .. which in my view is inherently dangerous. If an attacker gained access to a Sql table with the primary key being a \"counter\" ( auto-increment ) all it would take is a simple add() and update() to inject all sorts of mayhem into your tables.\n\nHowever, since you are creating your auto-increment ( primary key I presume 'UNIQUE' ) by code .. all it would take from an attacker is to scan for the last PK and then add 1 to the count and you have the makings of an un-wanted injection into your database.\n\nPerhaps I have missed the intent of your reasoning for the auto-increment ... ?\n\nThanks\nRick Lipkin", "time": "14:49", "topic": "Autoincrement field for DBFCDX", "username": "Rick Lipkin" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nI really didn't understand your comment...\n\nEMG", "time": "15:09", "topic": "Autoincrement field for DBFCDX", "username": "Enrico Maria Giordano" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico\n\nAs you know with any RDMS you can create a Primary key as an auto-increment .. for example in MS access:\n\ncSql += \"[InvDetailEid] COUNTER NOT NULL, \"\n..\n..\ncSQL += \"CONSTRAINT PK_INVOICEDETAIL PRIMARY KEY ( InvDetailEid )\"\n\nThis will create an auto-increment field meaning when you do a oRs:AddNew() you do not have to address the auto-increment field ( InvDetailEid ) by code .. the RDMS automatically assigns the value.\n\nThat can be a blessing or a curse ... If you assign a PK as auto-increment it just may make it easier for a hacker to inject records into your Sql table and create all kinds of havoc .. I have seen it happen when I worked for State Gov .. came in one morning and someone had penetrated one of our web-sites and auto injected a few rows with garbage.... \n\nRick Lipkin", "time": "15:51", "topic": "Autoincrement field for DBFCDX", "username": "Rick Lipkin" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't see how a primary key can facilitate the work of an attacker. If anyone gains access to my database engine then he can do any kind of worst things to my tables.\n\nEMG", "time": "15:58", "topic": "Autoincrement field for DBFCDX", "username": "Enrico Maria Giordano" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico\n\nI agree .. if an attacker gets access to your Sql Database .. there is nothing they can not get. .. As far as the primary key .. I have been on the receiving end of cleaning up damage caused by attackers who penetrated a web site when I was working for State Government .. They had injected several rows of garbage into a database table... and I had the distinct pleasure of ferreting out and removing all the injected data.\n\nSince the Web Developer ( not me ) decided to use a PK that was an auto Increment .. all the attacker needed to do is add records to tables ( inject ) and since the PK was auto incremented, there was nothing to stop the creation of new rows. If the PK were code driven .. meaning the PK was created by the developers code .. it would make it more difficult to inject new rows since the attacker ( in this case ) did not have access to all the field names.\n\nHowever as you mentioned .. if the attacker had gained full access to the Sql Database .. auto-increment or not .. would be irrelevant.\n\nRick Lipkin", "time": "17:12", "topic": "Autoincrement field for DBFCDX", "username": "Rick Lipkin" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rick Lipkin\":25a4zkt1]Since the Web Developer ( not me ) decided to use a PK that was an auto Increment .. all the attacker needed to do is add records to tables ( inject ) and since the PK was auto incremented, there was nothing to stop the creation of new rows. If the PK were code driven .. meaning the PK was created by the developers code .. it would make it more difficult to inject new rows since the attacker ( in this case ) did not have access to all the field names.[/quote:25a4zkt1]\n\nNow I understand. Yes, if the PK were not autoincrement, it would be easier to find the newly added records, without any doubts.\n\nEMG", "time": "18:35", "topic": "Autoincrement field for DBFCDX", "username": "Enrico Maria Giordano" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "First things first: the real problem is that SOMEONE GOT ACCESS TO THE DB. Saying that autoincremental id fields are an issue is like looking at the finger when somebody points with his finger to the stars.\nAutoincremental ID is a pretty good thing in SQL world, giving you an unique id and taking the responsability out of the software. \nThere is nothing like good practices in security and a trustworthy backup policy.", "time": "20:07", "topic": "Autoincrement field for DBFCDX", "username": "Carlos Mora" } ]
Autoincrement field for DBFCDX
[ { "date": "2018-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Franklin Demont\":zkaxtptu]Hello ,\n\nI made some test with autoincrement field :\n\nDBCREATE(cDbfFile , {{\"ID\",\"+\",10,0}} , \"DBFCDX\" , .T. )\nDBG DbStruct() // gives ID , + , 4 , 0\n? FieldLen(\"ID\") // 4 WHY TRUNCATED TO 4 ?????????????????????????\n\nFOR i := 1 TO 10001\n DBAPPEND()\nNEXT\n\n? Recno() , FIELD->ID // 10001 , 10001\n\nFIELD->ID accepts a number with length 5 , DSTRUCT seems to give a wrong result !!!\n\nWhat is the real length ??? maybe 10 ?????\nHow can it be showed ?\nFrank Demont[/quote:zkaxtptu]\n\nAutoincrement field value is stored as an Unsigned Long Integer in the DBF, which requires 4 bytes of storage. That is the reason why we see 4 as the field length.\nThe maximum value is nearly 4 billion. Expressed in decimal notation its length is 10.", "time": "20:07", "topic": "Autoincrement field for DBFCDX", "username": "nageswaragunupudi" } ]
Autoincrement field for DBFCDX
[ { "date": "2015-07-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados:\nTengo un problema al definir tablas con autoincrementales, en una base de datos embebida con Tdolphin. Cuando consulto por el autoincremental siguiente con la funcion \n[code=fw:3mfbelbq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oServer:<span style=\"color: #000000;\">GetAutoIncrement</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"tabla\"</span><span style=\"color: #000000;\">&#41;</span></div>[/code:3mfbelbq] la aplicacion deja de responder.\nAlguna pista de como solucionarlo?", "time": "15:20", "topic": "Autoincremental en Base Embebida con dolphin", "username": "cmsoft" } ]
Autoincremental en Base Embebida con dolphin
[ { "date": "2015-07-15", "forum": "FiveWin para Harbour/xHarbour", "text": "He solucionado el problema de los autoincrementales creando una funcion propia que me devuelve el MAX(campo_clave) + 1.\nAhora tengo otro problema. El programa deja de responder cuando hago Query compuesta por mas de una tabla. Alguien ha hecho funcionar Dolphin con Mysql embebida??\nGracias", "time": "22:11", "topic": "Autoincremental en Base Embebida con dolphin", "username": "cmsoft" } ]
Autoincremental en Base Embebida con dolphin
[ { "date": "2015-07-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos\n\nContactame via gtalk o skype", "time": "02:45", "topic": "Autoincremental en Base Embebida con dolphin", "username": "Daniel Garcia-Gil" } ]
Autoincremental en Base Embebida con dolphin
[ { "date": "2015-07-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\nRecomiendo utilizar SELECT XCAMPO ORDER BY XCAMPO\nLa funcion MAX() es lenta comparado con ORDER BY", "time": "01:36", "topic": "Autoincremental en Base Embebida con dolphin", "username": "jnavas" } ]
Autoincremental en Base Embebida con dolphin
[ { "date": "2008-08-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Is it possible seek Numeric field with xBrowse ? \r\n\r\nRegards MAurizio", "time": "11:05", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "Maurizio" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2008-08-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes.\r\n\r\nWe need to write the appropriate seek function and assign it as codeblock to oBrw:bSeek. We can do anything we want with this codeblock.", "time": "14:56", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "nageswaragunupudi" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2008-08-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello \r\nI change the Method Seek() and now works \r\n\r\n * if !Eval( ::bSeek, cSeek )\r\n * Eval( ::bBookMark, uBook )\r\n * MsgBeep()\r\n * return nil\r\n * endif\r\n\r\n Select (::cAlias)\r\n cOrderType := Valtype(& (\"field->\" + ( ::cAlias )->( OrdKey() ) ))\r\n if !Eval( ::bSeek, iif(cOrderType == \"N\", val(cSeek) , cSeek ))\r\n IF cOrderType == \"N\"\r\n ::cSeek := cSeek\r\n ELSE\r\n MsgBeep()\r\n ENDIF \r\n Eval( ::bBookMark, uBook )\r\n return nil\r\n endif\r\n\r\nRegards MAurizio", "time": "15:19", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "Maurizio" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2008-08-30", "forum": "FiveWin for Harbour/xHarbour", "text": "It can be done without changing xbrowse library code. And I personally prefer writing the code without touching library code generally.\r\n\r\nThis is all what is needed ( I am using softseek )\r\n[code:2ihyzvwj]\n oBrw&#58;bSeek &#58;= &#123; |cSeek| CUST->&#40; DbSeek&#40; Val&#40; cSeek &#41;, &#46;t&#46; &#41;, !eof&#40;&#41; &#41; &#125;\n[/code:2ihyzvwj]", "time": "15:21", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "nageswaragunupudi" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2008-08-30", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a sample code. This sample also shows the value being sought\r\n[code:2a96kxxe]\n#include 'fivewin&#46;ch'\n#include 'xbrowse&#46;ch'\n\nREQUEST DBFCDX\n\nfunction Main&#40;&#41;\n\n local oDlg, oBrw\n local oSeek, cSeek &#58;= Space&#40;25&#41;\n\n USE CUSTOMER NEW ALIAS CUST SHARED VIA 'DBFCDX'\n SET ORDER TO TAG SALARY\n GO TOP\n\n DEFINE DIALOG oDlg SIZE 540,480 PIXEL\n\n @ 10, 10 XBROWSE oBrw ;\n COLUMNS 'First','Last','Salary' ;\n SIZE 250,200 PIXEL ;\n OF oDlg ;\n ALIAS 'CUST' ;\n AUTOSORT\n\n @ 220, 10 SAY oSeek VAR cSeek SIZE 100,10 PIXEL OF oDlg ;\n COLOR CLR_BLACK, CLR_YELLOW\n\n oBrw&#58;bSeek &#58;= &#123; |cSeek| CUST->&#40; DbSeek&#40; Val&#40; cSeek &#41;, &#46;t&#46; &#41;, !eof&#40;&#41; &#41; &#125;\n oBrw&#58;oSeek &#58;= oSeek\n\n oBrw&#58;CreateFromCode&#40;&#41;\n\n ACTIVATE DIALOG oDlg CENTERED\n\nreturn nil\n[/code:2a96kxxe]\r\nWe can seek any data type, without modifying the xbrowse source code.", "time": "16:10", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "nageswaragunupudi" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2008-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank NageswaraRao\r\n I try your sample , it works but only on the numeric Col. If you have two Col ( one numeric and one character ) and you need both seek \r\ndoesn't works . \r\n\r\nMaurizio", "time": "07:56", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "Maurizio" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2008-09-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Maurizio\":3ats77q7]Thank NageswaraRao\n I try your sample , it works but only on the numeric Col. If you have two Col ( one numeric and one character ) and you need both seek \ndoesn't works . \n\nMaurizio[/quote:3ats77q7]\r\n\r\nTrue\r\nI gave the sample to demonstrate that XBrowse lets us do the real code to Seek. We need to code how do we seek the value entered by suitably coding the bSeek codeblock and not by changing the XBrowse source code.\r\n\r\nSure we can write more generic code.", "time": "11:54", "topic": "Autoincremental search of Numeric field in xBrowse", "username": "nageswaragunupudi" } ]
Autoincremental search of Numeric field in xBrowse
[ { "date": "2019-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Here you have a very simple example to implement Automated Machine Learning using Harbour.\n\nImagine that we have a robot and we want the robot to learn the most efficient way to exit from a house.\nSo we place the robot in a random room and the robot tries to exit from the house. \n\nThe robot learns from the successes and the failures, and starts improving. In a few tries the robot knows\nthe most efficient way to exit from the house <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[img:e6ighio9]https&#58;//fivetechsoft&#46;github&#46;io/screenshots/qlearning&#46;jpg[/img:e6ighio9]\n\nIf the robot starts in the room 1 or in the room 3, there is nothing to choose. From the room 1 he can only goes to room 5.\nFrom the room 3 he can only go to room 4.\n\nIf he is in the room 2, then he has two options, to exit from the house (he does not know it is the exit but he will get rewarded)\nor he may go to room 4.\n\nA similar situation happens in the room 5. he may exit from the house (and get rewarded) or he may go to room 4 or room 1.\n\nWhen the robot is in the room 4 he has two alternatives to exit: going through room 5 or going through room 2. Both ways\nwill take him out of the house in the same amount of steps.\n\nWhen the robot exits the house, he gets a positive reinforcement (the State's nScore increases in 0.1). When he fails, he gets\na negative reinforcement (the state's nScore decreases in 0.1). After a few tries, the robot learns the right way.\n\nqlearning.prg\n[code=fw:e6ighio9]<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;\">static</span> aStates<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; &nbsp;aStates = InitStates<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Number of steps to exit\"</span>, SolveIt<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">XBrowse</span><span style=\"color: #000000;\">&#40;</span> aStates <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; <br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> SolveIt<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oState, nSteps := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;oState = aStates<span style=\"color: #000000;\">&#91;</span> hb_RandomInt<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, Len<span style=\"color: #000000;\">&#40;</span> aStates <span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">while</span> ! oState == ATail<span style=\"color: #000000;\">&#40;</span> aStates <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">XBrowse</span><span style=\"color: #000000;\">&#40;</span> oState:<span style=\"color: #000000;\">aOptions</span>, <span style=\"color: #ff0000;\">\"Options for room: \"</span> + AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> oState:<span style=\"color: #000000;\">nId</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oState = oState:<span style=\"color: #000000;\">NextState</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nSteps++<br />&nbsp; &nbsp;end<br /><br /><span style=\"color: #00C800;\">return</span> nSteps<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> InitStates<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aStates := Array<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> aStates, <span style=\"color: #000000;\">&#123;</span> | o, n | aStates<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> := TState<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddOption</span><span style=\"color: #000000;\">&#40;</span> aStates<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> aStates<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TState<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp;nId<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp;aOptions <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DATA</span> &nbsp;nScore &nbsp; <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nId <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span> ::<span style=\"color: #000000;\">nId</span> := nId, <span style=\"color: #00C800;\">Self</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> AddOption<span style=\"color: #000000;\">&#40;</span> oState <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span> AAdd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOptions</span>, oState <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">METHOD</span> NextState<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> NextState<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TState<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n, nMax := <span style=\"color: #000000;\">0</span>, oState, aOptions<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOptions</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; oState = ::<span style=\"color: #000000;\">aOptions</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; aOptions = AShuffle<span style=\"color: #000000;\">&#40;</span> AClone<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aOptions</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aOptions <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> aOptions<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nScore</span> >= nMax<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nMax = aOptions<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nScore</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oState = aOptions<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oState:<span style=\"color: #000000;\">nId</span> == <span style=\"color: #000000;\">6</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nScore</span> += .<span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nScore</span> -= .<span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br /><span style=\"color: #00C800;\">return</span> oState &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> AShuffle<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> ASort<span style=\"color: #000000;\">&#40;</span> aArray,,, <span style=\"color: #000000;\">&#123;</span> || HB_RandomInt<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1000</span> <span style=\"color: #000000;\">&#41;</span> < HB_RandomInt<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1000</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span></div>[/code:e6ighio9]\n\nAfter a few tries the robot starts learning, we can check it reviewing the different state's rewards:\n\nWhen the robot is in room 5, he has three alternatives: room 1 (reward value is -0.3), room 4 (reward value is -0.3) and option 6 (reward zero)\nso he takes the highest value and knows that option 6 is the right one <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\n[img:e6ighio9]https&#58;//fivetechsoft&#46;github&#46;io/screenshots/qlearningstates&#46;JPG[/img:e6ighio9]", "time": "22:53", "topic": "Automated Machine Learning using Harbour", "username": "Antonio Linares" } ]
Automated Machine Learning using Harbour
[ { "date": "2019-04-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:1xq7s16q]The robot is at room: 5\n He has these choices:\n Go to room: 1 (score: 0 )\n Go to room: 4 (score: 0 )\n Go to room: 6 (score: 0 )\nThe robot is at room: 4\n He has these choices:\n Go to room: 2 (score: 0 )\n Go to room: 3 (score: 0 )\n Go to room: 5 (score: -0.1 )\nThe robot is at room: 3\n He can just go to room: 4\nThe robot is at room: 4\n He has these choices:\n Go to room: 2 (score: 0 )\n Go to room: 3 (score: -0.1 )\n Go to room: 5 (score: -0.1 )\nThe robot is at room: 2\n He has these choices:\n Go to room: 4 (score: -0.2 )\n Go to room: 6 (score: 0 )\nNumber of steps to exit: 5[/quote:1xq7s16q]\n\n[quote:1xq7s16q]The robot is at room: 3\n He can just go to room: 4\nThe robot is at room: 4\n He has these choices:\n Go to room: 2 (score: 0.5 )\n Go to room: 3 (score: -0.5 )\n Go to room: 5 (score: 2.3 )\nThe robot is at room: 5\n He has these choices:\n Go to room: 1 (score: -0.4 )\n Go to room: 4 (score: -1.1 )\n Go to room: 6 (score: 0 )\nNumber of steps to exit: 3[/quote:1xq7s16q]", "time": "10:30", "topic": "Automated Machine Learning using Harbour", "username": "Antonio Linares" } ]
Automated Machine Learning using Harbour
[ { "date": "2021-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nI have automated a WorkGroup application that generates an Outlook 365 ( client ) e-mail ... the code is simple enough and it works quite well .. however I am having problems with some users that can not see the Body ( cBody ) of the message .. which I code as plain text ... \n\nHere is the code:\n\n[code=fw:xxao4vba]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />         cBody    := <span style=\"color: #ff0000;\">\"Dear Employee: \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span> cEMployee <span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\";\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"From \"</span>+cMan1+<span style=\"color: #ff0000;\">\" \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"A Travel /  Train request has been reviewed and Approved by \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span>cMan1<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\".\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"The Final Disposition : \"</span>+cCloseType+<span style=\"color: #ff0000;\">\" Dated \"</span>+dtoc<span style=\"color: #000000;\">&#40;</span>dFinalDt<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\".\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"Please see the Link instructions Provided below. ** \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\" \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\" \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"Summary of Request:\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Employee Name: \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span> cEmployee <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Vendor Sponsor: \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span> cSponsor <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Conference/Event: \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span> cEvent <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Location: \"</span>+alltrim<span style=\"color: #000000;\">&#40;</span> cLocation <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Start Date:  \"</span>+dtoc<span style=\"color: #000000;\">&#40;</span> dLeave <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  End Date:    \"</span>+dtoc<span style=\"color: #000000;\">&#40;</span> dReturn <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Estimated Cost:  $\"</span>+Transform<span style=\"color: #000000;\">&#40;</span>nTotalExp,<span style=\"color: #ff0000;\">\"999,999.99\"</span> <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #00C800;\">If</span> cExam = <span style=\"color: #ff0000;\">\"Y\"</span> .and. <span style=\"color: #000000;\">&#40;</span> cQuality = <span style=\"color: #ff0000;\">\"N\"</span> .and. cMgmt = <span style=\"color: #ff0000;\">\"N\"</span> .and. cTech = <span style=\"color: #ff0000;\">\"N\"</span> .and. cDev = <span style=\"color: #ff0000;\">\"N\"</span> .and. cConf = <span style=\"color: #ff0000;\">\"N\"</span> <span style=\"color: #000000;\">&#41;</span><br />            cBody    += <span style=\"color: #ff0000;\">\"   *  Is this Request for Examination Travel ONLY? : Yes\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">Else</span><br />            cBody    += <span style=\"color: #ff0000;\">\"   *  Is this Request for Examination Travel ONLY? : No\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">Endif</span><br /><br />         cBody    += <span style=\"color: #ff0000;\">\"   *  Is This Associated with a Previously approved Designation? : \"</span>+cPrevAppr+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += alltrim<span style=\"color: #000000;\">&#40;</span>cAppUrl<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" /\"</span>+alltrim<span style=\"color: #000000;\">&#40;</span> cPersno <span style=\"color: #000000;\">&#41;</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"**   To run .. hold down the Windows key + R ...  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"Cut and Paste the entire link above into the open RUN line and hit\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"OK to start the Program\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"Note .. This is an automated e-mail sent from the Leave / Travel Program\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />         cBody    += <span style=\"color: #ff0000;\">\"  \"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:xxao4vba]\n\nNot rocket science so far .... \n\nHere is my Outlook \"silent\" e-mail generation ....\n\n[code=fw:xxao4vba]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Try</span><br />   oOutLook  := TOleAuto<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Outlook.Application\"</span><span style=\"color: #000000;\">&#41;</span><br />Catch<br />    Saying := <span style=\"color: #ff0000;\">\"For some Odd reason The Outlook e-mail CLient failed to Initialize\"</span><br />    <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span> Saying <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span>.f.<span style=\"color: #000000;\">&#41;</span><br />End <span style=\"color: #00C800;\">Try</span><br /><br />oMailItem := oOutLook:<span style=\"color: #000000;\">Invoke</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"CreateItem\"</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br /><br />oMailitem:<span style=\"color: #0000ff;\">to</span> := cTo<br />oMailitem:<span style=\"color: #000000;\">CC</span> := cCC<br />oMailItem:<span style=\"color: #0000ff;\">Subject</span> := cSubject<br />oMailItem:<span style=\"color: #000000;\">Body</span> := cBody               <span style=\"color: #B900B9;\">// just plain text</span><br /><br /><span style=\"color: #00C800;\">Try</span><br />   oMailItem:<span style=\"color: #00C800;\">display</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />Catch<br />End <span style=\"color: #00C800;\">Try</span><br /><br /><span style=\"color: #00C800;\">Try</span><br />   oMailItem:<span style=\"color: #000000;\">Invoke</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Send\"</span><span style=\"color: #000000;\">&#41;</span><br />Catch<br />End <span style=\"color: #00C800;\">Try</span><br /><br /> </div>[/code:xxao4vba]\n\nThe e-mail is generated and sent to the recipient .. however, in a couple of cases .. cBody is not being resolved in the e-mail .. just a big white space .. By default all the OUtlook settings are set to allow HTML .... even the ones that DO recieve the message where cBody is just plain text ... \n\nI am just curious if chr(10) at the end of the text may be causing any problems .. however, only a select few recipients have any problem at all seeing the body of the message ... I am just curious if changing cBody to HTML may be a ( positive ) common denominator ... \n\nI would be grateful if any HTML Gurus could look at cBody and re-code it for HTML ??? however, I don't know if HTML vs plain text will resolve anything .. I am OPEN to any comments and suggestions ...\n\nThanks\nRick Lipkin", "time": "19:28", "topic": "Automated Outlook e-mail and sending plain text", "username": "Rick Lipkin" } ]
Automated Outlook e-mail and sending plain text