messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2006-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there an advantage of using an ALIAS in the index-expression: \n index on kasse->beleg tag k_beleg\nor\n index on beleg tag k_beleg\n\nThanks in advance\nOtto", "time": "14:25", "topic": "Alias in index expression", "username": "Otto" } ]
Alias in index expression
[ { "date": "2006-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":3b6hjxg3]Is there an advantage of using an ALIAS in the index-expression: \n index on kasse->beleg tag k_beleg\nor\n index on beleg tag k_beleg\n\nThanks in advance\nOtto[/quote:3b6hjxg3]\n\nNone at all, in fact, you should avoid the use of use of alias in index expressions, specially if you are using Advantage Database Server, or if you are working with dynamic aliases.", "time": "16:35", "topic": "Alias in index expression", "username": "R.F." } ]
Alias in index expression
[ { "date": "2006-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "I use \n\nindex on field->beleg tag k_beleg \n\nso I not declare the FIELD\n\nMaurizio", "time": "17:47", "topic": "Alias in index expression", "username": "Maurizio" } ]
Alias in index expression
[ { "date": "2006-09-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Rene, thank you for your answer. Advantage is my problem therefore I have to change. I couldn't remember why I used the Alias. \n\nHello Maurizio,\nI was very happy to see you and your family here in Sillian.\nThe evening was too short. \nGreetings from all of us\nOtto", "time": "18:28", "topic": "Alias in index expression", "username": "Otto" } ]
Alias in index expression
[ { "date": "2019-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI want to make an Excel-document from my FWH-application.\n\nI need to align the cells in my Excel document.\n\nTo achieve tha, I try this :[code=fw:18bc708l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/* Explanation cPos :<br />   cPos = 0 -> Standaad alignement<br />   cPos = 1 -> Left alignement<br />   cPos = 2 -> Centered<br />   cPos = 3 -> Right alignement<br />   cPos = 4 -> Left + right alignement<br />*/</span><br />oSheet:<span style=\"color: #000000;\">Range</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"A1\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">HorizontalAlignment</span> := cPos</div>[/code:18bc708l]Unfortunately, nothing is changing.\n\nWhat do I do wrong?\nDoes anyone have another suggestion?\n\nThanks a lot in advance for any help.", "time": "16:23", "topic": "Alignement in Excel (solved)", "username": "driessen" } ]
Alignement in Excel (solved)
[ { "date": "2019-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Not valid this?\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32228&p=188814&hilit=HorizontalAlignment#p188814\">viewtopic.php?f=3&t=32228&p=188814&hilit=HorizontalAlignment#p188814</a><!-- l -->", "time": "16:28", "topic": "Alignement in Excel (solved)", "username": "cnavarro" } ]
Alignement in Excel (solved)
[ { "date": "2019-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks a lot for your help. It works just fine.\n\nSorry I couldn't remember my previous topic about this subject.", "time": "17:22", "topic": "Alignement in Excel (solved)", "username": "driessen" } ]
Alignement in Excel (solved)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all\n\nWhy when xBrowse display a column of type char (ALIG LEFT) are trimmed left spaces ?\nIs it possible fix this ?\n\nEs.: cStr := \" Test\" align is \"Test\"\n\nTIA", "time": "00:01", "topic": "Alignment of column CHAR in Xbrowse", "username": "mauri.menabue" } ]
Alignment of column CHAR in Xbrowse
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Mauri,\n\nI don't understand what you are asking for. \n\nLeft trimming is what ALIGN LEFT means, so it would seem that it is not in need of fixing.\n\nIf you don't want left trimming then just leave off ALIGN LEFT.\n\nPerhaps you want something else?\n\nRegards,\nJames", "time": "02:44", "topic": "Alignment of column CHAR in Xbrowse", "username": "James Bott" } ]
Alignment of column CHAR in Xbrowse
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi James\nI post an image to explain better the problem\n[img]\n<!-- m --><a class=\"postlink\" href=\"https://imageshack.com/i/po8DfT0Kp\">https://imageshack.com/i/po8DfT0Kp</a><!-- m -->\n[/img]\n\nRegard,\nMauri", "time": "08:59", "topic": "Alignment of column CHAR in Xbrowse", "username": "mauri.menabue" } ]
Alignment of column CHAR in Xbrowse
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Mauri,\n\nThe xbrowse appears to be working correctly.\n\nYou could use ALIGN RIGHT, which is what one usually uses with numbers. That is what I would do.\n\nOr, you could use something like strtran([fieldname],\" \", chr(160)). This will replace spaces with an invisible character that looks like a space. I don't know if XBrowse can handle that character.\n\nI just noticed that it appears that this is an item number. I always start item numbers with \"1\" plus however many zeros it takes to fill the field. Or, you could always make item numbers the same length by left padding them with zeros when needed. Either of these would solve your xbrowse problem. \n\nOr, you could solve this without changes to the data file, you could define the column with [b:25p1ub54]strtran([fieldname],\" \",\"0\")[/b:25p1ub54] . However, if this is an existing system this could cause problems if users try to type in leading zeros when searching for item numbers. \n\nOr, with an existing system you could just replace all the item numbers in the file with strtran([fieldname],\" \",\"0\"). However, for awhile there would be a lot of confusion by users. Pre-existing documents would have no leading zeros, and new documents would. It could also create problems with existing item numbers in other files, like invoices etc. You would have to find and change all them too.\n\nThese are reasons why I always use item numbers of equal lengths. \n\nThe simplest thing to do is just ALIGN RIGHT.\n\nRegards,\nJames", "time": "16:23", "topic": "Alignment of column CHAR in Xbrowse", "username": "James Bott" } ]
Alignment of column CHAR in Xbrowse
[ { "date": "2012-01-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenos dias.\n\n Estoy haciendo algunas pruebas con la version demo de fastreport para la impresion de facturas electronicas, me encontre con un problema que no se como resolver. En la impresion de la cadena orignal fastreport siempre da una alineacion automatica y la cadena queda de la siguiente forma;\n\n[img:26l1h1w0]http&#58;//www&#46;lanominamasfacil&#46;com&#46;mx/cadori&#46;JPG[/img:26l1h1w0]\n\nComo pueden ver fastreport, al hacer la alineacion automatica, corta las lineas cuando encuentra un espacio, sucede algo similar cuando se cambia la justificacion a right o center o block. No encuentro la forma de hacer que el campo se imprima sin alineacion automatica. Esto es importante para la impresion de facturas electronicas en mexico puesto que la cadena original debe de imprimirse sin alineacion automatica.\n\nSaludos.", "time": "19:57", "topic": "Alineacion de campos en fastreport (solucionado)", "username": "interwin" } ]
Alineacion de campos en fastreport (solucionado)
[ { "date": "2012-01-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola\n\nEncontre una solucion cambiando los espacios por espacios sin separacion [i:387kgnqa]chr(255)[/i:387kgnqa] en la cadena original que se va a imprimir con fastreport. De esta forma fastreport no realiza alineacion automatica\n \n cCadOriParaImprimir := strTran(cCadOri,' ',oemToAnsi(chr(255)))\n\n Saludos.", "time": "03:09", "topic": "Alineacion de campos en fastreport (solucionado)", "username": "interwin" } ]
Alineacion de campos en fastreport (solucionado)
[ { "date": "2011-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Quisiera saber de qué manera puedo alinear el título de una columna y una alineación diferente para la data de la misma. Gracias por la ayuda", "time": "19:38", "topic": "Alineación en treport Solucionado", "username": "horacio" } ]
Alineación en treport Solucionado
[ { "date": "2011-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Puedes experimentar esto\n\n[code=fw:3ex77rxo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRpt:<span style=\"color: #000000;\">bStartPage</span> := <span style=\"color: #000000;\">&#123;</span>|| oCol:<span style=\"color: #000000;\">nPad</span> := RPT_CENTER <span style=\"color: #000000;\">&#125;</span> <br />oRpt:<span style=\"color: #000000;\">bStartRecord</span> := <span style=\"color: #000000;\">&#123;</span>|| oCol:<span style=\"color: #000000;\">nPad</span> := RPT_RIGHT <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:3ex77rxo]", "time": "22:49", "topic": "Alineación en treport Solucionado", "username": "RenOmaS" } ]
Alineación en treport Solucionado
[ { "date": "2011-02-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias RenOmas, lo que no entiendo es de donde sale el objeto oCol. No me doy cuenta. Gracias por la respuesta. SOLUCIONADO. Muchisimas Gracias", "time": "14:13", "topic": "Alineación en treport Solucionado", "username": "horacio" } ]
Alineación en treport Solucionado
[ { "date": "2011-03-01", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"horacio\":1xjysv37]Gracias RenOmas, lo que no entiendo es de donde sale el objeto oCol. No me doy cuenta. Gracias por la respuesta. SOLUCIONADO. Muchisimas Gracias[/quote:1xjysv37]\n\nA mi me pasa lo mismo. ¿Podrias poner un ejemplo esquematico de como lo has hecho?\n\nMuchas gracias", "time": "06:15", "topic": "Alineación en treport Solucionado", "username": "Manuel Valdenebro" } ]
Alineación en treport Solucionado
[ { "date": "2011-03-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel. aqui el ejemplo\n\n[code=fw:22selpig]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />                        <span style=\"color: #00C800;\">Function</span> ImpPadron<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Local</span> oReporte<br /><span style=\"color: #00C800;\">Local</span> oFnt1<br /><span style=\"color: #00C800;\">Local</span> oFnt2<br /><span style=\"color: #00C800;\">Local</span> oFnt3<br /><span style=\"color: #00C800;\">Local</span> oFnt4<br /><span style=\"color: #00C800;\">Local</span> oPen1<br /><span style=\"color: #00C800;\">Local</span> oPen2<br /><span style=\"color: #00C800;\">Local</span> i, j<br /><span style=\"color: #00C800;\">Local</span> nAt := <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">Local</span> oEspera<br /><span style=\"color: #00C800;\">LocaL</span> dFecha<br /><br /><span style=\"color: #0000ff;\">Define</span> Pen oPen1 Width <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">COLOR</span> RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">Define</span> Pen oPen2 Width <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK<br /><br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFnt1 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>,  - <span style=\"color: #000000;\">8</span><br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFnt2 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,  - <span style=\"color: #000000;\">8</span> Bold<br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFnt3 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>,  <span style=\"color: #000000;\">-11</span> Bold<br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> oFnt4 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"Tahoma\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>, - <span style=\"color: #000000;\">8</span> Bold<br /><br /><span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oVarGlobales : <span style=\"color: #000000;\">lPrevisualiza</span> <span style=\"color: #000000;\">&#41;</span><br />   Report oReporte <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"**LISTADO DEL PADRON**\"</span>, <span style=\"color: #ff0000;\">\"\"</span>  ;<br />            Preview <span style=\"color: #0000ff;\">Font</span> oFnt2, oFnt3, oFnt1, oFnt4 ;<br />            Header Alltrim<span style=\"color: #000000;\">&#40;</span> oVarGlobales : <span style=\"color: #000000;\">cColegio</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Fecha \"</span> + DToC<span style=\"color: #000000;\">&#40;</span> Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Hora \"</span> + Time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />            Footer OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Página Nro \"</span> <span style=\"color: #000000;\">&#41;</span> + StrZero<span style=\"color: #000000;\">&#40;</span> oReporte : <span style=\"color: #000000;\">nPage</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">Center</span> Pen oPen2, oPen1 ;<br />            Caption <span style=\"color: #ff0000;\">\"Listado del padron\"</span><br /><span style=\"color: #00C800;\">Else</span><br />   oEspera := TEspera<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;\">\"Imprimiendo. Espere por favor\"</span> <span style=\"color: #000000;\">&#41;</span><br />   Report oReporte <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"Listado de Padron\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span>  ;<br />            <span style=\"color: #0000ff;\">Font</span> oFnt2, oFnt3, oFnt1, oFnt4 ;<br />            Header Alltrim<span style=\"color: #000000;\">&#40;</span> oVarGlobales : <span style=\"color: #000000;\">cColegio</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Fecha \"</span> + DToC<span style=\"color: #000000;\">&#40;</span> Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Hora \"</span> + Time<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />            Footer OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Página Nro \"</span> <span style=\"color: #000000;\">&#41;</span> + StrZero<span style=\"color: #000000;\">&#40;</span> oReporte : <span style=\"color: #000000;\">nPage</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">Center</span> Pen oPen2, oPen1 ;<br />            Caption <span style=\"color: #ff0000;\">\"Listado del padron\"</span><br />End<br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">''</span>, <span style=\"color: #ff0000;\">\"DOC.\"</span>, <span style=\"color: #ff0000;\">\" \"</span>               <span style=\"color: #00C800;\">Data</span> Alltrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">'EMPLEADO'</span>,<span style=\"color: #ff0000;\">\"OBRA SOCIAL\"</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #00C800;\">Data</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">35</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">''</span>, <span style=\"color: #ff0000;\">\"CUIL\"</span>, <span style=\"color: #ff0000;\">\" \"</span>               <span style=\"color: #00C800;\">Data</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>                     <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">''</span>, <span style=\"color: #ff0000;\">\"ALTA\"</span>, <span style=\"color: #ff0000;\">\" \"</span>               <span style=\"color: #00C800;\">Data</span> dFecha                                 <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #0000ff;\">Center</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"COD.\"</span>, <span style=\"color: #ff0000;\">\"ACT.\"</span>, <span style=\"color: #ff0000;\">\" \"</span>           <span style=\"color: #00C800;\">Data</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span>                     <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">Center</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"MOD.\"</span>, <span style=\"color: #ff0000;\">\" \"</span>               <span style=\"color: #00C800;\">Data</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#93;</span>                     <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">Center</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"COND.\"</span>, <span style=\"color: #ff0000;\">\" \"</span>              <span style=\"color: #00C800;\">Data</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#93;</span>                     <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">Center</span> <span style=\"color: #B900B9;\">//Grid 2</span><br />   Column <span style=\"color: #0000ff;\">Title</span> <span style=\"color: #ff0000;\">\"COD.\"</span>, <span style=\"color: #ff0000;\">\"ZONA\"</span>, <span style=\"color: #ff0000;\">\" \"</span>           <span style=\"color: #00C800;\">Data</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#93;</span>                     <span style=\"color: #0000ff;\">Font</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">Center</span> <span style=\"color: #B900B9;\">//Grid 2</span><br /><br />   oReporte : <span style=\"color: #000000;\">nTitleUpLine</span> := RPT_NOLINE<br />   oReporte : <span style=\"color: #000000;\">nTitleDnLine</span> := RPT_NOLINE<br />   oReporte : <span style=\"color: #000000;\">nTotalLine</span>   := RPT_NOLINE<br />   oReporte : <span style=\"color: #000000;\">nDataLine</span>    := RPT_DOUBLELINE<br />   <span style=\"color: #B900B9;\">//Aeval(oReporte : aColumns, {|v| v:Separator(100)})</span><br />End Report<br /><br /><span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oReporte : <span style=\"color: #000000;\">lCreated</span> <span style=\"color: #000000;\">&#41;</span><br />   With Object oReporte<br />      :<span style=\"color: #000000;\">nTitleBox</span>     := <span style=\"color: #000000;\">3</span><br />      :<span style=\"color: #000000;\">lTitleBoxJoin</span> := .t.<br />      :<span style=\"color: #000000;\">nHeaderBox</span>    := <span style=\"color: #000000;\">3</span><br />      :<span style=\"color: #000000;\">nBodyBox</span>      := <span style=\"color: #000000;\">2</span><br />      :<span style=\"color: #000000;\">nCurve</span>        := <span style=\"color: #000000;\">0</span><br />      :<span style=\"color: #000000;\">SetPenColor</span><span style=\"color: #000000;\">&#40;</span> CLR_WHITE <span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">bSkip</span> := <span style=\"color: #000000;\">&#123;</span> || nAt++ <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">oTitle</span>  : <span style=\"color: #000000;\">aFont</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">oHeader</span> : <span style=\"color: #000000;\">aFont</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">oTitle</span> : <span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>  := RPT_LEFT<br />      :<span style=\"color: #000000;\">oTitle</span> : <span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>  := RPT_CENTER<br />      :<span style=\"color: #000000;\">oTitle</span> : <span style=\"color: #000000;\">aPad</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>  := RPT_LEFT<br />      :<span style=\"color: #000000;\">oDevice</span> : <span style=\"color: #000000;\">SetPortrait</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">oDevice</span> : <span style=\"color: #000000;\">lPrvModal</span>  := .t.<br />   End<br />End<br /><br />oReporte : <span style=\"color: #000000;\">bStartPage</span>   := <span style=\"color: #000000;\">&#123;</span> || CambiaAlineacion<span style=\"color: #000000;\">&#40;</span> oReporte, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oReporte : <span style=\"color: #000000;\">bStartRecord</span> := <span style=\"color: #000000;\">&#123;</span> || CambiaAlineacion<span style=\"color: #000000;\">&#40;</span> oReporte, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">Activate</span> Report oReporte <span style=\"color: #0000ff;\">On</span> <span style=\"color: #0000ff;\">Init</span> <span style=\"color: #000000;\">&#40;</span> oReporte : <span style=\"color: #000000;\">lSeparator</span> := .t. <span style=\"color: #000000;\">&#41;</span> ;<br />   <span style=\"color: #00C800;\">While</span> nAt <= Len<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span> ;<br />   <span style=\"color: #0000ff;\">On</span> StartLine<span style=\"color: #000000;\">&#40;</span> dFecha := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Valtype<span style=\"color: #000000;\">&#40;</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"U\"</span>, DToc<span style=\"color: #000000;\">&#40;</span> CToD<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, DToc<span style=\"color: #000000;\">&#40;</span> aArray<span style=\"color: #000000;\">&#91;</span> nAt <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />oPen1 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oPen2 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oFnt1 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oFnt2 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oFnt3 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oFnt4 : <span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oVarGlobales : <span style=\"color: #000000;\">oWndMain</span> : <span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> !oVarGlobales : <span style=\"color: #000000;\">lPrevisualiza</span> <span style=\"color: #000000;\">&#41;</span><br />   oEspera : <span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />End<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br /><br />                        <span style=\"color: #00C800;\">Function</span> CambiaAlineacion<span style=\"color: #000000;\">&#40;</span> oReporte, nOpcion <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Local</span> i<br /><br /><span style=\"color: #00C800;\">Switch</span> nOpcion<br />   <span style=\"color: #00C800;\">Case</span> <span style=\"color: #000000;\">1</span><br />      <span style=\"color: #00C800;\">For</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> oReporte : <span style=\"color: #000000;\">aColumns</span> <span style=\"color: #000000;\">&#41;</span><br />         oReporte : <span style=\"color: #000000;\">aColumns</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">nPad</span> := RPT_LEFT<br />         oReporte : <span style=\"color: #000000;\">aColumns</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">bTitleFont</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #00C800;\">Next</span> i<br />      Exit<br />   <span style=\"color: #00C800;\">Case</span> <span style=\"color: #000000;\">2</span><br />      <span style=\"color: #00C800;\">For</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> oReporte : <span style=\"color: #000000;\">aColumns</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> i == <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />            oReporte : <span style=\"color: #000000;\">aColumns</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">nPad</span> := RPT_LEFT<br />         <span style=\"color: #00C800;\">Else</span><br />            oReporte : <span style=\"color: #000000;\">aColumns</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">nPad</span> := RPT_CENTER<br />         End<br />         oReporte : <span style=\"color: #000000;\">aColumns</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> : <span style=\"color: #000000;\">bDataFont</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #00C800;\">Next</span> i<br />      Exit<br />End<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">0</span><br /> </div>[/code:22selpig]\nSalu2", "time": "11:23", "topic": "Alineación en treport Solucionado", "username": "horacio" } ]
Alineación en treport Solucionado
[ { "date": "2011-03-02", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio, muchas gracias.", "time": "03:53", "topic": "Alineación en treport Solucionado", "username": "Manuel Valdenebro" } ]
Alineación en treport Solucionado
[ { "date": "2006-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, \nquiero preguntar si alguien sabe como cambiar la alineación (izquierda,derecha o centrado) de un control creado desde recursos (workShop), especificamente un Get (\"Edit text style\") desde tiempo de ejecución.\nEl problema es que tengo un dialogo con un get, que dependiendo un parametro puede ser númerico o texto, por lo que me gustaría poder cambiar su alineacion derecha o izquierda, ya que desde workshop solo puedo poner una de estas dos.\n\nEspero me puedan ayuda con esto. Saludos.\n\nCarlos Sincuir", "time": "13:07", "topic": "Alineameniento de Controles...", "username": "Carlos Sincuir" } ]
Alineameniento de Controles...
[ { "date": "2006-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos, yo tuve ese mismo problema y obté por lo siguiente:\n\nRedefino el dialogo con todos los controles salvo los Gets en cuestión. (lo que no recuerdo es si lo creéen el resource o no, creo que no, pues estoy cambiando el sistema y aún no he instalado el WorkShop, intentalo sin crearlos)\n\nDEFINE DIALOG oDlg ....\n...\n...\n REDEFINE BITMAP oBit[1] ID 600 NAME \"IZQ1\" OF oDlg CURSOR oCurH ;\n\t ON CLICK QueMarg(oDlg,oFont,oBit,oGet,.T.,0) // [b:rf5fvjyi]BOTON ALINEAR A LA IZQUIERDA[/b:rf5fvjyi]\n\n REDEFINE BITMAP oBit[2] ID 601 NAME \"CNT1\" OF oDlg CURSOR oCurH ;\n\t ON CLICK QueMarg(oDlg,oFont,oBit,oGet,.T.,2) // [b:rf5fvjyi]BOTON ALINEAR AL CENTRO[/b:rf5fvjyi]\n\n REDEFINE BITMAP oBit[3] ID 602 NAME \"DCH1\" OF oDlg CURSOR oCurH ;\n\t ON CLICK QueMarg(oDlg,oFont,oBit,oGet,.T.,1) // [b:rf5fvjyi]BOTON ALINEAR A LA DERECHA[/b:rf5fvjyi]\n...\nREDEFINE mas Controles...\n...\n...\nACTIVATE DIALOG oDlg ON INIT QueMarg(oDlg,oFont,oBit,oGet,.F.,0)\n\nFUNCTION QueMarg(oDlg,oFont,oBt,Gt,lCtrl,nJust)\n IF !lCtrl\n oGt[1]:Destroy() // [b:rf5fvjyi]DESTRUYO LOS GETs SI ESTABAN CREADOS CON ANTERIORIDAD[/b:rf5fvjyi] (LA PRIMERA VEZ NO LO ESTABAN)\n oGt[2]:Destroy()\n oGt[3]:Destroy()\n oGt[1]:End()\n oGt[2]:End()\n oGt[3]:End()\n oGt[1] := NIL\n oGt[2] := NIL\n oGt[3] := NIL\n SysRefresh()\n ENDIF\n aVr[1] := ALLTRIM( aVr[1] ) // [b:rf5fvjyi]LE QUITO LOS ESPACIOS SOBRANTES A LAS VARIABLES DE LOS GETs [/b:rf5fvjyi]DE CUANDO ESTAN JUSTIFICADAS A LA DERECHA O AL CENTRO\n aVr[2] := ALLTRIM( aVr[2] )\n aVr[3] := ALLTRIM( aVr[3] )\n\n IF nJust = 0 // [b:rf5fvjyi]SE CREAN LOS GET's JUSTIFICADOS A LA IZQUIERDA[/b:rf5fvjyi]\n oBt[1]:SetBmp( \"IZQ2\" ) ; oBt[1]:Disable()\n oBt[2]:SetBmp( \"CNT1\" ) ; oBt[2]:Enable() // [b:rf5fvjyi]BOTON JUSTIFICAR A LA IZQUIERDA PRESIONADO Y DESHABILITADO[/b:rf5fvjyi]\n oBt[3]:SetBmp( \"DCH1\" ) ; oBt[3]:Enable()\n aVr[1]:= PADR(aVr[1],45)\n aVr[2]:= PADR(aVr[2],45)\n aVr[3]:= PADR(aVr[3],45)\n @ 60,228 GET oGt[1] VAR aVr[1] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t\tCOLOR CLR_OBLUE FONT oFnt\n @ 83,228 GET oGt[2] VAR aVr[2] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t\tCOLOR CLR_OBLUE FONT oFnt\n @ 106,228 GET oGt[3] VAR aVr[3] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t\tCOLOR CLR_OBLUE FONT oFnt\n\n ELSEIF nJust = 2 // [b:rf5fvjyi]SE CREAN LOS GET's JUSTIFICADOS AL CENTRO[/b:rf5fvjyi]\n oBt[1]:SetBmp( \"IZQ1\" ) ; oBt[1]:Enable()\n oBt[2]:SetBmp( \"CNT2\" ) ; oBt[2]:Disable() // [b:rf5fvjyi]BOTON JUSTIFICAR AL CENTRO PRESIONADO Y DESHABILITADO[/b:rf5fvjyi]\n oBt[3]:SetBmp( \"DCH1\" ) ; oBt[3]:Enable()\n aVr[1]:= PADR(aVr[1],45)\n aVr[2]:= PADR(aVr[2],45)\n aVr[3]:= PADR(aVr[3],45)\n @ 60,228 GET oGt[1] VAR aVr[1] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t\tCOLOR CLR_OBLUE FONT oFnt CENTER\n @ 83,228 GET oGt[2] VAR aVr[2] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t\tCOLOR CLR_OBLUE FONT oFnt CENTER\n @ 106,228 GET oGt[3] VAR aVr[3] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t\tCOLOR CLR_OBLUE FONT oFnt CENTER\n\n ELSE // [b:rf5fvjyi]SE CREAN LOS GET's JUSTIFICADOS A LA DERECHA[/b:rf5fvjyi]\n oBt[1]:SetBmp( \"IZQ1\" ) ; oBt[1]:Enable()\n oBt[2]:SetBmp( \"CNT1\" ) ; oBt[2]:Enable()\n oBt[3]:SetBmp( \"DCH2\" ) ; oBt[3]:Disable()[b:rf5fvjyi]BOTON JUSTIFICAR A DERECHA PRESIONADO Y DESHABILITADO[/b:rf5fvjyi]\n aVr[1]:= PADL(aVr[1],45)\n aVr[2]:= PADL(aVr[2],45)\n aVr[3]:= PADL(aVr[3],45)\n @ 60,228 GET oGt[1] VAR aVr[1] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t VALID(aVr[1] := PADL(ALLTRIM(aVr[1]),45),oGt[1]:cText(aVr[1]),.T.) ;\n\t COLOR CLR_OBLUE FONT oFnt RIGHT\n @ 83,228 GET oGt[2] VAR aVr[2] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t VALID(aVr[2] := PADL(ALLTRIM(aVr[2]),45),oGt[2]:cText(aVr[2]),.T.) ;\n\t \tCOLOR CLR_OBLUE FONT oFnt RIGHT\n @ 106,228 GET oGt[3] VAR aVr[3] OF oDlg PIXEL SIZE 350,20 PICTURE \"@S45\" ;\n\t VALID(aVr[3] := PADL(ALLTRIM(aVr[3]),45),oGt[3]:cText(aVr[3]),.T.) ;\n\t\tCOLOR CLR_OBLUE FONT oFnt RIGHT\n ENDIF\nCtl3dLook(oGt[1]:hWnd)\nCtl3dLook(oGt[2]:hWnd)\nCtl3dLook(oGt[3]:hWnd)\n SysRefresh()\nRETURN NIL\n*\n\nComo ves, a cada vez que pulso sobre el boton un boton de justificacion destruyo los GET's y los vuelvo a crear. Es la única solución que encontré, y me va de maravilla.\n\nEspero que te sirva la ayuda.\n\nUn saludo.", "time": "17:48", "topic": "Alineameniento de Controles...", "username": "manuramos" } ]
Alineameniento de Controles...
[ { "date": "2006-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Si usas Pelles C o Visual C, lo puedes hacer directo en el recurso y es mas rapido y seguro...", "time": "18:36", "topic": "Alineameniento de Controles...", "username": "joseluisysturiz" } ]
Alineameniento de Controles...
[ { "date": "2006-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Manuramos, no se me había ocurrido de esa manera, voy hacer la prueba de esa manera.\n\nSaludos.\n\nCarlos Sincuir", "time": "11:03", "topic": "Alineameniento de Controles...", "username": "Carlos Sincuir" } ]
Alineameniento de Controles...
[ { "date": "2008-05-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos a todos:\r\n\r\nTengo una duda sobre la alineación de los Aceleradores en los menus, ya que he buscado en el foro como vizualizarlos, pero se ven desalineados, me pregunto si habrá alguna forma de hacer que todos los aceleradores se vean en columna como lo hacen las otras aplicaciones:\r\n\r\n[url=http&#58;//img170&#46;imageshack&#46;us/my&#46;php?image=menudd8&#46;jpg:vyqixctg][img:vyqixctg]http&#58;//img170&#46;imageshack&#46;us/img170/2331/menudd8&#46;th&#46;jpg[/img:vyqixctg][/url:vyqixctg]\r\n\r\nHe intentado esto:\r\n\r\n[code:vyqixctg]#Define TAB Chr&#40;9&#41; // <TABS> \n\n MENUITEM \"Productos \" ; \n + TAB + \"Alt+P\" ; \n RESOURCE \"Prod\" ; \n ACCELERATOR ACC_ALT, ASC&#40; \"P\" &#41; ; \n ACTION&#40; Productos&#40;&#41; &#41; \n\n SEPARATOR \n MENUITEM \"Clientes \" ; \n + TAB + \"Shift+C\" ; \n ACCELERATOR ACC_SHIFT, ASC&#40; \"C\" &#41; ; \n RESOURCE \"Clien\" ; \n ACTION&#40; Clientes&#40;&#41; &#41;[/code:vyqixctg] \n\ny tambien he probado asignandole espacios de tal manera que la longitud de los textos sean iguales pero tampoco funciona:\n\n [code:vyqixctg] \n MENUITEM \"Productos ALT+P\" ; \n RESOURCE \"Prod\" ; \n ACCELERATOR ACC_ALT, ASC&#40; \"P\" &#41; ; \n ACTION&#40; Productos&#40;&#41; &#41; \n\n SEPARATOR \n MENUITEM \"Clientes Shift+C\" ; \n ACCELERATOR ACC_SHIFT, ASC&#40; \"C\" &#41; ; \n RESOURCE \"Clien\" ; \n ACTION&#40; Clientes&#40;&#41; &#41;[/code:vyqixctg]\r\n\r\nOja ay alguien me pueda hechar una manita con esto. gracias anticipadas..", "time": "18:44", "topic": "Alinear Aceleradores en el Menu", "username": "cuatecatl82" } ]
Alinear Aceleradores en el Menu
[ { "date": "2008-05-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba así \r\n\r\nMenuItem aoSub[ 14 ] Prompt '&Cambio de Empresa' + Chr( 9 ) + 'Ctrl-F2' Action Seleccionalo() \r\n\r\nSaludos", "time": "01:02", "topic": "Alinear Aceleradores en el Menu", "username": "horacio" } ]
Alinear Aceleradores en el Menu
[ { "date": "2008-05-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Horacio:\r\n\r\nGracias por responder, volví a retomar el mismo procedimiento, solo que agregue un pequeño truco, que la verdad no pense que funcionara pero lo logre, concistio en agregar espacios en blanco, con lo cual quedo solucionado.\r\n\r\nLes dejo como quedo, por si alguien mas le sirve:\r\n\r\n[code:1bofc2pb]MENUITEM \"&Archivo\" \n MENU\n MENUITEM '&Almacénes' +SPACE&#40;20&#41;+CHR&#40;9&#41;+'F12' ACCELERATOR 0, VK_F12 \n SEPARATOR\n MENUITEM 'Pr&oveedores' \n MENUITEM '&Familias' \n MENUITEM '&Productos' +SPACE&#40;15&#41;+CHR&#40;9&#41;+'Ctrl+P' ACCELERATOR ACC_CONTROL, ASC&#40;\"P\"&#41; \n SEPARATOR\n MENUITEM '&Inventario Inicial' \n SEPARATOR\n MENUITEM '&Clientes' +SPACE&#40;18&#41;+CHR&#40;9&#41;+'Shift+C' ACCELERATOR ACC_SHIFT, ASC&#40;\"C\"&#41; \n SEPARATOR\n MENUITEM '&Usuarios' +SPACE&#40;18&#41;+CHR&#40;9&#41;+'Ctrl+U' ACCELERATOR ACC_CONTROL, ASC&#40;\"U\"&#41; \n SEPARATOR\n MENUITEM '&Salir' +SPACE&#40;25&#41;+CHR&#40;9&#41;+'Alt+F4' ACCELERATOR ACC_ALT, VK_F4 \n ENDMENU \nENDMENU[/code:1bofc2pb]\r\n\r\nEs muy raro este procedimiento, pero funciono... <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \r\n\r\nSaludos..", "time": "23:27", "topic": "Alinear Aceleradores en el Menu", "username": "cuatecatl82" } ]
Alinear Aceleradores en el Menu
[ { "date": "2009-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos\n\n Como puedo alinear el texto un say verticalmente desde recursos ?\n\n un saludo", "time": "18:32", "topic": "Alinear Say", "username": "Frafive" } ]
Alinear Say
[ { "date": "2009-07-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Ola.\nVeja se é isto que vc. tá querendo..\n\n[code=fw:2o21n74n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Font</span> Ofont3 <span style=\"color: #0000ff;\">Name</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-25</span> NESCAPEMENT <span style=\"color: #000000;\">90</span>*<span style=\"color: #000000;\">10</span><br /><br /><span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">Say</span> oSay <span style=\"color: #0000ff;\">Var</span> cTexto <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4035</span> <span style=\"color: #0000ff;\">of</span> oPag:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">Font</span> oFont3<br /><br /> </div>[/code:2o21n74n]\n\nAbraços..", "time": "20:48", "topic": "Alinear Say", "username": "ICO" } ]
Alinear Say
[ { "date": "2008-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Foreros:\n\nCómo puedo alienar las celdas en una hoja de Excel usando TOle ?\n\nSaludos", "time": "02:53", "topic": "Alinear celdas en Excel", "username": "Armando" } ]
Alinear celdas en Excel
[ { "date": "2008-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando\n\n¿Para que lado de la celda?\nPuedes probar a hacer esto\n\n oHoja:Cells(1, 3 ):NumberFormat := \"@\"\n oHoja:Cells(3, 3 ):Value := HSBC->REFERENCIA\n\nEl contenido del campo REFERENCIA es de tipo numérico y en lo hoja excel me lo pega a la izquierda como cualquier texto\n\n\nFernando Leal\nMéxico, DF", "time": "03:01", "topic": "Alinear celdas en Excel", "username": "fleal" } ]
Alinear celdas en Excel
[ { "date": "2008-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Armando>\n[quote=\"Armando\":3gv7lx7y]Cómo puedo alienar las celdas en una hoja de Excel usando TOle ?[/quote:3gv7lx7y]\nPara una celda:\noSheet:Cells( 1, 1 ):Set( \"HorizontalAlignment\", nAlig )\n\nPara un rango de celdas:\noSheet:Range( A1:A200 ):Set( \"HorizontalAlignment\", nAlig )\n\nnAlig podría ser:\nDerecha: -4152\nIzquierda: -4131\nCentrado: -4108\nJustificado: -4130\nCombinar y Centrar: 7\n\nSaludos.\n\nManuel Mercado", "time": "07:20", "topic": "Alinear celdas en Excel", "username": "mmercado" } ]
Alinear celdas en Excel
[ { "date": "2008-04-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Manuel y Fer:\n\nMuchas gracias por las respuestas, todo bajo control !.\n\nUn abrazo", "time": "14:23", "topic": "Alinear celdas en Excel", "username": "Armando" } ]
Alinear celdas en Excel
[ { "date": "2006-06-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos del foro:\n\nEn la clase TReport es posible alinear los títulos de las columnas ?, no los títulos o encabezados del reporte. me explico:\n\nEn el siguiente trozo de código:\n\nCOLUMN oCol3 TITLE \"Cliente\",\"Modelo\" DATA \"\" SIZE 8 RIGHT\n\nEs posible alinear el título \"MODELO\" a la izquierda dejando el título \"CLIENTE\" alineado a la derecha ???\n\nSaludos y gracias por sus respuestas, Armando", "time": "13:34", "topic": "Alinear títulos de columnas", "username": "Armando" } ]
Alinear títulos de columnas
[ { "date": "2015-01-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos.\n\nCreo un objeto \n\n oREPORTE:=TOleAuto():New(\"Excel.Application\")\n oREPORTE:WorkBooks:Add()\n oBook:=oREPORTE:Get(\"ActiveWorkBook\")\n oSheet:=oREPORTE:Get(\"ActiveSheet\" )\n\nvoy formando mi cadena de texto para en su momento con el portapapeles pegar \n\n oClip:=TClipBoard():New()\n oClip:Clear()\n oClip:SetText(cTxtXls)\n oRange:=oSheet:Range(cRangoXls)\n oRange:Select()\n oSheet:Paste()\n oClip:End()\n\ncon \n\n oRange:Set(\"HorizontalAlignment\",xlHAlignCenterAcrossSelection) // valor de 7\n\n le indico al rango que lo centre\n\n\nMI DUDA:\n\n1. que valor debo darle al rango para que la alineación sea a la izquierda y a la derecha?\n2. como doy formato de fecha y de numero al rango?\n\nEsto lo tome de la clase TSbrowse 9.0\n\nGracias.", "time": "19:52", "topic": "Alinear y formato en ToleAuto", "username": "noe aburto" } ]
Alinear y formato en ToleAuto
[ { "date": "2015-01-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Noé,\n\nNo se si es seguro lo que buscas, pero encontré esto:\n\n[quote:11cfog5b]xlHAlignCenter -4108 \nxlHAlignDistributed -4117 \nxlHAlignJustify -4130 \nxlHAlignLeft -4131 \nxlHAlignRight -4152 \nxlHAlignCenterAcrossSelection 7 \nxlHAlignFill 5 \nxlHAlignGeneral 1 [/quote:11cfog5b]\n\n[url:11cfog5b]http&#58;//www&#46;office-archive&#46;com/2-excel/b5f82d9d0f21ceb4&#46;htm[/url:11cfog5b]", "time": "10:01", "topic": "Alinear y formato en ToleAuto", "username": "Antonio Linares" } ]
Alinear y formato en ToleAuto
[ { "date": "2015-01-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias, lo voy a probar.", "time": "20:49", "topic": "Alinear y formato en ToleAuto", "username": "noe aburto" } ]
Alinear y formato en ToleAuto
[ { "date": "2013-06-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Gostaria de colocar os GET em uma posição e os SAY assumindo da direita para esquerda\n\nalinhamento pelo Centro .. que o GET fique alinhado e o say se mova para esquerda se ajustando\n\nAri\n\n[code=fw:2fxwmt51]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/* Retirei PICTURE     do SAY causa conflito com GET<br />           RIGHT       do SAY mudei para padrao .T. Alinhamento<br />           TRANSPARENT do SAY mudei para .T.<br />   */</span><br />#xcommand @ <nRow>, <nCol> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #000000;\">&#91;</span> <oSay> <label: <span style=\"color: #000000;\">PROMPT</span>> <span style=\"color: #000000;\">&#93;</span> <cText> ; <span style=\"color: #B900B9;\">// SAY</span><br />             <span style=\"color: #0000ff;\">GET</span> <span style=\"color: #000000;\">&#91;</span> <oGet> <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #000000;\">&#93;</span> <uVar>                            ; <span style=\"color: #B900B9;\">// GET</span><br />             <span style=\"color: #000000;\">&#91;</span> <pict: <span style=\"color: #000000;\">PICT</span>, PICTURE> <cPict> <span style=\"color: #000000;\">&#93;</span>                    ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <dlg: <span style=\"color: #0000ff;\">OF</span>,<span style=\"color: #0000ff;\">WINDOW</span>,<span style=\"color: #0000ff;\">DIALOG</span> > <oWnd> <span style=\"color: #000000;\">&#93;</span>                  ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">FONT</span> <oFont> <span style=\"color: #000000;\">&#93;</span>                                     ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lCenter: <span style=\"color: #0000ff;\">CENTERED</span>, <span style=\"color: #0000ff;\">CENTER</span> > <span style=\"color: #000000;\">&#93;</span>                     ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lRight:  <span style=\"color: #0000ff;\">RIGHT</span> >    <span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lBorder: <span style=\"color: #000000;\">BORDER</span> >   <span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lPixel: <span style=\"color: #0000ff;\">PIXEL</span>, PIXELS > <span style=\"color: #000000;\">&#93;</span>                         ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <color: <span style=\"color: #0000ff;\">COLOR</span>,COLORS > <nClrText> <span style=\"color: #000000;\">&#91;</span>,<nClrBack> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">SIZE</span> <nWidth>, <nHeight> <span style=\"color: #000000;\">&#93;</span>                         ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <design: <span style=\"color: #000000;\">DESIGN</span> >  <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <update: <span style=\"color: #0000ff;\">UPDATE</span> >  <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lShaded: <span style=\"color: #000000;\">SHADED</span>, SHADOW > <span style=\"color: #000000;\">&#93;</span>                       ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lBox:    BOX   >  <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lRaised: <span style=\"color: #000000;\">RAISED</span> > <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <adj: <span style=\"color: #000000;\">ADJUST</span>> <span style=\"color: #000000;\">&#93;</span>                                    ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lTrans: <span style=\"color: #000000;\">TRANSPARENT</span>><span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">VALID</span> <ValidFunc> <span style=\"color: #000000;\">&#93;</span>                                ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">CURSOR</span> <oCursor> <span style=\"color: #000000;\">&#93;</span>                                 ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">MESSAGE</span> <cMsg> <span style=\"color: #000000;\">&#93;</span>                                   ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">WHEN</span> <uWhen> <span style=\"color: #000000;\">&#93;</span>                                     ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <uChange> <span style=\"color: #000000;\">&#93;</span>                              ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <readonly: <span style=\"color: #000000;\">READONLY</span>, NO MODIFY> <span style=\"color: #000000;\">&#93;</span>                  ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <help:<span style=\"color: #000000;\">HELPID</span>, <span style=\"color: #0000ff;\">HELP</span> ID> <nHelpId> <span style=\"color: #000000;\">&#93;</span>                 ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <spin: <span style=\"color: #000000;\">SPINNER</span>> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">UP</span> <SpnUp><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">DOWN</span> <SpnDn><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">MIN</span> <Min><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">MAX</span> <Max><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> CUEBANNER <cCueText> <span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// get</span><br />      => ;<br />          <span style=\"color: #000000;\">&#91;</span> <oGet> := <span style=\"color: #000000;\">&#93;</span> TGet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <nRow>, <nCol>, bSETGET<span style=\"color: #000000;\">&#40;</span><uVar><span style=\"color: #000000;\">&#41;</span>,;          <span style=\"color: #B900B9;\">// GET</span><br />             <span style=\"color: #000000;\">&#91;</span><oWnd><span style=\"color: #000000;\">&#93;</span>, <nWidth>, <nHeight>, <cPict>, <<span style=\"color: #000000;\">&#123;</span>ValidFunc<span style=\"color: #000000;\">&#125;</span>>,;<br />             <nClrText>, <nClrBack>, <oFont>, <.design.>,;<br />             <oCursor>, .T., <cMsg>, <.<span style=\"color: #0000ff;\">update</span>.>, <<span style=\"color: #000000;\">&#123;</span>uWhen<span style=\"color: #000000;\">&#125;</span>>,;<br />             <.lCenter.>, <.lRight.>,;<br />             <span style=\"color: #000000;\">&#91;</span>\\<span style=\"color: #000000;\">&#123;</span>|nKey, nFlags, Self| <uChange>\\<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#93;</span>, <.readonly.>,;<br />             .f., .f., <nHelpId>,;<br />             <.spin.>, <<span style=\"color: #000000;\">&#123;</span>SpnUp<span style=\"color: #000000;\">&#125;</span>>, <<span style=\"color: #000000;\">&#123;</span>SpnDn<span style=\"color: #000000;\">&#125;</span>>, <<span style=\"color: #000000;\">&#123;</span><span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#125;</span>>, <<span style=\"color: #000000;\">&#123;</span><span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#125;</span>>,,, <<span style=\"color: #ff0000;\">\"uVar\"</span>>, <span style=\"color: #000000;\">&#91;</span><cCueText><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />          <span style=\"color: #000000;\">&#91;</span> ;<oSay> := <span style=\"color: #000000;\">&#93;</span> TSay<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <nRow>, <nCol>, <<span style=\"color: #000000;\">&#123;</span>cText<span style=\"color: #000000;\">&#125;</span>>,;                             <span style=\"color: #B900B9;\">// SAY</span><br />             <span style=\"color: #000000;\">&#91;</span><oWnd><span style=\"color: #000000;\">&#93;</span>,, <oFont>, <.lCenter.>, .T., <.lBorder.>,;<br />             .T., <nClrText>, <nClrBack>, <nWidth>, <nHeight>,;<br />             <.design.>, <.<span style=\"color: #0000ff;\">update</span>.>, <.lShaded.>, <.lBox.>, <.lRaised.>, <.adj.>, .T. <span style=\"color: #000000;\">&#41;</span> ;<br />  <br /><br /><span style=\"color: #00C800;\">function</span> testeGET<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, nVal := <span style=\"color: #000000;\">0.00</span><br />   <span style=\"color: #00C800;\">local</span> cNome := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> cEnd  := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> nRow  := <span style=\"color: #000000;\">5</span><br />   <span style=\"color: #00C800;\">local</span> nCol  := <span style=\"color: #000000;\">3</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Teste comando SAY e GET\"</span>  <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>  <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">480</span>,<span style=\"color: #000000;\">480</span> <span style=\"color: #0000ff;\">PIXEL</span><br />  <br />   @ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Valor:\"</span>    <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> nVal  <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@E 999,999.99\"</span> <span style=\"color: #0000ff;\">UPDATE</span> <br />   nRow+=<span style=\"color: #000000;\">14</span><br />   @ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Nome:\"</span>     <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> cNome <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span>           <span style=\"color: #0000ff;\">UPDATE</span> <br />   nRow+=<span style=\"color: #000000;\">14</span><br />   @ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Endereço:\"</span> <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> cEnd  <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span>           <span style=\"color: #0000ff;\">UPDATE</span> <br />   <br />   <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 /> </div>[/code:2fxwmt51]", "time": "18:35", "topic": "Alinhamento pelo GET", "username": "Ari" } ]
Alinhamento pelo GET
[ { "date": "2013-06-05", "forum": "FiveWin para Harbour/xHarbour", "text": "este é o exemplo \n\n\n[code=fw:1j03jcg3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/* Retirei PICTURE     do SAY causa conflito com GET<br />           RIGHT       do SAY mudei para padrao .T. Alinhamento<br />           TRANSPARENT do SAY mudei para .T.<br />   */</span><br />#xcommand @ <nRow>, <nCol> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #000000;\">&#91;</span> <oSay> <label: <span style=\"color: #000000;\">PROMPT</span>> <span style=\"color: #000000;\">&#93;</span> <cText> ; <span style=\"color: #B900B9;\">// SAY</span><br />             <span style=\"color: #0000ff;\">GET</span> <span style=\"color: #000000;\">&#91;</span> <oGet> <span style=\"color: #0000ff;\">VAR</span> <span style=\"color: #000000;\">&#93;</span> <uVar>                            ; <span style=\"color: #B900B9;\">// GET</span><br />             <span style=\"color: #000000;\">&#91;</span> <pict: <span style=\"color: #000000;\">PICT</span>, PICTURE> <cPict> <span style=\"color: #000000;\">&#93;</span>                    ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <dlg: <span style=\"color: #0000ff;\">OF</span>,<span style=\"color: #0000ff;\">WINDOW</span>,<span style=\"color: #0000ff;\">DIALOG</span> > <oWnd> <span style=\"color: #000000;\">&#93;</span>                  ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">FONT</span> <oFont> <span style=\"color: #000000;\">&#93;</span>                                     ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lCenter: <span style=\"color: #0000ff;\">CENTERED</span>, <span style=\"color: #0000ff;\">CENTER</span> > <span style=\"color: #000000;\">&#93;</span>                     ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lRight:  <span style=\"color: #0000ff;\">RIGHT</span> >    <span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lBorder: <span style=\"color: #000000;\">BORDER</span> >   <span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lPixel: <span style=\"color: #0000ff;\">PIXEL</span>, PIXELS > <span style=\"color: #000000;\">&#93;</span>                         ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <color: <span style=\"color: #0000ff;\">COLOR</span>,COLORS > <nClrText> <span style=\"color: #000000;\">&#91;</span>,<nClrBack> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">SIZE</span> <nWidth>, <nHeight> <span style=\"color: #000000;\">&#93;</span>                         ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <design: <span style=\"color: #000000;\">DESIGN</span> >  <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <update: <span style=\"color: #0000ff;\">UPDATE</span> >  <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// get e say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lShaded: <span style=\"color: #000000;\">SHADED</span>, SHADOW > <span style=\"color: #000000;\">&#93;</span>                       ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lBox:    BOX   >  <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lRaised: <span style=\"color: #000000;\">RAISED</span> > <span style=\"color: #000000;\">&#93;</span>                               ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <adj: <span style=\"color: #000000;\">ADJUST</span>> <span style=\"color: #000000;\">&#93;</span>                                    ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <lTrans: <span style=\"color: #000000;\">TRANSPARENT</span>><span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// say</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">VALID</span> <ValidFunc> <span style=\"color: #000000;\">&#93;</span>                                ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">CURSOR</span> <oCursor> <span style=\"color: #000000;\">&#93;</span>                                 ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">MESSAGE</span> <cMsg> <span style=\"color: #000000;\">&#93;</span>                                   ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">WHEN</span> <uWhen> <span style=\"color: #000000;\">&#93;</span>                                     ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <uChange> <span style=\"color: #000000;\">&#93;</span>                              ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <readonly: <span style=\"color: #000000;\">READONLY</span>, NO MODIFY> <span style=\"color: #000000;\">&#93;</span>                  ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <help:<span style=\"color: #000000;\">HELPID</span>, <span style=\"color: #0000ff;\">HELP</span> ID> <nHelpId> <span style=\"color: #000000;\">&#93;</span>                 ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> <spin: <span style=\"color: #000000;\">SPINNER</span>> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">UP</span> <SpnUp><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">DOWN</span> <SpnDn><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">MIN</span> <Min><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#91;</span><span style=\"color: #0000ff;\">MAX</span> <Max><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#93;</span> ; <span style=\"color: #B900B9;\">// get</span><br />             <span style=\"color: #000000;\">&#91;</span> CUEBANNER <cCueText> <span style=\"color: #000000;\">&#93;</span>                             ; <span style=\"color: #B900B9;\">// get</span><br />      => ;<br />        <span style=\"color: #000000;\">&#91;</span> <oSay> := <span style=\"color: #000000;\">&#93;</span> TSay<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <nRow>, <nCol>, <<span style=\"color: #000000;\">&#123;</span>cText<span style=\"color: #000000;\">&#125;</span>>,;                             <span style=\"color: #B900B9;\">// SAY</span><br />             <span style=\"color: #000000;\">&#91;</span><oWnd><span style=\"color: #000000;\">&#93;</span>,, <oFont>, <.lCenter.>, <.lRight.>, <.lBorder.>,;<br />             .T., <nClrText>, <nClrBack>, <nWidth>, <nHeight>,;<br />             <.design.>, <.<span style=\"color: #0000ff;\">update</span>.>, <.lShaded.>, <.lBox.>, <.lRaised.>, <.adj.>, .T. <span style=\"color: #000000;\">&#41;</span> ;<br />          <span style=\"color: #000000;\">&#91;</span> ;<oGet> := <span style=\"color: #000000;\">&#93;</span> TGet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <nRow>, <oSay>:<span style=\"color: #000000;\">nRight</span><span style=\"color: #000000;\">+3</span>, bSETGET<span style=\"color: #000000;\">&#40;</span><uVar><span style=\"color: #000000;\">&#41;</span>,;          <span style=\"color: #B900B9;\">// GET</span><br />             <span style=\"color: #000000;\">&#91;</span><oWnd><span style=\"color: #000000;\">&#93;</span>, <nWidth>, <nHeight>, <cPict>, <<span style=\"color: #000000;\">&#123;</span>ValidFunc<span style=\"color: #000000;\">&#125;</span>>,;<br />             <nClrText>, <nClrBack>, <oFont>, <.design.>,;<br />             <oCursor>, .T., <cMsg>, <.<span style=\"color: #0000ff;\">update</span>.>, <<span style=\"color: #000000;\">&#123;</span>uWhen<span style=\"color: #000000;\">&#125;</span>>,;<br />             <.lCenter.>, <.lRight.>,;<br />             <span style=\"color: #000000;\">&#91;</span>\\<span style=\"color: #000000;\">&#123;</span>|nKey, nFlags, Self| <uChange>\\<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#93;</span>, <.readonly.>,;<br />             .f., .f., <nHelpId>,;<br />             <.spin.>, <<span style=\"color: #000000;\">&#123;</span>SpnUp<span style=\"color: #000000;\">&#125;</span>>, <<span style=\"color: #000000;\">&#123;</span>SpnDn<span style=\"color: #000000;\">&#125;</span>>, <<span style=\"color: #000000;\">&#123;</span><span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#125;</span>>, <<span style=\"color: #000000;\">&#123;</span><span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#125;</span>>,,, <<span style=\"color: #ff0000;\">\"uVar\"</span>>, <span style=\"color: #000000;\">&#91;</span><cCueText><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <br />        <br />  <br /><br /><span style=\"color: #00C800;\">function</span> testeGET<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oDlg, oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, nVal := <span style=\"color: #000000;\">0.00</span><br />   <span style=\"color: #00C800;\">local</span> cNome := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> cEnd  := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> nRow  := <span style=\"color: #000000;\">5</span><br />   <span style=\"color: #00C800;\">local</span> nCol  := <span style=\"color: #000000;\">3</span><br />   <br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Teste comando SAY e GET\"</span>  <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>  <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">480</span>,<span style=\"color: #000000;\">480</span> <span style=\"color: #0000ff;\">PIXEL</span><br />  <br />   @ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Valor:\"</span>    <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> nVal  <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@E 999,999.99\"</span> <span style=\"color: #0000ff;\">UPDATE</span> <br />   nRow+=<span style=\"color: #000000;\">14</span><br />   @ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Nome:\"</span>     <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> cNome <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span>           <span style=\"color: #0000ff;\">UPDATE</span> <br />   nRow+=<span style=\"color: #000000;\">14</span><br />   @ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Endereço:\"</span> <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> cEnd  <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span>           <span style=\"color: #0000ff;\">UPDATE</span> <br />   <br />   <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>  </div>[/code:1j03jcg3]", "time": "18:40", "topic": "Alinhamento pelo GET", "username": "Ari" } ]
Alinhamento pelo GET
[ { "date": "2013-06-05", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:zrn2bd3k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> testeGET<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, nVal := <span style=\"color: #000000;\">0.00</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cNome := space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cEnd &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: #00C800;\">local</span> nRow &nbsp;:= <span style=\"color: #000000;\">50</span> &nbsp;<span style=\"color: #B900B9;\">//5 &nbsp;// usando PIXEL</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nCol &nbsp;:= &nbsp;<span style=\"color: #000000;\">5</span><br />&nbsp; &nbsp;<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;\">\"Teste comando SAY e GET com PIXEL\"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> &nbsp;<span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">480</span>,<span style=\"color: #000000;\">480</span> <span style=\"color: #0000ff;\">PIXEL</span> COLORS CLR_BLACK, CLR_WHITE<br />&nbsp; <br />&nbsp; &nbsp;@ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Valor:\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">RIGHT</span> TRANSPARENT <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Incrementa a linha e a coluna para ajustar</span><br />&nbsp; &nbsp;nRow := nRow + .<span style=\"color: #000000;\">25</span><br />&nbsp; &nbsp;nCol := nCol + <span style=\"color: #000000;\">39</span><br /><br />&nbsp; &nbsp;@ nRow, nCol <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> nVal &nbsp;<span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@E 999,999.99\"</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Incrementa/decrementa a linha e a coluna para ajustar</span><br />&nbsp; &nbsp;nRow := nRow + <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp;nCol := nCol - <span style=\"color: #000000;\">44</span><br /><br />&nbsp; &nbsp;@ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Nome:\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">RIGHT</span> TRANSPARENT <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Incrementa a coluna para ajustar</span><br />&nbsp; &nbsp;nCol := nCol + <span style=\"color: #000000;\">44</span><br /><br />&nbsp; &nbsp;@ nRow, nCol <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> cNome &nbsp;<span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">PIXEL</span> &nbsp;<span style=\"color: #B900B9;\">// esquerda(LEFT)</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Incrementa/decrementa a linha e a coluna para ajustar</span><br />&nbsp; &nbsp;nRow := nRow + <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp;nCol := nCol - <span style=\"color: #000000;\">67</span><br /><br />&nbsp; &nbsp;@ nRow, nCol <span style=\"color: #0000ff;\">SAY</span> oSay<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Endereço:\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">RIGHT</span> TRANSPARENT <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Incrementa a coluna para ajustar</span><br />&nbsp; &nbsp;nCol := nCol + <span style=\"color: #000000;\">68</span><br /><br />&nbsp; &nbsp;@ nRow, nCol <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> cEnd &nbsp;<span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">PIXEL</span> &nbsp;<span style=\"color: #B900B9;\">// esquerda(LEFT)</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// buttons(botoes) Idem, calcule as coordenadas... abs.</span><br /><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:zrn2bd3k]\n\u001a", "time": "20:27", "topic": "Alinhamento pelo GET", "username": "karinha" } ]
Alinhamento pelo GET
[ { "date": "2013-06-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Obrigado !\n\nAri", "time": "20:56", "topic": "Alinhamento pelo GET", "username": "Ari" } ]
Alinhamento pelo GET
[ { "date": "2012-03-29", "forum": "Off Topic / Otros temas", "text": "[url:2u1j641q]http&#58;//collaboration&#46;cmc&#46;ec&#46;gc&#46;ca/science/rpn/biblio/ddj/Website/start&#46;htm[/url:2u1j641q]", "time": "17:24", "topic": "All DrDobbs Journal, C/C++ user, magazines since 1988 !!!", "username": "Antonio Linares" } ]
All DrDobbs Journal, C/C++ user, magazines since 1988 !!!
[ { "date": "2008-02-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello from Germany,\n\nDuring my work on the new DB-Tool,\ni needed var-informations in the Office2007-Bar\nfrom a Outlook-Child after changes.\nHere are all Values you need :\n\nRECEIVE Values from a Outlook2003-Child\nin a Office2007-ButtonBar\n---------------------------------------------------------\nGET\t = oGet:Value(), oGet:Refresh()\nSAY\t = oSay:Varget(), oSay:Refresh() \nRADIO\t = oRadio:nOption, oRadio:Refresh()\nCHECKBOX = oCheck:Varget(), oCheck::Refresh()\n\nSEND new Values from Office2007-ButtonBar\nto a Outlook2003-Child\n-----------------------------------------------------\nRADIO\t = aScope:nOption(2), aScope:Refresh()\nfor .T.\nCHECK = oCheck:Check(), oCheck:Refresh()\nfor .F.\nCHECK = oCheck:UnCheck(), oCheck:Refresh()\nGET = oGet:VarPut(\"NewValue\"), oGet:Refresh()\nSAY = oSay:VarPut(\"NewValue\"), oSay:Refresh() \n\nUwe", "time": "21:37", "topic": "All Var-Def's switching Outl2003Child<>Office2007Bar", "username": "ukoenig" } ]
All Var-Def's switching Outl2003Child<>Office2007Bar
[ { "date": "2008-02-02", "forum": "FiveWin for Harbour/xHarbour", "text": "oGet:value() just calls oGet:VarGet() so you can use either one.\n\nMETHOD Value() INLINE ::VarGet()\n\nVarGet() may be easier to remember since SAYs, GETs, Comoboxes, and RadioMenus all have a VarGet() method. This is polymorphism (same names in different objects) which is a very important feature of OOP. This allows you to do thing like:\n\nuValue:= oDlg:aControls[i]:varGet()\n\nWhere aControls is an array of control objects.\n\nRegards,\nJames", "time": "22:00", "topic": "All Var-Def's switching Outl2003Child<>Office2007Bar", "username": "James Bott" } ]
All Var-Def's switching Outl2003Child<>Office2007Bar
[ { "date": "2014-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello FiveWinners. \n\nI have an application developed in xHarbour 1.23 and FW13.08, SQLRDD, which prints about 7000 pages in PDF using Image2PDF; Windows Vista and W7 on the same application runs without additional memory consumption, however, run the same application in W8.1 and consume all memory resources pc memory which is 8MB. \n\nIt is very difficult to show the code ... \n\nBut if anyone has advice or experience of how to release resources and prevent the application in W8.1, freezing due to lack of resources, we'll be very grateful. \n\nregards", "time": "04:48", "topic": "All resources consumed in W8.1", "username": "devtuxtla" } ]
All resources consumed in W8.1
[ { "date": "2014-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "I assume you meant 8GB not 8MB.\n\nI don't know the answer to your question, but why would anyone want a 7000 page document? Does somebody actually read it?\n\nI have always questioned clients that wanted what I call a \"data dump.\" When questioned they always can narrow it down to something like they wanted to know the 25 items that are selling the best (or worst), etc.\n\nAlso, users can always look up what they need right in the program rather than printing anything. Soon after they print something they often loose track of it anyway.\n\nStill it would be nice to know why the memory is not being released.\n\nRegards,\nJames", "time": "15:28", "topic": "All resources consumed in W8.1", "username": "James Bott" } ]
All resources consumed in W8.1
[ { "date": "2014-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Gustavo,\n\nCould you provide a small and self contained example to run it here ?", "time": "17:15", "topic": "All resources consumed in W8.1", "username": "Antonio Linares" } ]
All resources consumed in W8.1
[ { "date": "2014-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio\nHi James\n\nThanks for responding. \n\nThe problem of resource consumption in W8.1 was due to a MySQL table to open and not closed, ie to be opened 7500 times, interestingly this same process in W. Vista, NO has the same problem. \n\nCase closed. \n\nI must confess that once corrected this bug, the application performs very well and very fast in W8.1 \n\nthanks for the support. \n\nregards", "time": "01:41", "topic": "All resources consumed in W8.1", "username": "devtuxtla" } ]
All resources consumed in W8.1
[ { "date": "2014-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks for reporting your solution.\n\nJames", "time": "02:29", "topic": "All resources consumed in W8.1", "username": "James Bott" } ]
All resources consumed in W8.1
[ { "date": "2014-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Very good! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThanks for sharing it", "time": "04:29", "topic": "All resources consumed in W8.1", "username": "Antonio Linares" } ]
All resources consumed in W8.1
[ { "date": "2010-03-24", "forum": "Utilities / Utilidades", "text": "[url:3e3nd82i]http&#58;//www&#46;freesound&#46;org[/url:3e3nd82i]", "time": "16:56", "topic": "All sort of sounds / Todo tipo de sonidos", "username": "Antonio Linares" } ]
All sort of sounds / Todo tipo de sonidos
[ { "date": "2006-12-08", "forum": "All products support", "text": "Oder arbeitet noch einer mit FW", "time": "15:24", "topic": "Alle gestorben ??", "username": "UD previous posts" } ]
Alle gestorben ??
[ { "date": "2006-12-28", "forum": "All products support", "text": "ja ich, zumindest mit FWH und xHarbour.\n\naber ansonsten ist hier ziemlich wenig los in der Gruppe <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nGruß und Guten Rutsch\nStefan", "time": "19:37", "topic": "Alle gestorben ??", "username": "StefanHaupt" } ]
Alle gestorben ??
[ { "date": "2017-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nIs there a way to be able to manually over-ride a Combobox to allow a Write in Get ? .. I have a login screen and I am populating a combobox array with Employee UserId's .. \n\nI have a back-door user named 'Admin' and I do not want to populate the UserId array with that login .. and would like to be able to over-ride the combobox at runtime to accept a write in get ... I can not think of a way to do that ... \n\nAny Ideas ?\n\nThanks\nRick Lipkin\n\n[img:3ci11m0i]http&#58;//i65&#46;tinypic&#46;com/245ge89&#46;jpg[/img:3ci11m0i]", "time": "20:50", "topic": "Allow a write in Get in a Combobox", "username": "Rick Lipkin" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Give style CBS_DROPDOWN to the combobox.\n\nEMG", "time": "21:24", "topic": "Allow a write in Get in a Combobox", "username": "Enrico Maria Giordano" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico\n\nWorked Great ... Many Thanks!\n\nRick Lipkin", "time": "16:50", "topic": "Allow a write in Get in a Combobox", "username": "Rick Lipkin" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Algun sample pero de busqueda secuencial pero con DBCOMBO.? asi como en este combobox que cuando vaya escribiendo, ubique la coincidencia, saludos...gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nSome sample but sequential search but with DBCOMBO? as in this combobox that when you write, locate the match, greetings ... thanks ... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "20:24", "topic": "Allow a write in Get in a Combobox", "username": "joseluisysturiz" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Jose,\n\nYou must set oDB:incSearch := .t.\n\nThe default is .f.", "time": "23:33", "topic": "Allow a write in Get in a Combobox", "username": "James Bott" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":10cyshb4]Jose,\n\nYou must set oDB:incSearch := .t.\n\nThe default is .f.[/quote:10cyshb4]\n\nJames, gracias por tu respuesta, pero parece esa data no pertenece a DBCOMBO, no confundir con COMBOBOX, la use como me dijistes y obtengo el siguiente error...alguna idea.? saludos...gracias... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nJames, thanks for your reply, but it seems that data does not belong to DBCOMBO, do not confuse with COMBOBOX, use it as you told me and I get the following error ... any ideas.? greetings thank you... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\n[code=fw:10cyshb4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> DBCOMBO aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4020</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ITEMS</span> aProvee1 ;<br />&nbsp; &nbsp; &nbsp; LIST &nbsp;aProvee2<br />&nbsp; &nbsp;aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">incSearch</span> := .t.<br /><br /><span style=\"color: #B900B9;\">// aGet[2]:lIncSearch := .t. // TRY WITH THIS AND DOES NOT ERROR BUT DOES NOT GIVE SEQUENTIAL SEARCH .. - INTENTE CON ESTE Y NO DA ERROR PERO NO DA LA BUSQUEDA SECUENCIAL..</span><br /><br />&nbsp;</div>[/code:10cyshb4]\n\nTime from start: 0 hours 5 mins 54 secs \n Error occurred at: 04/09/2017, 19:33:29\n Error description: Error BASE/1005 Message not found: TDBCOMBO:_INCSEARCH\n Args:\n [ 1] = O TDBCOMBO\n\nStack Calls\n===========\n Called from: => __ERRRT_SBASE( 0 )\n Called from: ../../../tobject.prg => TDBCOMBO:ERROR( 0 )\n Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )\n Called from: ../../../tobject.prg => TDBCOMBO:MSGNOTFOUND( 0 )\n Called from: ../../../tobject.prg => TDBCOMBO:_INCSEARCH( 0 )\n Called from: ma_compras.prg => DAT_LIBCOM( 132 )", "time": "00:36", "topic": "Allow a write in Get in a Combobox", "username": "joseluisysturiz" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Jose,\n\nSorry, Jose, yes it should have been oDBC:lIncSearch.\n\nI have not use a DBCombo in some time. I wrote the original incremental search code for the TDBCombo class but it was since moved into the parent class, TCombobox. I have in my notes that moving the code to TComobox broke it for DBCombo but I don't know if that was ever fixed. It is late now, but I will try to look at it tomorrow.\n\nJames", "time": "06:37", "topic": "Allow a write in Get in a Combobox", "username": "James Bott" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":39y64gc7]Jose,\n\nSorry, Jose, yes it should have been oDBC:lIncSearch.\n\nI have not use a DBCombo in some time. I wrote the original incremental search code for the TDBCombo class but it was since moved into the parent class, TCombobox. I have in my notes that moving the code to TComobox broke it for DBCombo but I don't know if that was ever fixed. It is late now, but I will try to look at it tomorrow.\n\nJames[/quote:39y64gc7]\n\nJames, no problem, thanks same for replying...greetings...thank you... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "23:46", "topic": "Allow a write in Get in a Combobox", "username": "joseluisysturiz" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Jose,\n\nIncremental search works by default in DbCombo. No additional settings are necessary. \nThis is a working sample\n[code=fw:11fx4s9q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;field CODE,<span style=\"color: #0000ff;\">NAME</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oCbx<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cCode<br /><br />&nbsp; &nbsp;USE STATES<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> CODE TAG CODE<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">NAME</span> TAG <span style=\"color: #0000ff;\">NAME</span><br />&nbsp; &nbsp;SET ORDER <span style=\"color: #0000ff;\">TO</span> TAG <span style=\"color: #0000ff;\">NAME</span><br />&nbsp; &nbsp;GO TOP<br />&nbsp; &nbsp;cCode &nbsp; &nbsp;:= STATES->CODE<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> DBCOMBO oCbx <span style=\"color: #0000ff;\">VAR</span> ccODE <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"STATES\"</span> ;<br />&nbsp; &nbsp; &nbsp; ITEMFIELD <span style=\"color: #ff0000;\">\"CODE\"</span> ;<br />&nbsp; &nbsp; &nbsp; LISTFIELD <span style=\"color: #ff0000;\">\"NAME\"</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 />&nbsp;</div>[/code:11fx4s9q]\nNote: Though the documentation at the top of the source code of the dbcombo.prg says that the list needs to ordered, incremental search works even with unordered lists.", "time": "14:39", "topic": "Allow a write in Get in a Combobox", "username": "nageswaragunupudi" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr James\n\n[quote:663mfhce]\nbut it was since moved into the parent class, TCombobox. I have in my notes that moving the code to TComobox broke it for DBCombo but I don't know if that was ever fixed.\n[/quote:663mfhce]\nIncremental search is implemented in KeyChar() method. It is the same original method I see in all versions (from 12.04). So, there is no movement of the code or break of code. You may verify the source code of FWH you are using.", "time": "16:20", "topic": "Allow a write in Get in a Combobox", "username": "nageswaragunupudi" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":1707fv73]Mr Jose,\n\nIncremental search works by default in DbCombo. No additional settings are necessary. \nThis is a working sample\n[code=fw:1707fv73]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   field CODE,<span style=\"color: #0000ff;\">NAME</span><br />   <span style=\"color: #00C800;\">local</span> oDlg, oCbx<br />   <span style=\"color: #00C800;\">local</span> cCode<br /><br />   USE STATES<br />   <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> CODE TAG CODE<br />   <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">NAME</span> TAG <span style=\"color: #0000ff;\">NAME</span><br />   SET ORDER <span style=\"color: #0000ff;\">TO</span> TAG <span style=\"color: #0000ff;\">NAME</span><br />   GO TOP<br />   cCode    := STATES->CODE<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br /><br />   @ <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">20</span> DBCOMBO oCbx <span style=\"color: #0000ff;\">VAR</span> ccODE <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"STATES\"</span> ;<br />      ITEMFIELD <span style=\"color: #ff0000;\">\"CODE\"</span> ;<br />      LISTFIELD <span style=\"color: #ff0000;\">\"NAME\"</span><br /><br />   <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 /> </div>[/code:1707fv73]\nNote: Though the documentation at the top of the source code of the dbcombo.prg says that the list needs to ordered, incremental search works even with unordered lists.[/quote:1707fv73]\n\nMr.NAGE, in your sample it works but only with the first 2 letters of the word to search, I imagine that it is the field value in the DBF, in my case I use ARRAY to feed the DBCOMBO from a QUERY with mysql, which change dynamically ... with different created querys, and in resource mode defined as DROPDOWN and the sequential search does not work ... I am doing wrong or how should I do it? greetings...thank you... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nDEFINICION DEL DBCOMBO\n[code=fw:1707fv73]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> DBCOMBO aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> ; <span style=\"color: #B900B9;\">// OPCIONES BUSQUEDA</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ITEMS</span> aBuscar1 ;<br />&nbsp; &nbsp; &nbsp; LIST &nbsp;aBuscar2 ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> IIF<span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"3\"</span> .or. aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"4\"</span> ,; <span style=\"color: #B900B9;\">// SELECTORES</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span> sel_pax<span style=\"color: #000000;\">&#40;</span> aVar, aGet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> , &nbsp;aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; refresget<span style=\"color: #000000;\">&#40;</span> aGet <span style=\"color: #000000;\">&#41;</span>, aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1707fv73]\n\n\nCAMBIO DINAMICO DEL CONTENIDO DEL DBCOMBO\n[code=fw:1707fv73]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />PROCEDURE sel_pax<span style=\"color: #000000;\">&#40;</span> aVar, aGet <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aNuevo1 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aNuevo2 := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, cSelec, aArray0<br /><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> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"3\"</span> <span style=\"color: #B900B9;\">// ESTADO CLI.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cSelec := <span style=\"color: #ff0000;\">\"- Seleccione Estado -\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aArray0 := array_tablas<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"id_estatus, estatus\"</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"tbl_eststus\"</span>, <span style=\"color: #ff0000;\">\"id_estatus\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aNuevo1 := aArray0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>; aNuevo2 := aArray0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">\"4\"</span> <span style=\"color: #B900B9;\">// VENDEDOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cSelec := <span style=\"color: #ff0000;\">\"- Seleccione Vendedor -\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aArray0 := array_tablas2<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"id_usuario\"</span>, <span style=\"color: #ff0000;\">\"apellidos\"</span>, <span style=\"color: #ff0000;\">\"nombres\"</span><span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"tbl_usuarios\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aNuevo1 := aArray0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>; aNuevo2 := aArray0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;END <span style=\"color: #00C800;\">CASE</span><br /><br />&nbsp; &nbsp;AAdd<span style=\"color: #000000;\">&#40;</span> aNuevo1, <span style=\"color: #ff0000;\">\"0\"</span> <span style=\"color: #000000;\">&#41;</span>; AAdd<span style=\"color: #000000;\">&#40;</span> aNuevo2, cSelec <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aItems</span> := aNuevo1<br />&nbsp; &nbsp;aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aList</span> &nbsp;:= aNuevo2<br />&nbsp; &nbsp;aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetItems</span><span style=\"color: #000000;\">&#40;</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aItems</span>, aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">aList</span>, .t. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #ff0000;\">\"0\"</span><br /><br />&nbsp; &nbsp;aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span><br />&nbsp;</div>[/code:1707fv73]", "time": "04:15", "topic": "Allow a write in Get in a Combobox", "username": "joseluisysturiz" } ]
Allow a write in Get in a Combobox
[ { "date": "2017-09-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:35uguyx1]in your sample it works but only with the first 2 letters of the word to search,[/quote:35uguyx1]\nPlease test again. It works for more than 2 characters also, provided it finds a match.\n\nI shall soon give you an example of dynamically changing the items", "time": "17:50", "topic": "Allow a write in Get in a Combobox", "username": "nageswaragunupudi" } ]
Allow a write in Get in a Combobox
[ { "date": "2018-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nin case someone needs formatted raw HTML to be included in DOCX.\nBest regards,\nOtto\n\nSteps\n\nDocx- file rename to Zip and unzip\n\nCopy your MHT file to the word directory of the zip \n\nSearch for placeholder in document.xml and replace with \n<w:altChunk r:id=\"htmlDoc\" />\nword/document.xml - main XML document containing reference to imported file (\"w:altChunk\" element)\n\n\naltChunk (Anchor for Imported External Content)\nThis element specifies a location within a document for the insertion of the contents of a specified file containing external content to be imported into the main WordprocessingML document. \nThe altChunk element specifies that the external content targeted by the relationship with an ID of altChunk1 must be imported at the beginning of the document. \n\n\n<Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/htmlDoc.html\" Id=\"htmlDoc\" />\nThe corresponding relationship part item shows that the file to be imported is located next to the main document and is named import.htm. end example]\n\n\n[Content_Types].xml - contains declaration of \"altChunk\" content type (mime type - \"text/html\"; mime type for MHTML is \"message/rfc822\"):\n<Override PartName=\"/word/htmlDoc.html\" ContentType=\"text/html\"/>\n\n[img:os3plcps]http&#58;//www&#46;atzwanger-software&#46;com/fw/htmlandword&#46;jpg[/img:os3plcps]", "time": "20:11", "topic": "Allow for formatted raw HTML to be included in DOCX", "username": "Otto" } ]
Allow for formatted raw HTML to be included in DOCX
[ { "date": "2021-07-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Otto/Dad <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nthis sounds very interesting...please be so kind as to share an example before and after of the document.xml? \n\nby \"placeholder\" you mean a spot, that you chose, where the raw html should be put?\n\ni am very interested in this...also i want to check what happens to the format...a client uses black background for his docx...now i want to see if I can leave this info blank in the mht so that it get the background from the docx...\n\nkind regards\nruth", "time": "11:29", "topic": "Allow for formatted raw HTML to be included in DOCX", "username": "Ruth" } ]
Allow for formatted raw HTML to be included in DOCX
[ { "date": "2021-07-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Otto,\n\nI admire your energy and passion <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\na big hug", "time": "18:11", "topic": "Allow for formatted raw HTML to be included in DOCX", "username": "Antonio Linares" } ]
Allow for formatted raw HTML to be included in DOCX
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi guys,\n\nI have this line code:\n\nfwrite(marq,'<xLgr>'+Alltrim(oArqCli:ENDERECO)+'</xLgr>'+mfim)\n\nJust fine but in some cases a blank caracter apears in xml (end of oArqCli:ENDERECO field) like this:\n\n<xLgr>RUA 2 QD 13 LT 15 </xLgr>\n\nShouldn't Alltrim() remove whites at the beginning and end?\n\nThanks!", "time": "02:06", "topic": "Alltrim() help", "username": "wartiaga" } ]
Alltrim() help
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, AllTrim is used for remove blank spaces at end and at begining\nPlease, put this code\n[code=fw:2tboxubx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />? <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> Alltrim<span style=\"color: #000000;\">&#40;</span>oArqCli:<span style=\"color: #000000;\">ENDERECO</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />? <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> Alltrim<span style=\"color: #000000;\">&#40;</span>oArqCli:<span style=\"color: #000000;\">ENDERECO</span><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 /> </div>[/code:2tboxubx]", "time": "11:25", "topic": "Alltrim() help", "username": "cnavarro" } ]
Alltrim() help
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"cnavarro\":athqrvj1]Yes, AllTrim is used for remove blank spaces at end and at begining\nPlease, put this code\n[code=fw:athqrvj1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />? <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> Alltrim<span style=\"color: #000000;\">&#40;</span>oArqCli:<span style=\"color: #000000;\">ENDERECO</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">32</span><br />? <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span> Alltrim<span style=\"color: #000000;\">&#40;</span>oArqCli:<span style=\"color: #000000;\">ENDERECO</span><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 /> </div>[/code:athqrvj1][/quote:athqrvj1]\n\nHi cnavarro,\n\nThe result:\n\n.F.\n160\n\nIn asc table 160 = á \nHow this is possible? I don't see á but a space. How I can avoid this?\nThanks in advance.", "time": "13:36", "topic": "Alltrim() help", "username": "wartiaga" } ]
Alltrim() help
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Use\n[code=fw:1i821hxe]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />cStr &nbsp; := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">160</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:1i821hxe]\n\n<!-- m --><a class=\"postlink\" href=\"https://stackoverflow.com/questions/27925182/sql-server-how-to-replace-whitespacesnbsp-ascii-in-a-string-with-numbers\">https://stackoverflow.com/questions/279 ... th-numbers</a><!-- m -->", "time": "13:54", "topic": "Alltrim() help", "username": "cnavarro" } ]
Alltrim() help
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:2l7ss1tf]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/28336-pequisa-aven%C3%A7ada/[/url:2l7ss1tf]\n\n[code=fw:2l7ss1tf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #B900B9;\">// Endereco/Calle/Direccion</span><br />   cDocXml = TIRA_ACENTUACAO<span style=\"color: #000000;\">&#40;</span> oArqCli:<span style=\"color: #000000;\">ENDERECO</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   ? cDocXml<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TIRA_ACENTUACAO<span style=\"color: #000000;\">&#40;</span> cStr <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">LOCAL</span> cStrNew := <span style=\"color: #ff0000;\">\"\"</span>, nX<br /><br />   cAcentos := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"‡\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"—\"</span>, <span style=\"color: #ff0000;\">\"ƒ\"</span>, <span style=\"color: #ff0000;\">\"Æ\"</span>, <span style=\"color: #ff0000;\">\"Ç\"</span>, <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"µ\"</span>, <span style=\"color: #ff0000;\">\"…\"</span>, <span style=\"color: #ff0000;\">\"·\"</span>, <span style=\"color: #ff0000;\">\"‚\"</span>, <span style=\"color: #ff0000;\">\"É\"</span>, <span style=\"color: #ff0000;\">\"ê\"</span>, <span style=\"color: #ff0000;\">\"ˆ\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"Ò\"</span>, <span style=\"color: #ff0000;\">\"í\"</span>, <span style=\"color: #ff0000;\">\"Í\"</span>, <span style=\"color: #ff0000;\">\"ó\"</span>, <span style=\"color: #ff0000;\">\"¢\"</span>, <span style=\"color: #ff0000;\">\"à\"</span>, <span style=\"color: #ff0000;\">\"ä\"</span>, <span style=\"color: #ff0000;\">\"å\"</span>, <span style=\"color: #ff0000;\">\"“\"</span>, <span style=\"color: #ff0000;\">\"â\"</span>, <span style=\"color: #ff0000;\">\"ú\"</span>, <span style=\"color: #ff0000;\">\"é\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"š\"</span>, <span style=\"color: #ff0000;\">\"ç\"</span>, <span style=\"color: #ff0000;\">\"€\"</span>, <span style=\"color: #ff0000;\">\"ã\"</span>, <span style=\"color: #ff0000;\">\"Ã\"</span>, <span style=\"color: #ff0000;\">\"á\"</span>, <span style=\"color: #ff0000;\">\"Á\"</span>, <span style=\"color: #ff0000;\">\"à\"</span>, <span style=\"color: #ff0000;\">\"À\"</span>, <span style=\"color: #ff0000;\">\"é\"</span>, <span style=\"color: #ff0000;\">\"É\"</span>, <span style=\"color: #ff0000;\">\"ê\"</span>, <span style=\"color: #ff0000;\">\"Ê\"</span>, <span style=\"color: #ff0000;\">\"í\"</span>, <span style=\"color: #ff0000;\">\"Í\"</span>, <span style=\"color: #ff0000;\">\"ó\"</span>, <span style=\"color: #ff0000;\">\"Ó\"</span>, <span style=\"color: #ff0000;\">\"õ\"</span>, <span style=\"color: #ff0000;\">\"Õ\"</span>, <span style=\"color: #ff0000;\">\"ô\"</span>, <span style=\"color: #ff0000;\">\"Ô\"</span>, <span style=\"color: #ff0000;\">\"ú\"</span>, <span style=\"color: #ff0000;\">\"Ú\"</span>, <span style=\"color: #ff0000;\">\"ü\"</span>, <span style=\"color: #ff0000;\">\"Ü\"</span>, <span style=\"color: #ff0000;\">\"ç\"</span>, <span style=\"color: #ff0000;\">\"ù\"</span>, <span style=\"color: #ff0000;\">\"AAO\"</span>, <span style=\"color: #ff0000;\">\"§\"</span>, <span style=\"color: #ff0000;\">\"¦\"</span>, <span style=\"color: #ff0000;\">\"º\"</span>, <span style=\"color: #ff0000;\">\"ª\"</span>, <span style=\"color: #ff0000;\">\"€\"</span>, <span style=\"color: #ff0000;\">\"‡\"</span>, <span style=\"color: #ff0000;\">\"Ç\"</span>, <span style=\"color: #ff0000;\">\"ç\"</span>, <span style=\"color: #ff0000;\">\"'\"</span>, <span style=\"color: #ff0000;\">\"`\"</span>, <span style=\"color: #ff0000;\">\"ø\"</span>, <span style=\"color: #ff0000;\">\"¡\"</span>, <span style=\"color: #ff0000;\">\"Þ\"</span>, <span style=\"color: #ff0000;\">\"×\"</span>, <span style=\"color: #ff0000;\">\"Ø\"</span>, <span style=\"color: #ff0000;\">\"ÿ\"</span>, <span style=\"color: #ff0000;\">\"Ö\"</span>, CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">160</span><span style=\"color: #000000;\">&#41;</span>, CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">239</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   cLetras  := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"AAO\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"\"</span> , <span style=\"color: #ff0000;\">\"\"</span> , <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>,  <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span>  <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">FOR</span> nX := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> cAcentos <span style=\"color: #000000;\">&#41;</span><br /><br />      cStrNew := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cAcentos<span style=\"color: #000000;\">&#91;</span>nX<span style=\"color: #000000;\">&#93;</span>, cLetras<span style=\"color: #000000;\">&#91;</span>nX<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      cStr := cStrNew<br /><br />   <span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> cStrNew <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2l7ss1tf]", "time": "14:37", "topic": "Alltrim() help", "username": "karinha" } ]
Alltrim() help
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"karinha\":3gnb75ja][url:3gnb75ja]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/28336-pequisa-aven%C3%A7ada/[/url:3gnb75ja]\n\n[code=fw:3gnb75ja]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   <span style=\"color: #B900B9;\">// Endereco/Calle/Direccion</span><br />   cDocXml = TIRA_ACENTUACAO<span style=\"color: #000000;\">&#40;</span> oArqCli:<span style=\"color: #000000;\">ENDERECO</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   ? cDocXml<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TIRA_ACENTUACAO<span style=\"color: #000000;\">&#40;</span> cStr <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">LOCAL</span> cStrNew := <span style=\"color: #ff0000;\">\"\"</span>, nX<br /><br />   cAcentos := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"‡\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"—\"</span>, <span style=\"color: #ff0000;\">\"ƒ\"</span>, <span style=\"color: #ff0000;\">\"Æ\"</span>, <span style=\"color: #ff0000;\">\"Ç\"</span>, <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"µ\"</span>, <span style=\"color: #ff0000;\">\"…\"</span>, <span style=\"color: #ff0000;\">\"·\"</span>, <span style=\"color: #ff0000;\">\"‚\"</span>, <span style=\"color: #ff0000;\">\"É\"</span>, <span style=\"color: #ff0000;\">\"ê\"</span>, <span style=\"color: #ff0000;\">\"ˆ\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"Ò\"</span>, <span style=\"color: #ff0000;\">\"í\"</span>, <span style=\"color: #ff0000;\">\"Í\"</span>, <span style=\"color: #ff0000;\">\"ó\"</span>, <span style=\"color: #ff0000;\">\"¢\"</span>, <span style=\"color: #ff0000;\">\"à\"</span>, <span style=\"color: #ff0000;\">\"ä\"</span>, <span style=\"color: #ff0000;\">\"å\"</span>, <span style=\"color: #ff0000;\">\"“\"</span>, <span style=\"color: #ff0000;\">\"â\"</span>, <span style=\"color: #ff0000;\">\"ú\"</span>, <span style=\"color: #ff0000;\">\"é\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"š\"</span>, <span style=\"color: #ff0000;\">\"ç\"</span>, <span style=\"color: #ff0000;\">\"€\"</span>, <span style=\"color: #ff0000;\">\"ã\"</span>, <span style=\"color: #ff0000;\">\"Ã\"</span>, <span style=\"color: #ff0000;\">\"á\"</span>, <span style=\"color: #ff0000;\">\"Á\"</span>, <span style=\"color: #ff0000;\">\"à\"</span>, <span style=\"color: #ff0000;\">\"À\"</span>, <span style=\"color: #ff0000;\">\"é\"</span>, <span style=\"color: #ff0000;\">\"É\"</span>, <span style=\"color: #ff0000;\">\"ê\"</span>, <span style=\"color: #ff0000;\">\"Ê\"</span>, <span style=\"color: #ff0000;\">\"í\"</span>, <span style=\"color: #ff0000;\">\"Í\"</span>, <span style=\"color: #ff0000;\">\"ó\"</span>, <span style=\"color: #ff0000;\">\"Ó\"</span>, <span style=\"color: #ff0000;\">\"õ\"</span>, <span style=\"color: #ff0000;\">\"Õ\"</span>, <span style=\"color: #ff0000;\">\"ô\"</span>, <span style=\"color: #ff0000;\">\"Ô\"</span>, <span style=\"color: #ff0000;\">\"ú\"</span>, <span style=\"color: #ff0000;\">\"Ú\"</span>, <span style=\"color: #ff0000;\">\"ü\"</span>, <span style=\"color: #ff0000;\">\"Ü\"</span>, <span style=\"color: #ff0000;\">\"ç\"</span>, <span style=\"color: #ff0000;\">\"ù\"</span>, <span style=\"color: #ff0000;\">\"AAO\"</span>, <span style=\"color: #ff0000;\">\"§\"</span>, <span style=\"color: #ff0000;\">\"¦\"</span>, <span style=\"color: #ff0000;\">\"º\"</span>, <span style=\"color: #ff0000;\">\"ª\"</span>, <span style=\"color: #ff0000;\">\"€\"</span>, <span style=\"color: #ff0000;\">\"‡\"</span>, <span style=\"color: #ff0000;\">\"Ç\"</span>, <span style=\"color: #ff0000;\">\"ç\"</span>, <span style=\"color: #ff0000;\">\"'\"</span>, <span style=\"color: #ff0000;\">\"`\"</span>, <span style=\"color: #ff0000;\">\"ø\"</span>, <span style=\"color: #ff0000;\">\"¡\"</span>, <span style=\"color: #ff0000;\">\"Þ\"</span>, <span style=\"color: #ff0000;\">\"×\"</span>, <span style=\"color: #ff0000;\">\"Ø\"</span>, <span style=\"color: #ff0000;\">\"ÿ\"</span>, <span style=\"color: #ff0000;\">\"Ö\"</span>, CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">160</span><span style=\"color: #000000;\">&#41;</span>, CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">239</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   cLetras  := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"E\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"O\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"U\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"AAO\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"\"</span> , <span style=\"color: #ff0000;\">\"\"</span> , <span style=\"color: #ff0000;\">\".\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>, <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"I\"</span>,  <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #ff0000;\">\"\"</span>  <span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">FOR</span> nX := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> cAcentos <span style=\"color: #000000;\">&#41;</span><br /><br />      cStrNew := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cAcentos<span style=\"color: #000000;\">&#91;</span>nX<span style=\"color: #000000;\">&#93;</span>, cLetras<span style=\"color: #000000;\">&#91;</span>nX<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      cStr := cStrNew<br /><br />   <span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> cStrNew <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3gnb75ja][/quote:3gnb75ja]\n\nThanks but in this especific case the content \"SAO MATHEUS \" your function change the value to SAOAMATHEUSAAAAAAAAAAAAAAAAAAAA, not work.", "time": "16:34", "topic": "Alltrim() help", "username": "wartiaga" } ]
Alltrim() help
[ { "date": "2020-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"cnavarro\":hek90dug]Use\n[code=fw:hek90dug]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />cStr   := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">160</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\" \"</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:hek90dug]\n\n<!-- m --><a class=\"postlink\" href=\"https://stackoverflow.com/questions/27925182/sql-server-how-to-replace-whitespacesnbsp-ascii-in-a-string-with-numbers\">https://stackoverflow.com/questions/279 ... th-numbers</a><!-- m -->[/quote:hek90dug]\n\nThank you! I will try.", "time": "16:34", "topic": "Alltrim() help", "username": "wartiaga" } ]
Alltrim() help
[ { "date": "2005-12-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados Amigos, necesito saber si se puede tener en los regisros de una DBF datos de tipo GIF, BMP o AVI\n\nSi no es en DBF, en que tipo de seria ?\n\ngracias\nsaludos cordiales", "time": "19:20", "topic": "Almacenar JPG, BMP, AVI, etc etc en archivos .DBF", "username": "Tom" } ]
Almacenar JPG, BMP, AVI, etc etc en archivos .DBF
[ { "date": "2005-12-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Tom\n\n Hace poco cuando buscaba algo asi, me encontre con un mensaje en al antiguo news de FWH, que hacia exactamente lo que pides, te lo paso al costo, solo es funcional con xHarbour y se almacena en un campo memo de una .dbf\n\n//////////////////////////////////////////////////////////////////////////////\nAsunto: Re: Images in memo fields / Imagenes en campos memo\nFecha: Lunes, 05 de Septiembre de 2005 06:31 p.m.\n\nEstos son ejemplos de xHarbour usando DBFCDX:\n\nCon esta llenarias el archivo con las imagenes...\n\n FUNCTION Populate()\n USE customer NEW VIA \"DBFCDX\"\n DO WHILE .NOT. EOF()\n GetPix( \"Pix\", Substr(LastName, 1, 4) + CustID)\n Customer->DBSkip()\n ENDDO\n\n FUNCTION GetPix(cPixField, cPixFile)\n LOCAL nPos\n nPos := FieldPos(cPixField)\n\n // Import the picture field into the indicated field\n IF ! DBFILEPUT(nPos, cPixFile)\n Alert(\"Import of picture \" + cPixFile + \" failed!\")\n ENDIF\n\nCon este mostrarias lo que guardaste en el archivo:\n\n FUNCTION ShowPix()\n LOCAL cPixFile := \"picture.gif\"\n LOCAL nPos\n\n // Customer database with a picture of each\n // customer stored in a field called \"Pix\"\n USE customer NEW VIA \"DBFCDX\"\n nPos := FieldPos(\"Pix\")\n\n // Export the file's data for the current Pix field\n IF ! DBFILEGET(nPos, cPixFile, FILEGET_OVERWRITE )\n Alert(\"Export of picture \" + cPixFile + \" failed!\")\n ELSE\n // Code for displaying picture would go here\n ENDIF\n\nSaludos desde Colombia,\n\nJulio Cesar Cantillo Molina\n////////////////////////////////////////////////////////////////////////////\n\n ahi te lo dejo <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\nSaludos.\n\n Marco A. Delgado", "time": "02:31", "topic": "Almacenar JPG, BMP, AVI, etc etc en archivos .DBF", "username": "Marco A. Delgado" } ]
Almacenar JPG, BMP, AVI, etc etc en archivos .DBF
[ { "date": "2020-04-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos del forum.\n\n\nNecesito almacenar contraseña con la clase fwh mysql/mariadb, utilizando el algorismo AES\ny averiguando encontré esto:\nPara encriptar\nINSERT INTO usuarios VALUES('usuario',AES_ENCRYPT('contraseña','llave'));\nPara desencriptar:\nINSERT INTO usuarios VALUES('usuario',AES_DECRYPT('contraseña','llave'));\n\nComo llevo estas lineas a la clase o un ejemplo.\n\nGracias por la atención prestada\n\n\nAdolfredo martinez", "time": "01:49", "topic": "Almacenar contraseñas con FWH MySQL/MariaDB", "username": "Adolfredo Martinez" } ]
Almacenar contraseñas con FWH MySQL/MariaDB
[ { "date": "2020-04-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos del Forum.\n\nLo que busco es algo como esto, que hice en tablas DBF:\n\n\n#include \"FiveWin.ch\"\n*-----------------\nfunc Main()\n*-----------------\nlocal oDlg, oGet02,oGet01,oGet03,oFont,clavencriptada:=space(20),claveDecriptada:=space(20)\nlocal cPassword:=SPACE(20),oSay\nlocal oBoton,oBoton2,cChave := 'AMFSOFT',cnombre:=space(33),lEncriDescri := .F.,lSalir := .F.\n\nDEFINE FONT oFont NAME \"Tahoma\" SIZE 0, -12\n\n\n DEFINE DIALOG oDlg ;\n FROM 5, 5 TO 15, 60 ;\n TITLE \"Por Favor Identifiquese\" ;\n FONT oFont\n oDlg:lHelpIcon := .f.\n\n\n @ 1, 2 SAY \"Nombre del Usuario:\" OF oDlg\n @ 1, 10 GET oGet01 VAR cnombre OF oDlg\n\n @ 2, 2 SAY \"Digite sus clave para ingresar...\" OF oDlg\n @ 3, 2 GET oGet02 VAR cPassword OF oDlg PASSWORD\n\n @ 3, 5 BUTTONBMP oBoton PROMPT \"Encrytar\" OF oDlg size 50,20 ;\n ACTION ( lEncriDescri := .T. , oDlg:End() )\n\n @ 3, 15 BUTTONBMP oBoton2 PROMPT \"Salir\" OF oDlg size 40,20 ;\n ACTION ( lSalir := .T. , oDlg:End() )\n \n \n ACTIVATE DIALOG oDlg CENTER ON INIT oGet01:SetFocus()\n\nIF lEncriDescri\n clavencriptada := hb_crypt(cPassword, cChave)\n msginfo(clavencriptada,\"encrypt\")\n\n claveDecriptada :=hb_Decrypt(clavencriptada,cChave)\n msginfo(claveDecriptada,\"decrypt\")\nENDIF\n\nIF lSalir\n Return Nil\nendif\n\nRETURN( NIL)\n\n\nComo seria hacer esto pero con la clase FWH Mysql/Mariadb", "time": "22:12", "topic": "Almacenar contraseñas con FWH MySQL/MariaDB", "username": "Adolfredo Martinez" } ]
Almacenar contraseñas con FWH MySQL/MariaDB
[ { "date": "2020-04-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Adolfredo.\nMira si este codigo, tomado parcialmente de uno de mis sistemas, te sirve de guia.\nUtilizo MySql - TMySql. Las funciones de encriptacion y decriptacion son de FW.\n[code=fw:3kwdy2sn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//-------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> lAutorizado<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg,oBt1,oBt2, oCbx, oPw, cItems:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>,cVar, cPw, lOK:=.f., lAutoriza:=.f.<br /><span style=\"color: #00C800;\">local</span> oUsuarios:= oServer:<span style=\"color: #000000;\">Query</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT * FROM usuarios\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />oUsuarios:<span style=\"color: #000000;\">GoTop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">While</span> !oUsuarios:<span style=\"color: #000000;\">eof</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span>cItems,oUsuarios:<span style=\"color: #000000;\">nombre</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oUsuarios:<span style=\"color: #000000;\">Skip</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Enddo</span><br /><br />cPw:=space<span style=\"color: #000000;\">&#40;</span>len<span style=\"color: #000000;\">&#40;</span>oUsuarios:<span style=\"color: #000000;\">codigo</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />cVar:=cItems<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDLG <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"USUARIOS\"</span> <br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">ComboBox</span> oCbx <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">103</span> <span style=\"color: #0000ff;\">OF</span> oDLG <span style=\"color: #0000ff;\">ITEMS</span> cItems ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span>oCbx:<span style=\"color: #000000;\">GotFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oCbx:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oPw <span style=\"color: #0000ff;\">VAR</span> cPw <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDLG<br /><span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oBt1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">312</span> <span style=\"color: #0000ff;\">OF</span> oDLG BITMAP <span style=\"color: #ff0000;\">\"ACEPTAR\"</span> &nbsp;TEXTRIGHT &nbsp;<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 /><span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oBt2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">313</span> <span style=\"color: #0000ff;\">OF</span> oDLG BITMAP <span style=\"color: #ff0000;\">\"CANCELAR\"</span> TEXTRIGHT &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>lOK:=.f.,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 /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <br /><span style=\"color: #00C800;\">if</span> lOK<br />&nbsp; &nbsp;cPw := Encrypt<span style=\"color: #000000;\">&#40;</span>cPw,<span style=\"color: #ff0000;\">\"AMFSOFT\"</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp;oUsuarios:<span style=\"color: #000000;\">Gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oUsuarios:<span style=\"color: #000000;\">Locate</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Codigo\"</span>, cPw <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">//Busca PW en col usuarios:codigo</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oUsuarios:<span style=\"color: #000000;\">nombre</span> = cVar .and. oUsuarios:<span style=\"color: #000000;\">Codigo</span> = cPw<br />&nbsp; &nbsp; &nbsp; lAutoriza:=.t.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; lAutoriza:=.f.<br />&nbsp; &nbsp; &nbsp; MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Acceso Denegado.\"</span>,<span style=\"color: #ff0000;\">\"Alto\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;oUsuarios:<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> lAutoriza<br /><br /><span style=\"color: #B900B9;\">//---------------------------------------// Agregar usuario, o modificarlo</span><br /><span style=\"color: #00C800;\">Function</span> UsuarConf<span style=\"color: #000000;\">&#40;</span>lAppend,oUsuarios<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oDlg,oNomb,oCodi,oCodi2, lOK:=.f., oUsers, n<br /><span style=\"color: #00C800;\">local</span> cNomb,cCodi<br /><span style=\"color: #00C800;\">local</span> nRecno:=oUsuarios:<span style=\"color: #000000;\">Recno</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">if</span> lAppend<br />&nbsp; &nbsp;oUsuarios:<span style=\"color: #000000;\">GoBottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nNumUser := oUsuarios:<span style=\"color: #000000;\">NumUser</span> + <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;cNomb &nbsp; &nbsp;:= space<span style=\"color: #000000;\">&#40;</span>len<span style=\"color: #000000;\">&#40;</span>oUsuarios:<span style=\"color: #000000;\">nombre</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cCodi &nbsp; &nbsp;:= oUsuarios:<span style=\"color: #000000;\">codigo</span><br /><span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp;nNumUser := oUsuarios:<span style=\"color: #000000;\">NumUser</span> <br />&nbsp; &nbsp;cNomb &nbsp; &nbsp;:= oUsuarios:<span style=\"color: #000000;\">nombre</span><br />&nbsp; &nbsp;cCodi &nbsp; &nbsp;:= Decrypt<span style=\"color: #000000;\">&#40;</span> oUsuarios:<span style=\"color: #000000;\">codigo</span>, <span style=\"color: #ff0000;\">\"AMFSOFT\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDLG <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PERFILUSUARIO\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>lAppend,<span style=\"color: #ff0000;\">\"Perfil de Usuario\"</span>,<span style=\"color: #ff0000;\">\"Modificar Perfil de Usuario\"</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oNomb <span style=\"color: #0000ff;\">VAR</span> cNomb <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">Valid</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>empty<span style=\"color: #000000;\">&#40;</span>cNomb<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Debe ingresar el nombre.\"</span>,<span style=\"color: #ff0000;\">\"Alto\"</span><span style=\"color: #000000;\">&#41;</span>,.f.<span style=\"color: #000000;\">&#41;</span>,.t.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oCodi <span style=\"color: #0000ff;\">VAR</span> cCodi <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">Valid</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>empty<span style=\"color: #000000;\">&#40;</span>cCodi<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>MsgStop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Debe ingresar la clave.\"</span>,<span style=\"color: #ff0000;\">\"Alto\"</span><span style=\"color: #000000;\">&#41;</span>,.f.<span style=\"color: #000000;\">&#41;</span>,.t.<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">312</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> BITMAP <span style=\"color: #ff0000;\">\"ACEPTAR\"</span> TEXTRIGHT<br /><span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">313</span> <span style=\"color: #0000ff;\">OF</span> oDLG <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>lOK:=.F.,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 BITMAP <span style=\"color: #ff0000;\">\"CANCELAR\"</span> TEXTRIGHT<br /><br /><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;\">IF</span> lOK<br />&nbsp; <span style=\"color: #00C800;\">if</span> lAppend<br />&nbsp; &nbsp; &nbsp;oServer:<span style=\"color: #000000;\">Query</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"INSERT INTO usuarios SET NumUser = '\"</span>+cValToChar<span style=\"color: #000000;\">&#40;</span>nNumeUser<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"' ;\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">endif</span> <br />&nbsp; <br />&nbsp; oServer:<span style=\"color: #000000;\">Query</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"UPDATE usuarios SET nombre = '\"</span>+cNomb+<span style=\"color: #ff0000;\">\"', codigo = '\"</span>+Encrypt<span style=\"color: #000000;\">&#40;</span>cCodi,<span style=\"color: #ff0000;\">'AMFSOFT'</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"' \"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"WHERE numUser = '\"</span>+cValToChar<span style=\"color: #000000;\">&#40;</span>nNumeUser<span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"' ;\"</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; oUsuarios:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//actualiza consulta</span><br />&nbsp; oUsuarios:<span style=\"color: #000000;\">Goto</span><span style=\"color: #000000;\">&#40;</span>nRecno<span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">if</span> lAppend<br />&nbsp; &nbsp; &nbsp;oUsuarios:<span style=\"color: #000000;\">GoBottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">ELSE</span><br />&nbsp; oUsuarios:<span style=\"color: #000000;\">Gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3kwdy2sn]\nSaludos.", "time": "17:02", "topic": "Almacenar contraseñas con FWH MySQL/MariaDB", "username": "FranciscoA" } ]
Almacenar contraseñas con FWH MySQL/MariaDB
[ { "date": "2020-04-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Con HDO es muy fácil.\nAhí lo dejo!!!\nIncluso podrías usas HDO RDD, mira este código:\n\n[code=fw:38fb0d1u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />USE usuarios <span style=\"color: #00C800;\">NEW</span> <span style=\"color: #0000ff;\">ALIAS</span> usuarios VIA <span style=\"color: #ff0000;\">\"HDO\"</span><br /><br /><span style=\"color: #B900B9;\">// Para guardar</span><br /><br />usuarios-><span style=\"color: #000000;\">&#40;</span>dbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />usuarios->user:= <span style=\"color: #ff0000;\">\"el_usuario\"</span><br />usuarios->pwd := AES_ENCRYPT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'la_contraseña'</span>,<span style=\"color: #ff0000;\">'llave'</span><span style=\"color: #000000;\">&#41;</span><br /><br />usuarios-><span style=\"color: #000000;\">&#40;</span>dbCommit<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// Para recuperar</span><br /><br /><span style=\"color: #00C800;\">if</span> usuarios-><span style=\"color: #000000;\">&#40;</span> DBSeek<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"el_usuario\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   usuario := usuarios->user<br />   contraseña := AES_DECRYPT<span style=\"color: #000000;\">&#40;</span> usuarios->pwd, <span style=\"color: #ff0000;\">\"llave\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">else</span><br />   alert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Usuario no encontrado\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br /> </div>[/code:38fb0d1u]\n\nComo ves usando la HDO RDD es como si trataras una DBF normal\nNo me digas que no es fácil.\n\nTambién puedes hacerlo con TRowset\no directamente con sentencia SQL\n\nNo es por nada pero HDO mola!!!\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "17:05", "topic": "Almacenar contraseñas con FWH MySQL/MariaDB", "username": "xmanuel" } ]
Almacenar contraseñas con FWH MySQL/MariaDB
[ { "date": "2020-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola FranciscoA y xmanuel.\n\nGracias por contestar.\n\nFrancisco excelente ejemplo gracias ya lo resolví, al comienzo tuve mi tropiezo, pero cambie la estructura del campo donde almaceno el password tenia definido así:\n\nClave varchar(20) NULL la cambie por\nCODIGO text(20) NULL\n\n\nGracias", "time": "11:52", "topic": "Almacenar contraseñas con FWH MySQL/MariaDB", "username": "Adolfredo Martinez" } ]
Almacenar contraseñas con FWH MySQL/MariaDB
[ { "date": "2015-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "// Almacena archivos de cualquier tipo en una tabla DBF o Gestor MySQL/SQLSERVER\n// Juan navas <!-- e --><a href=\"mailto:jnavas@datapronet.com\">jnavas@datapronet.com</a><!-- e --> <!-- e --><a href=\"mailto:jnadaptapro@gmail.com\">jnadaptapro@gmail.com</a><!-- e -->\n// Este programa fue extraido del sistema ERP AdaptaPro <!-- w --><a class=\"postlink\" href=\"http://www.datapronet.com\">www.datapronet.com</a><!-- w --> utiliza MYSQL\n// Este ejemplo es mi aporte al foro de FiveWin, se puede utilizar en cualquier gestor de base de datos utilizando campos Memos\n// El mecanismo es: A partir del Archivo BMP o Binario, Genera un archivo comprimido ZIP,texto mediante MIME, se fracciona en paginas y se almacena\n// Para recuperarlo: Lee el contenido del memo, genera el archivo TEXTO, luego genera el archivo comprimido, finalmente se descomprime y genera el archivo nuevamente en la carpeta filerecover\n// Requiere Libreria hbzlib.LIB\n// Ejecucion desde la consola: savefilebmp <Nombre de Cualquier Archivo>\n// Si no se indica el nombre del archivo, guardara el mismo binario y luego lo recupera en la carpeta filerecover\n// Esta funcionalidad la hemos ìmplementado con campos BLOB y LONGTEXT en MYSQL.\n\n#include \"FiveWin.ch\"\n\nFUNCTION MAIN(cFile)\n LOCAL aPag\n LOCAL cBin :=Lower(GetModuleFileName( GetInstance() ))\n LOCAL cFileDir:=\"FILES.DBF\"\n LOCAL cFilePag:=\"FILESPAG.DBF\"\n LOCAL aFile,I\n\n DEFAULT cFile:=cBin\n\n SET DELETE ON\n\n IF !FILE(cFile)\n MsgAlert(\"Archivo \"+cFile+\" no Existe\")\n RETURN NIL\n ENDIF\n\n ISTABLAS(cFileDir,cFilePag)\n\n aFile:=DIRECTORY(cFile)\n aPag :=GETPAGES(cFile)\n\n IF Empty(aPag)\n MsgAlert(\"Archivo no generó Paginado\")\n RETURN NIL\n ENDIF\n\n SELECT A\n USE (cFileDir) EXCLU\n GO TOP\n // Remueve el COntenido\n DELETE ALL FOR ALLTRIM(FIELD->FILE)=ALLTRIM(cFile)\n PACK\n\n APPEND BLANK\n REPLACE FILE WITH cFile\n REPLACE SIZE WITH aFile[1,2]\n REPLACE PAGES WITH LEN(aPag)\n COMMIT\n\n // BROWSE()\n\n SELECT B\n USE (cFilePag) EXCLU\n GO TOP\n // Remueve el COntenido\n DELETE ALL FOR ALLTRIM(FIELD->FILE)=ALLTRIM(cFile)\n PACK\n\n FOR I=1 TO LEN(aPag)\n APPEND BLANK\n REPLACE FILE WITH cFile\n REPLACE PAGE WITH I\n REPLACE MEMO WITH aPag[I]\n COMMIT\n NEXT I\n\n // BROWSE()\n\n CLOSE ALL\n\n RECUPERAR(cFile)\n\nRETURN NIL\n\nFUNCTION cFileTemp(cExt)\nLOCAL cFile:=\"tmp\"+STRTRAN(LSTR(SECONDS()),\".\",\"\")+cExt\nRETURN cFile\n\nFUNCTION lstr(nValue)\nRETURN ALLTRIM(STR(nValue))\n\n\nFUNCTION GETPAGES(cFileOrg)\n LOCAL cFileZip :=cFileTemp(\".ZIP\")\n LOCAL cFileMime:=cFileTemp(\".TXT\")\n LOCAL aFiles :={},nSize:=0,oFile,cMemo:=\"\"\n LOCAL cBin :=Lower(cFilePath(GetModuleFileName( GetInstance() )))\n LOCAL aPages:={},I,aTotal:={},nTotal:=0,lZip:=.F.\n LOCAL aPag :={},nPage\n LOCAL nFileMax :=(1024**4)*2 // Tamaño maximo permitido para almacenar, en paginado el limite esta en la capacidad de la tabla\n LOCAL nPageSize:=(1024**2)/2 // Tamaño maximo de la Pagina, limite campo MEMO . Utilizado en MySQL para campos LONGTEXT\n\n nPageSize:=65555 // Capacidad para tablas DBF\n\n CursorWait()\n\n IF !(\":\"$cFileOrg)\n cFileOrg:=cBin+cFileOrg\n ENDIF\n\n cFileOrg :=Lower(cFileOrg)\n\n AADD(aFiles,cFileOrg)\n\n IF !(\":\"$cFileOrg)\n\n MsgAlert(\"Es necesario Indicar la Ruta Completa del Archivo \"+cFileOrg+CRLF+;\n \"Ejemplo \"+cBin+\"\\docs\\documento.doc\")\n\n RETURN 0\n\n ENDIF\n\n IF !FILE(cFileOrg)\n MsgAlert(\"Archivo \"+cFileOrg+\" no Existe\")\n RETURN 0\n ENDIF\n\n IF UPPE(cFileExt(cFileOrg))=\"ZIP\"\n cFileZip:=cFileOrg\n lZip :=.T.\n ELSE\n // El Archivo Original es Comprimido en Formato Zip\n HB_ZipFile( cFileZip, aFiles, 9,,.T., NIL, .F., .F. )\n ENDIF\n\n // El Archivo MIME es Convertido en Formato TEXTO Segun Mime\n FMimeEnc(cFileZip,cFileMime)\n\n // Valida el Tamaño con el Archivo MIME\n nSize:=DIRECTORY(cFileMime)[1,2]\n\n IF nSize>nFileMax\n MsgAlert(\"Archivo \"+cFileMime+\" Tamaño \"+LSTR(nSize)+\",Supera el Límite \"+LSTR(nFileMax))\n RETURN {}\n ENDIF\n\n // Determinamos las Páginas que seran empleadas\n\n nPage :=MAX(INT(nSize/nPageSize),1)\n aPages:={}\n\n FOR I=1 TO nPage\n AADD(aPages,{MIN(nPageSize,nSize)})\n NEXT I\n\n aTotal:=ATOTALES(aPages)\n\n // Remanente de la Ultima Página\n IF nSize>aTotal[1]\n AADD(aPages,{nSize-aTotal[1]})\n ENDIF\n\n // Se Extra Pagina por Pagina del Arhivo MIME\n oFile:=TFILE():New(cFileMime)\n\n FOR I=1 TO LEN(aPages)\n cMemo:=oFile:cGetStr( aPages[I,1] )\n AADD(aPag,cMemo)\n nTotal:=nTotal+LEN(cMemo)\n NEXT I\n\n oFile:End()\n\n ferase(cFileMime)\n\n IF !lZip\n ferase(cFileZip)\n ENDIF\n\nRETURN aPag\n\nFUNCTION ATOTALES(aData)\n LOCAL aTotal,I,U\n\n aTotal:=ARRAY(LEN(aData[1]))\n\n Aeval( aTotal,{ |a,n| aTotal[n]:=0 })\n\n FOR I=1 TO LEN(aData)\n\n FOR U=1 TO LEN(aData[I])\n aTotal[U]:=aTotal[U]+aData[I,U]\n NEXT U\n\n NEXT I\n\nRETURN aTotal\n\nPROCE ISTABLAS(cFileDir,cFilePag)\n LOCAL aStruct:={}\n\n IF FILE(cFileDir)\n RETURN\n ENDIF\n\n AADD(aStruct,{\"FILE\", \"C\",250,0})\n AADD(aStruct,{\"SIZE\", \"N\",12 ,0})\n AADD(aStruct,{\"PAGES\",\"N\",3 ,0})\n\n dbcreate(cFileDir, aStruct)\n\n aStruct:={}\n AADD(aStruct,{\"FILE\",\"C\",250,0}) // Archivo\n AADD(aStruct,{\"PAGE\",\"N\",4 ,0}) // Memo\n AADD(aStruct,{\"MEMO\",\"M\",0 ,0}) // Numero de la Pagina, es necesario el Orden para su Recuperación\n\n dbcreate(cFilePag, aStruct)\n\nRETURN\n\nFUNCTION RECUPERAR(cFile)\n LOCAL cFileDir:=\"FILES.DBF\"\n LOCAL cFilePag:=\"FILESPAG.DBF\"\n LOCAL cFileZip :=cFileTemp(\".ZIP\")\n LOCAL cFileMime:=cFileTemp(\".TXT\")\n LOCAL I,cDirOut:=\"filerecover\\\"\n\n LOCAL aPag :={}\n LOCAL oFile\n\n lMkDir(cDirOut)\n\n SELECT A\n USE (cFileDir)\n GO TOP\n LOCATE FOR ALLTRIM(FIELD->FILE)=ALLTRIM(cFile)\n\n IF !FOUND()\n CLOSE ALL\n MsgAlert(\"Archivo \"+cFile+\" no Encontrado en Tabla \"+cFileDir)\n RETURN .F.\n ENDIF\n\n SELECT B\n USE (cFilePag) EXCLU\n GO TOP\n // Remueve el COntenido\n LOCATE FOR ALLTRIM(FIELD->FILE)=ALLTRIM(cFile)\n\n WHILE !EOF() .AND. ALLTRIM(FIELD->FILE)=ALLTRIM(cFile)\n AADD(aPag,ALLTRIM(FIELD->MEMO))\n SKIP\n ENDDO\n\n CLOSE ALL\n\n // Desde DBF hacia MIME\n\n oFile:=TFILE():New(cFileMime)\n AEVAL(aPag,{|a,n| oFile:PutStr(a)})\n oFile:End()\n\n // De MIME a ZIP\n ferase(cFileZip)\n FMimeDec(cFileMime,cFileZip)\n ferase(cFileMime)\n\n HB_UNZIPFILE( cFileZip , {|| nil }, .t., NIL, cDirOut , NIL )\n ferase(cFileZip)\n\n MsgAlert(\"Archivo recuperado en carpeta \"+cDirOut)\n\n IF !cFileExt(cFile)=\"EXE\"\n SHELLEXECUTE(NIL,\"open\",cFile)\n ENDIF\n\nRETURN .T.", "time": "02:23", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "jnavas" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2015-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Juan,\n\ngracias por compartirlo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "05:51", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "Antonio Linares" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2015-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,\nMuchas gracias espero que sea de utilidad, al principio tuve muchas dificultades para implementar en mi aplicacion el registro y recuperación de todo tipo de archivo.", "time": "06:26", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "jnavas" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2017-03-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Juan, Sencillamente una genialidad, es posible ponerse en contacto contigo. Tu correo no funciona.", "time": "05:07", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "Andrés González" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2017-03-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Probably this very difficult approach was necessary during 16-bit clipper days about 20 years back.\nNow all this totally not necessary.\nWe can simply assign file buffer value to the field.\n\nPlease try this sample which stores contents of a large file c:\\fwh\\lib\\fiveh32.lib in the memo field of dbf file.\n\n[code=fw:3d73858d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> cFile    := <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\l</span>ib<span style=\"color: #000000;\">\\f</span>iveh32.lib\"</span> <span style=\"color: #B900B9;\">// file size is 5,480,0032</span><br /><br />   DBCREATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents.dbf\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"FILENAME\"</span>, <span style=\"color: #ff0000;\">'C'</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"CONTENTS\"</span>, <span style=\"color: #ff0000;\">'M'</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">&#41;</span><br />   USE contents EXCLUSIVE<br /><br />   DBAPPEND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   FIELD->FILENAME   := cFile<br />   FIELD->CONTENTS   := MEMOREAD<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />   DBCOMMIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ? LEN<span style=\"color: #000000;\">&#40;</span> field->contents <span style=\"color: #000000;\">&#41;</span>, FILESIZE<span style=\"color: #000000;\">&#40;</span> cfile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// --> 5480032, 5480032</span><br /><br />   CLOSE CONTENTS<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3d73858d]\n\nSame way even for storing large BLOB or TEXT data in MySql, MsSql or other databases, it can be done in one simple step.\n\nMYSQL Example (using FWHMYSQL and can be tested with FWH 17.01):\nPrinciple is the same for other libraries too.\n[code=fw:3d73858d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// MYSQL</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oCn, oRs<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cFile &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\l</span>ib<span style=\"color: #000000;\">\\f</span>iveh32.lib\"</span><br /><br />&nbsp; &nbsp;oCn &nbsp; := FW_DemoDB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Note: It is important to set max_allowed_packet to sufficiently large value eg. 32MB</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> oCn:<span style=\"color: #000000;\">TableExists</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oCn:<span style=\"color: #000000;\">DropTable</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">CreateTable</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"filename\"</span>, <span style=\"color: #ff0000;\">'C'</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"contents\"</span>, <span style=\"color: #ff0000;\">'m'</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">Insert</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span>, <span style=\"color: #ff0000;\">\"filename,contents\"</span>, <span style=\"color: #000000;\">&#123;</span> cFile, MEMOREAD<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oRs &nbsp; := oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;? Len<span style=\"color: #000000;\">&#40;</span> oRs:<span style=\"color: #000000;\">contents</span> <span style=\"color: #000000;\">&#41;</span>, FILESIZE<span style=\"color: #000000;\">&#40;</span> cfile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// --> 5480032, 5480032</span><br /><br />&nbsp; &nbsp;oCn:<span style=\"color: #000000;\">Close</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></div>[/code:3d73858d]", "time": "12:22", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "nageswaragunupudi" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2018-08-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Andrés González\":2pu6dyl4]Juan, Sencillamente una genialidad, es posible ponerse en contacto contigo. Tu correo no funciona.[/quote:2pu6dyl4]\nSaludos\nPuedes escribirme a <!-- e --><a href=\"mailto:jnavas@datapronet.com\">jnavas@datapronet.com</a><!-- e --> o <!-- e --><a href=\"mailto:adaptaprodrive@gmail.com\">adaptaprodrive@gmail.com</a><!-- e -->", "time": "21:27", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "jnavas" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2018-08-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy interesante tu método, sin embargo, te puedo decir que por mi larga experiencia manejando bases de datos con miles de imágenes y videos de todo tipo que he llegado a la conclusión de que es preferible lo siguiente:\n\n1.\tUn campo para almacenar el directorio donde el usuario almacena las imágenes (puede ser absoluto o relativo, recomiendo relativo o todo se vuelve una confusión total si el programa cambia de posición o si entregas un instalable; por ejemplo, con Innosetup <!-- m --><a class=\"postlink\" href=\"http://jrsoftware.org/\">http://jrsoftware.org/</a><!-- m -->). Tipo texto longitud 120.\n2.\tUn campo en el que se almacena el tipo de imagen (BMP, JPG, etc) de longitud 4. Esto es optativo.\n3.\tUn campo tipo texto en el que almacenas el nombre de las imágenes. Yo lo hago así y me da muy buen resultado: Campo tipo texto de longitud 254 en el que el nombre máximo de las imágenes de limita a 8 caracteres sin espacios ni símbolos especiales y cada imagen se separa por un delimitador (yo uso ^). Esto me da la posibilidad de almacenar 254/9 (incluye el nombre del fichero y delimitador = 28 imágenes. Puedes jugar con la longitud permitida para el nombre de la imagen y/o incluir el tipo de imagen con el nombre.\n\nEl resultado es 3 campos de texto de un máximo de 120+4+254=378, sin blobs, memos, ni extras en la base de datos.\n\nEmiliano Llano Díaz", "time": "08:27", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "ellano" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2018-08-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Emiliano\nSaludos,\n\nEn nuestro caso, AdaptaPro es un sistema Open Source creado con HB + FW + MySQL, el proceso de actualización del sistema lo realizamos mediante el alojamiento de sus componentes en AdaptaPro Server, mas las personalizaciones creadas por los clientes. ha sido eficiente rápido y cómodo hacer las actualizaciones del sistema y distribución en los demás PC involucrados con la aplicación. Hemos erradicado la participación del personal técnico para la actualización del sistema.\n\nTambien para otros casos, utilizamos funcionalidades utilizar directorios y archivos donde no es necesario que estén almacenados en la BD", "time": "12:06", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "jnavas" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2021-02-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola y como sacas el archivo para leerlo por decir una fotografía para presentarla en pantalla\n\nestoy usando dbf\n\nSaluditos <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\nHello and how do you get the file to read it by saying a photograph to present it on screen\n\ni am using dbf\n\nGreetings: wink:\n\n\n[quote=\"nageswaragunupudi\":8s7bqba4]Probably this very difficult approach was necessary during 16-bit clipper days about 20 years back.\nNow all this totally not necessary.\nWe can simply assign file buffer value to the field.\n\nPlease try this sample which stores contents of a large file c:\\fwh\\lib\\fiveh32.lib in the memo field of dbf file.\n\n[code=fw:8s7bqba4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> cFile    := <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\l</span>ib<span style=\"color: #000000;\">\\f</span>iveh32.lib\"</span> <span style=\"color: #B900B9;\">// file size is 5,480,0032</span><br /><br />   DBCREATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents.dbf\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"FILENAME\"</span>, <span style=\"color: #ff0000;\">'C'</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"CONTENTS\"</span>, <span style=\"color: #ff0000;\">'M'</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #000000;\">&#41;</span><br />   USE contents EXCLUSIVE<br /><br />   DBAPPEND<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   FIELD->FILENAME   := cFile<br />   FIELD->CONTENTS   := MEMOREAD<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br /><br />   DBCOMMIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ? LEN<span style=\"color: #000000;\">&#40;</span> field->contents <span style=\"color: #000000;\">&#41;</span>, FILESIZE<span style=\"color: #000000;\">&#40;</span> cfile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// --> 5480032, 5480032</span><br /><br />   CLOSE CONTENTS<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:8s7bqba4]\n\nSame way even for storing large BLOB or TEXT data in MySql, MsSql or other databases, it can be done in one simple step.\n\nMYSQL Example (using FWHMYSQL and can be tested with FWH 17.01):\nPrinciple is the same for other libraries too.\n[code=fw:8s7bqba4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #B900B9;\">// MYSQL</span><br />   <span style=\"color: #00C800;\">local</span> oCn, oRs<br />   <span style=\"color: #00C800;\">local</span> cFile    := <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\l</span>ib<span style=\"color: #000000;\">\\f</span>iveh32.lib\"</span><br /><br />   oCn   := FW_DemoDB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">// Note: It is important to set max_allowed_packet to sufficiently large value eg. 32MB</span><br /><br />   <span style=\"color: #00C800;\">if</span> oCn:<span style=\"color: #000000;\">TableExists</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oCn:<span style=\"color: #000000;\">DropTable</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br />   oCn:<span style=\"color: #000000;\">CreateTable</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"filename\"</span>, <span style=\"color: #ff0000;\">'C'</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"contents\"</span>, <span style=\"color: #ff0000;\">'m'</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   oCn:<span style=\"color: #000000;\">Insert</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span>, <span style=\"color: #ff0000;\">\"filename,contents\"</span>, <span style=\"color: #000000;\">&#123;</span> cFile, MEMOREAD<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   oRs   := oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"contents\"</span> <span style=\"color: #000000;\">&#41;</span><br />   ? Len<span style=\"color: #000000;\">&#40;</span> oRs:<span style=\"color: #000000;\">contents</span> <span style=\"color: #000000;\">&#41;</span>, FILESIZE<span style=\"color: #000000;\">&#40;</span> cfile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// --> 5480032, 5480032</span><br /><br />   oCn:<span style=\"color: #000000;\">Close</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></div>[/code:8s7bqba4][/quote:8s7bqba4]", "time": "20:12", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "AIDA" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2021-02-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Saving image to DBF\n\n[code=fw:2hqhkras]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />ALIAS->MEMOFIELDNAME := MEMOREAD<span style=\"color: #000000;\">&#40;</span> cImageFile <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2hqhkras]\n\nDisplay image in window / dialog:\n[code=fw:2hqhkras]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@ r, c XIMAGE oImage SOURCE ALIAS->MEMOFIELDNAME <span style=\"color: #0000ff;\">SIZE</span> w,h <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp;</div>[/code:2hqhkras]", "time": "23:28", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "nageswaragunupudi" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2021-02-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Thank you very much <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: --> \n\nRegards <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\n\n\n\n[quote=\"nageswaragunupudi\":2om80h2s]Saving image to DBF\n\n[code=fw:2om80h2s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />ALIAS->MEMOFIELDNAME := MEMOREAD<span style=\"color: #000000;\">&#40;</span> cImageFile <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2om80h2s]\n\nDisplay image in window / dialog:\n[code=fw:2om80h2s]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@ r, c XIMAGE oImage SOURCE ALIAS->MEMOFIELDNAME <span style=\"color: #0000ff;\">SIZE</span> w,h <span style=\"color: #0000ff;\">OF</span> oDlg<br /> </div>[/code:2om80h2s][/quote:2om80h2s]", "time": "01:09", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "AIDA" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2023-11-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Puedes escribirme a <!-- e --><a href=\"mailto:jnadaptapro@gmail.com\">jnadaptapro@gmail.com</a><!-- e --> +58-4143000518", "time": "16:14", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "jnavas" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2023-11-30", "forum": "FiveWin para Harbour/xHarbour", "text": "jNavas\ntus funciones funcionan de maravilla\ngracias! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:19", "topic": "Almacenar/Recuperar imagenes, binarios en Tablas DBF", "username": "sysctrl2" } ]
Almacenar/Recuperar imagenes, binarios en Tablas DBF
[ { "date": "2016-09-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola un cliente se ha empeñado en que quiere que a una aplicación que le hemos realizado de almacén, ahora le añadamos la ubicación de lo que almacena, pasillo, fila y altura. Hasta ahí todo bien.\n\nPero claro como por pedir no quede me ha pedido que quiere ver en pantalla en visión 3D, giro 360º todo el almacén para ver huecos y donde esta el material. ¿alguien me puede ayudar en esto, como empezar, si es posible? Ah además claro las estanterías pueden ir creciendo, es decir, habiendo más , según necesidades y la pantalla de \"3D\" debe aplicar esos cambios, asi como cuando se llenan los huecos y se vacían.\n\nLa verdad es que apetece hacerlo puesto que nunca hemos desarrollado algo así en mi empresa.\n\n\n\nMuchas Gracias.", "time": "18:27", "topic": "Almacén Virtual 3D.", "username": "Garbi" } ]
Almacén Virtual 3D.
[ { "date": "2016-09-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis,\n\nNo tengo experiencia en lo que comentas pero es un tema que siempre me ha llamado la atención.\n\nAsi que cuenta con mi ayuda <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nHe buscado en google y existen algunos motores 3D que se podrian usar como Unity:\n[url:11pwle75]http&#58;//gamejolt&#46;com/f/do-you-know-any-simple-3d-game-engines/5927[/url:11pwle75]\n\nNo tengo ni idea acerca de lo facil o dificil que pueda ser. Pero por intentarlo que no quede <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:00", "topic": "Almacén Virtual 3D.", "username": "Antonio Linares" } ]
Almacén Virtual 3D.
[ { "date": "2016-10-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis,\n\nLe consulté a mi hijo ya que el es dueño de la empresa Kibo Studios <!-- w --><a class=\"postlink\" href=\"http://www.kibostudios.com\">www.kibostudios.com</a><!-- w --> y recientemente \nhan comprado el Oculus Rif (creo que se escribe asi), las mejores gafas de realidad virtual.\n\nEllos para probar a fondo las gafas, han construido una aplicación usando el motor 3D Unreal, que reproduce \ncompletamente sus oficinas, permitiendo visitar las oficinas virtualmente.\n\nTal vez podais conversar y llegar a un acuerdo para que ellos desarrollen el Almacen virtual", "time": "09:25", "topic": "Almacén Virtual 3D.", "username": "Antonio Linares" } ]
Almacén Virtual 3D.
[ { "date": "2016-10-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias, lo tendré en cuenta.\n\nCuando tenga la reunión con el cliente le comentare el tema.\n\nUn saludo y como siempre muchas gracias", "time": "12:31", "topic": "Almacén Virtual 3D.", "username": "Garbi" } ]
Almacén Virtual 3D.
[ { "date": "2016-10-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Jo Antonio el Lolillo me lo imagino como cuando era chico y fijate ya tiene hasta su propia empresa...\n\nPara José Luís, a veces hay que saber decir [color=#FF0000:2druyhwk]NO[/color:2druyhwk]\n\nSi tienes 18 minutos mira este vídeo [url:2druyhwk]https&#58;//www&#46;youtube&#46;com/watch?v=KXADQ8Axjtk[/url:2druyhwk]", "time": "16:34", "topic": "Almacén Virtual 3D.", "username": "xmanuel" } ]
Almacén Virtual 3D.
[ { "date": "2016-10-05", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"xmanuel\":20plvhej]\na veces hay que saber decir [color=#FF0000:20plvhej]NO[/color:20plvhej]\n[/quote:20plvhej]\n\nSí claro, después de haber consultado en el foro a ver si algún compañero puede echar una mano, o a algún compañero le interesa el proyecto, o conoce de alguien que conoce o le puede interesar.\nEso es justo, justo lo que ha hecho Garbi y es justo, justo para lo que también sirve este foro <!-- s;) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";)\" title=\"Wink\" /><!-- s;) -->", "time": "16:41", "topic": "Almacén Virtual 3D.", "username": "hmpaquito" } ]
Almacén Virtual 3D.