messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-05-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Roger Seiler\":3l6kagyj]Jeff, here it is if you just want to see the code without having to download the sample....\n[/quote:3l6kagyj]\r\n\r\nThanks Roger. Today I have used your solution succesfully.\r\n\r\nRegards.", "time": "20:19", "topic": "Array Question", "username": "Manuel Valdenebro" } ]
Array Question
[ { "date": "2008-05-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Manuel, glad you found it helpful. - Roger", "time": "00:19", "topic": "Array Question", "username": "Roger Seiler" } ]
Array Question
[ { "date": "2020-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "hola, \n\nexiste una funcion como FW_CopyDBF2XL(), pero para ArrayToXLS() ?\n\nGracias!", "time": "21:18", "topic": "Array TO XLS ?", "username": "Ariel" } ]
Array TO XLS ?
[ { "date": "2020-04-16", "forum": "FiveWin para Harbour/xHarbour", "text": "A) If the DBF is already open.\n\n[code=fw:2aq8pjvp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #000000;\">&#40;</span>cAlias<span style=\"color: #000000;\">&#41;</span>-><span style=\"color: #000000;\">&#40;</span> FW_DbfToExcel<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span>cFieldList<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>bFor<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>bWhile<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>nNext<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>nRec<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>lRest<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>cSaveToFileName<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2aq8pjvp]\n\nParameters:\n1. cFieldList (Optional): Can be a commadelimited list of fileds. Eg:\"FIRST,CITY,AGE\"\n Default all fields.\n2 to 6. bFor,bWhile,nNext,nRec,lRest: (Optional) Same functionality as in DBEVAL()\n\n7. cFileName (Optional)\n If nil, data is exported to Excel and displayed. Returns the active sheet (oSheet).\n The user can do further work on the open sheet or programmer can do further work using the oSheet object before saving or discarding.\n\n If a file name is specified with extension of xlsx, pdf or htm/html, the data is saved to excel/pdf/html file,\n\nB) Without opening the DBF or when the DBF is opened in shared mode.\n[code=fw:2aq8pjvp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />FW_CopyDBFTO<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#91;</span>cDestXLS<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">&#91;</span>cSourceDBF<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2aq8pjvp]\n\nParameters:\ncDestXLS: Can be nil or a file name with extension xlsx,pdf,html. Same as parameter 7 in the first function.\ncSourceDBF: Defaults to the file name of the current Alias.\n\nThis function exports the entire DBF, including deleted records.", "time": "14:02", "topic": "Array TO XLS ?", "username": "nageswaragunupudi" } ]
Array TO XLS ?
[ { "date": "2020-04-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Mr Rao,\n\ngracias por contestar pero NO quiero pasar una dbf sino un ARRAY a Xls, preguntaba si habia alguna funcion parecida a esa para hacerlo.\n\nSaludos.", "time": "21:50", "topic": "Array TO XLS ?", "username": "Ariel" } ]
Array TO XLS ?
[ { "date": "2020-04-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Please try any of these two functions:\n[code=fw:guopuqil]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> ArrayToExcel<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oExcel, oBook, oSheet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nRow, nCol, nCols := <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> oExcel := ExcelObj<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Excel not instqalled\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; oBook &nbsp; &nbsp;:= oExcel:<span style=\"color: #000000;\">WorkBooks</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSheet &nbsp; := oBook:<span style=\"color: #000000;\">ActiveSheet</span><br />&nbsp; &nbsp; &nbsp; oExcel:<span style=\"color: #000000;\">ScreenUpdating</span> := .f.<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">for</span> nRow := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">&#40;</span> aData<span style=\"color: #000000;\">&#91;</span> nRow <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"A\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCols := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> nCols, Len<span style=\"color: #000000;\">&#40;</span> aData<span style=\"color: #000000;\">&#91;</span> nRow <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">for</span> nCol := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aData<span style=\"color: #000000;\">&#91;</span> nRow <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSheet:<span style=\"color: #000000;\">Cells</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := aData<span style=\"color: #000000;\">&#91;</span> nRow, nCol <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oSheet:<span style=\"color: #000000;\">Cells</span><span style=\"color: #000000;\">&#40;</span> nRow, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := aData<span style=\"color: #000000;\">&#91;</span> nRow <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">next</span><br /><br />&nbsp; &nbsp; &nbsp; oSheet:<span style=\"color: #000000;\">Range</span><span style=\"color: #000000;\">&#40;</span> oSheet:<span style=\"color: #000000;\">Columns</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, oSheet:<span style=\"color: #000000;\">Columns</span><span style=\"color: #000000;\">&#40;</span> nCols <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">AutoFit</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oExcel:<span style=\"color: #000000;\">ScreenUpdating</span> := .t.<br />&nbsp; &nbsp; &nbsp; oExcel:<span style=\"color: #000000;\">visible</span> := .t.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> ArrayToExcel2<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oExcel, oBook, oSheet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cText, oClp, nCols := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> oExcel := ExcelObj<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Excel not instqalled\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; oBook &nbsp; &nbsp;:= oExcel:<span style=\"color: #000000;\">WorkBooks</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSheet &nbsp; := oBook:<span style=\"color: #000000;\">ActiveSheet</span><br />&nbsp; &nbsp; &nbsp; oExcel:<span style=\"color: #000000;\">ScreenUpdating</span> := .f.<br /><br />&nbsp; &nbsp; &nbsp; aData &nbsp; &nbsp;:= AClone<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; AEval<span style=\"color: #000000;\">&#40;</span> aData, <span style=\"color: #000000;\">&#123;</span> |a| nCols := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> nCols, Len<span style=\"color: #000000;\">&#40;</span> a <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; AEval<span style=\"color: #000000;\">&#40;</span> aData, <span style=\"color: #000000;\">&#123;</span> |a,i| aData<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> := FW_ArrayAsList<span style=\"color: #000000;\">&#40;</span> a, Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cText &nbsp; &nbsp;:= FW_ArrayAsList<span style=\"color: #000000;\">&#40;</span> aData, CRLF <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oClp &nbsp; &nbsp; := TClipboard<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oClp:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSheet:<span style=\"color: #000000;\">Cells</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSheet:<span style=\"color: #000000;\">Paste</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oClp:<span style=\"color: #000000;\">Clear</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oClp:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oSheet:<span style=\"color: #000000;\">Range</span><span style=\"color: #000000;\">&#40;</span> oSheet:<span style=\"color: #000000;\">Columns</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span>, oSheet:<span style=\"color: #000000;\">Columns</span><span style=\"color: #000000;\">&#40;</span> nCols <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">AutoFit</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oExcel:<span style=\"color: #000000;\">ScreenUpdating</span> := .t.<br />&nbsp; &nbsp; &nbsp; oExcel:<span style=\"color: #000000;\">visible</span> := .t.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />&nbsp;</div>[/code:guopuqil]", "time": "14:30", "topic": "Array TO XLS ?", "username": "nageswaragunupudi" } ]
Array TO XLS ?
[ { "date": "2012-01-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Foro buenas tardes,,,\n\nComo se hace para conocer el contenido del array donde estan todos los controles de un dialogo\n\nSaludos", "time": "21:43", "topic": "Array aControls en un Dialogo", "username": "J. Ernesto" } ]
Array aControls en un Dialogo
[ { "date": "2012-02-01", "forum": "FiveWin para Harbour/xHarbour", "text": "recorrelo oDlg:aControls\n\nejemplo\n\n[code=fw:1wwl4e6d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">&#123;</span>| o |MsgInfo<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:1wwl4e6d]", "time": "00:44", "topic": "Array aControls en un Dialogo", "username": "Daniel Garcia-Gil" } ]
Array aControls en un Dialogo
[ { "date": "2019-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Guys,\n\nHow I can create a array with a mariadb query result to use in fastreport?\n\nThanks in advance.", "time": "20:21", "topic": "Array and MariaDB", "username": "wartiaga" } ]
Array and MariaDB
[ { "date": "2019-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Try with this\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=36808#p219600\">viewtopic.php?f=6&t=36808#p219600</a><!-- l -->", "time": "22:33", "topic": "Array and MariaDB", "username": "cnavarro" } ]
Array and MariaDB
[ { "date": "2019-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "If you have already opened a Rowset with the query, you may do as advised by Mr. Cristobal in the above post.\n\nThere is even a simpler way:\n[code=fw:3p22oqx5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aStates := oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"select * from states\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3p22oqx5]\naStates is a 2-dimensional array of the result of the query.", "time": "03:44", "topic": "Array and MariaDB", "username": "nageswaragunupudi" } ]
Array and MariaDB
[ { "date": "2019-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you guys!", "time": "23:36", "topic": "Array and MariaDB", "username": "wartiaga" } ]
Array and MariaDB
[ { "date": "2019-03-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos..\nCual es la forma correcta de mostrar el siguiente array en un combobox con bitmaps\n\n[code=fw:2ey8zuc7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Local</span> aBitMaps := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\0</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Accesorios\"</span> &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\1</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Agendas\"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\3</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Billeteras\"</span> &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\4</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Bolsos dama\"</span> &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\5</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Bolsos Hombre\"</span> &nbsp;<span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\6</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Morrales\"</span> &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\d</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Mensajeros\"</span> &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\f</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Portafolios\"</span> &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\g</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Ruedas\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\h</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Tulas\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\i</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Lona\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\j</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Porta Vestidos\"</span> <span style=\"color: #000000;\">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\z</span>_catalogo<span style=\"color: #000000;\">\\l</span>_.bmp\"</span>, <span style=\"color: #ff0000;\">\"Varios\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:2ey8zuc7]\n\nMuchas gracias por sus ideas.", "time": "21:57", "topic": "Array bidimensional en COmbobox", "username": "J. Ernesto" } ]
Array bidimensional en COmbobox
[ { "date": "2019-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:th1qq188]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />tmp &nbsp; &nbsp; &nbsp; &nbsp; := ArrTranspose<span style=\"color: #000000;\">&#40;</span> aBitmaps <span style=\"color: #000000;\">&#41;</span><br />aBmp &nbsp; &nbsp; &nbsp; := tmp<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />aPrompts &nbsp;:= tmp<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br /><br /><br />@ r,c <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">PROMPTS</span> aPrompts ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.............<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">BITMAPS</span> aBmp<br />&nbsp;</div>[/code:th1qq188]", "time": "05:31", "topic": "Array bidimensional en COmbobox", "username": "nageswaragunupudi" } ]
Array bidimensional en COmbobox
[ { "date": "2010-01-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello All!\n\nI need help.\n\nI have this multiple element aArray variable\n[code=fw:1q30y6kt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aArray := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'element1'</span>, <span style=\"color: #ff0000;\">'value1'</span><span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'elemnet2'</span>, <span style=\"color: #ff0000;\">'value2'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:1q30y6kt]\n\nHow can I iterate and translate this to ADS SQL statement to be able to update a table?\n\n\n\nBest regards,\nFraxzi", "time": "09:47", "topic": "Array content to ADS SQL statement", "username": "fraxzi" } ]
Array content to ADS SQL statement
[ { "date": "2010-01-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3dqtslic]How can I iterate and translate this to ADS SQL statement to be able to update a table?[/quote:3dqtslic]\n\nI am not sure whether I understood your requirement exactly\n\nAssuming Element1, Element2 are the Column names of your Table\n\nUpdate Query \n\n[code=fw:3dqtslic]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">cSql:=<span style=\"color: #ff0000;\">\"UPDATE Table_Name SET \"</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>aArray<span style=\"color: #000000;\">&#41;</span><br />    cSql+=aArray<span style=\"color: #000000;\">&#91;</span>i<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: #ff0000;\">\" = \"</span>+aArray<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">Next</span></div>[/code:3dqtslic]\n\nRegards\nAnser", "time": "10:12", "topic": "Array content to ADS SQL statement", "username": "anserkk" } ]
Array content to ADS SQL statement
[ { "date": "2010-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"anserkk\":8ibnteiq][quote:8ibnteiq]How can I iterate and translate this to ADS SQL statement to be able to update a table?[/quote:8ibnteiq]\n\nI am not sure whether I understood your requirement exactly\n\nAssuming Element1, Element2 are the Column names of your Table\n\nUpdate Query \n\n[code=fw:8ibnteiq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">cSql:=<span style=\"color: #ff0000;\">\"UPDATE Table_Name SET \"</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>aArray<span style=\"color: #000000;\">&#41;</span><br />    cSql+=aArray<span style=\"color: #000000;\">&#91;</span>i<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: #ff0000;\">\" = \"</span>+aArray<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">Next</span></div>[/code:8ibnteiq]\n\nRegards\nAnser[/quote:8ibnteiq]\n\n\nHello Anser,\n\nThe array contains the field (column) or values.\n\nIs there a better approach than iterating AdsExecuteSQLDirect() ?\n\nRegards,\nFraxzi", "time": "01:44", "topic": "Array content to ADS SQL statement", "username": "fraxzi" } ]
Array content to ADS SQL statement
[ { "date": "2010-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Mr.Frances,\n\nSorry, I am not familiar with the ADS.\n\nRegards\nAnser", "time": "05:27", "topic": "Array content to ADS SQL statement", "username": "anserkk" } ]
Array content to ADS SQL statement
[ { "date": "2010-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Anser\n\nSQL statements are the same in ADS also", "time": "07:07", "topic": "Array content to ADS SQL statement", "username": "nageswaragunupudi" } ]
Array content to ADS SQL statement
[ { "date": "2014-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "En un dialogo genero un número de botones (BTNBMP) mediante código que es variable. Aquí dejo el código:\n[code=fw:l7skm7fu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">85</span> <span style=\"color: #0000ff;\">FONT</span> oFontDoble <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Selección posición\"</span>  <br />    <br />    @ <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">VAR</span> cSAy <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFontDobleN<br />    <br />    <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nNumBotones<br />      <span style=\"color: #B900B9;\">// Botón para hacer una nueva venta.</span><br />      <br />      <span style=\"color: #00C800;\">if</span> i <= <span style=\"color: #000000;\">4</span><br />         @ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">+65</span>*<span style=\"color: #000000;\">&#40;</span>i<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtnPosicion<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oDlg;   <span style=\"color: #B900B9;\">//@ y , x</span><br />               <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> nPosicionEs= *******, 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;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">38</span> <span style=\"color: #0000ff;\">pixel</span>; <span style=\"color: #B900B9;\">// Ancho, Alto                                 </span><br />               <span style=\"color: #0000ff;\">UPDATE</span><br />               oBtnPosicion<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span>RutaExe+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span>+ltrim(str(i))+\"</span>.bmp<span style=\"color: #ff0000;\">\")<br />        else<br />         @ 40+52,20+65*(i-1-4) BTNBMP oBtnPosicion[i] OF oDlg;   //@ y , x<br />               ACTION ( nPosicionEs= ******* ,oDlg:end());<br />               SIZE 50,38 pixel; // Ancho, Alto                                 <br />               UPDATE<br />               oBtnPosicion[i]:SetFile(RutaExe+\"</span>\\<span style=\"color: #ff0000;\">\"+ltrim(str(i))+\"</span>.bmp<span style=\"color: #ff0000;\">\")<br />      endif<br />    next i       <br /><br />    @ 150,20 BTNBMP oBtnCancelar OF oDlg MESSAGE 'SALIR' SIZE 90,30; //ancho x alto<br />               ACTION (oDlg:end()) default CANCEL<br />               oBtnCancelar:SetFile(RutaExe+\"</span>\\CANCELAR.bmp<span style=\"color: #ff0000;\">\")<br />               <br /> ACTIVATE DIALOG oDlg CENTER<br /> </span></div>[/code:l7skm7fu]\n\nMe pita bien los botones pero no logro descubrir la manera de averiguar cual es el botón que ha hecho click el usuario. Es decir, en la parte del código donde pongo nPosicionEs= *******, no sé qué debo de poner.", "time": "00:02", "topic": "Array de Botones. Acción en función de botón pulsado", "username": "Verhoven" } ]
Array de Botones. Acción en función de botón pulsado
[ { "date": "2014-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Creo que si usas una Var public que al hacer click en el boton tome el valor de la posicion del boton en el array, podrias saber que boton se presiono, algo como nBoton = aBtn[n] al momento de hacer click antes de ejecutar la accion, es una idea a vuelo de pajaro terrestre, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "02:16", "topic": "Array de Botones. Acción en función de botón pulsado", "username": "joseluisysturiz" } ]
Array de Botones. Acción en función de botón pulsado
[ { "date": "2014-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Verhoven\":f8o0tm0n]En un dialogo genero un número de botones (BTNBMP) mediante código que es variable. Aquí dejo el código:\n[code=fw:f8o0tm0n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">85</span> <span style=\"color: #0000ff;\">FONT</span> oFontDoble <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Selección posición\"</span>  <br />    <br />    @ <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">VAR</span> cSAy <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFontDobleN<br />    <br />    <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nNumBotones<br />      <span style=\"color: #B900B9;\">// Botón para hacer una nueva venta.</span><br />      <br />      <span style=\"color: #00C800;\">if</span> i <= <span style=\"color: #000000;\">4</span><br />         @ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">+65</span>*<span style=\"color: #000000;\">&#40;</span>i<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtnPosicion<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oDlg;   <span style=\"color: #B900B9;\">//@ y , x</span><br />               <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> nPosicionEs= *******, 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;\">SIZE</span> <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">38</span> <span style=\"color: #0000ff;\">pixel</span>; <span style=\"color: #B900B9;\">// Ancho, Alto                                 </span><br />               <span style=\"color: #0000ff;\">UPDATE</span><br />               oBtnPosicion<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span>RutaExe+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span>+ltrim(str(i))+\"</span>.bmp<span style=\"color: #ff0000;\">\")<br />        else<br />         @ 40+52,20+65*(i-1-4) BTNBMP oBtnPosicion[i] OF oDlg;   //@ y , x<br />               ACTION ( nPosicionEs= ******* ,oDlg:end());<br />               SIZE 50,38 pixel; // Ancho, Alto                                 <br />               UPDATE<br />               oBtnPosicion[i]:SetFile(RutaExe+\"</span>\\<span style=\"color: #ff0000;\">\"+ltrim(str(i))+\"</span>.bmp<span style=\"color: #ff0000;\">\")<br />      endif<br />    next i       <br /><br />    @ 150,20 BTNBMP oBtnCancelar OF oDlg MESSAGE 'SALIR' SIZE 90,30; //ancho x alto<br />               ACTION (oDlg:end()) default CANCEL<br />               oBtnCancelar:SetFile(RutaExe+\"</span>\\CANCELAR.bmp<span style=\"color: #ff0000;\">\")<br />               <br /> ACTIVATE DIALOG oDlg CENTER<br /> </span></div>[/code:f8o0tm0n]\n\nMe pita bien los botones pero no logro descubrir la manera de averiguar cual es el botón que ha hecho click el usuario. Es decir, en la parte del código donde pongo nPosicionEs= *******, no sé qué debo de poner.[/quote:f8o0tm0n]\n\nEn el ejemplo que pongo supongo que tanto nPosicionEs como oDlg son variables estáticas\n[code=fw:f8o0tm0n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />.../...<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">85</span> <span style=\"color: #0000ff;\">FONT</span> oFontDoble <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Selección posición\"</span><br />   <span style=\"color: #00C800;\">For</span> x = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">10</span><br />   @ <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">2</span>+<span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span>*<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">BUTTON</span> aBotones<span style=\"color: #000000;\">&#91;</span>x<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Btn\"</span>+StrZero<span style=\"color: #000000;\">&#40;</span>x,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">oF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span> ; <br />      <span style=\"color: #0000ff;\">FONT</span> oFont <br />      aBotones<span style=\"color: #000000;\">&#91;</span> x <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bAction</span> := HazBlock<span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Next</span> x<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTER</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> HazBlock<span style=\"color: #000000;\">&#40;</span> x <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{ || Pon(\"</span> +LTrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\") }\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> Pon<span style=\"color: #000000;\">&#40;</span> x <span style=\"color: #000000;\">&#41;</span><br />nPosicionEs := x<br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> nPosicionEs <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//oDlg:End()     // oDlg -> Variable estática</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br /> </div>[/code:f8o0tm0n]", "time": "04:47", "topic": "Array de Botones. Acción en función de botón pulsado", "username": "cnavarro" } ]
Array de Botones. Acción en función de botón pulsado
[ { "date": "2014-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas Gracias.\nHa funcionado correctamente, si bien, no ha sido necesario declarar como estáticas esas dos variables que señalas.", "time": "06:12", "topic": "Array de Botones. Acción en función de botón pulsado", "username": "Verhoven" } ]
Array de Botones. Acción en función de botón pulsado
[ { "date": "2014-03-29", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Verhoven\":nmbe3b7j]Muchas Gracias.\nHa funcionado correctamente, si bien, no ha sido necesario declarar como estáticas esas dos variables que señalas.[/quote:nmbe3b7j]\n\nQué tipo eran esas variables?", "time": "14:35", "topic": "Array de Botones. Acción en función de botón pulsado", "username": "cnavarro" } ]
Array de Botones. Acción en función de botón pulsado
[ { "date": "2014-03-30", "forum": "FiveWin para Harbour/xHarbour", "text": "public", "time": "17:06", "topic": "Array de Botones. Acción en función de botón pulsado", "username": "Verhoven" } ]
Array de Botones. Acción en función de botón pulsado
[ { "date": "2010-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches,\n\nHay alguna forma de devolver un array como dato al cerrar el exe2 para que otro Exe, el Exe1 lo capture y lo use?\n\nAlgo así como desde el exe_1 llamo al exe_2 y este exe_2 me devuelve un array que luego usaré.\n\nAlgo así como esto (que no funciona así):\n[code=fw:2y6dxpn0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// exe_1.exe</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">local</span> aArray1 := winexec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"exe_2.exe\"</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>aArray<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>+<span style=\"color: #ff0000;\">\"   \"</span>+aArray<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2y6dxpn0]\n\ny\n[code=fw:2y6dxpn0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// exe_2.exe</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main2<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">local</span> aArray2:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"data1\"</span>,<span style=\"color: #ff0000;\">\"data2\"</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">Return</span> aArray2</div>[/code:2y6dxpn0]\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "04:09", "topic": "Array de un EXE a otro", "username": "rolando" } ]
Array de un EXE a otro
[ { "date": "2010-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nUn programa cuando se ejecuta solo puede devolver un número.\n\nLo más sencillo sería que crees un fichero en disco con el contenido del array y luego lo leas desde el otro EXE", "time": "04:34", "topic": "Array de un EXE a otro", "username": "Antonio Linares" } ]
Array de un EXE a otro
[ { "date": "2010-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando,\n\nCoincido con Antonio.\n\nEncontre estas funciones en el baul del recuerdo.\n[code=fw:llxmf0gb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> SaveArr2File<span style=\"color: #000000;\">&#40;</span> A_, cFilNam <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> Success := .F., Handle := Fcreate<span style=\"color: #000000;\">&#40;</span> cFilNam <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">If</span> Handle != <span style=\"color: #000000;\">-1</span><br />    Success := ElementOut<span style=\"color: #000000;\">&#40;</span> Handle, A_ <span style=\"color: #000000;\">&#41;</span><br />    Fclose<span style=\"color: #000000;\">&#40;</span> Handle <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">EndIf</span><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> Success <span style=\"color: #000000;\">&#41;</span><br />*----*<br /><span style=\"color: #00C800;\">Function</span> ElementOut<span style=\"color: #000000;\">&#40;</span> Handle, A_ <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> Success := .T., i, Buffer, Cnt := Len<span style=\"color: #000000;\">&#40;</span> A_ <span style=\"color: #000000;\">&#41;</span><br />Fwrite<span style=\"color: #000000;\">&#40;</span> Handle, I2Bin<span style=\"color: #000000;\">&#40;</span> Cnt <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">For</span> i =1To Cnt<br />    <span style=\"color: #00C800;\">If</span> <span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> .OR. <span style=\"color: #000000;\">&#40;</span> ValType<span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"B\"</span> <span style=\"color: #000000;\">&#41;</span><br />        Buffer := <span style=\"color: #ff0000;\">\"Z\"</span> + I2Bin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"Z\"</span><br />    <span style=\"color: #00C800;\">Else</span><br />        Buffer := ValType<span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br />            <span style=\"color: #00C800;\">Case</span> Buffer = <span style=\"color: #ff0000;\">\"C\"</span><br />                Buffer += I2Bin<span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                Buffer += A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span><br />            <span style=\"color: #00C800;\">Case</span> Buffer = <span style=\"color: #ff0000;\">\"D\"</span><br />                Buffer += I2Bin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br />                Buffer += DtoC<span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">Case</span> Buffer = <span style=\"color: #ff0000;\">\"L\"</span><br />                Buffer += I2Bin<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />                Buffer += <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #ff0000;\">\"T\"</span>, <span style=\"color: #ff0000;\">\"F\"</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">Case</span> Buffer = <span style=\"color: #ff0000;\">\"N\"</span><br />                Buffer += I2Bin<span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> Ltrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                Buffer += Ltrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">OtherWise</span><br />        <span style=\"color: #00C800;\">EndCase</span><br />    <span style=\"color: #00C800;\">EndIf</span><br />    <span style=\"color: #00C800;\">If</span> Fwrite<span style=\"color: #000000;\">&#40;</span> Handle, Buffer, Len<span style=\"color: #000000;\">&#40;</span> Buffer<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != Len<span style=\"color: #000000;\">&#40;</span> Buffer <span style=\"color: #000000;\">&#41;</span><br />        Success := .F.<br />        Exit<br />    <span style=\"color: #00C800;\">EndIf</span><br />    <span style=\"color: #00C800;\">If</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> Buffer,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"A\"</span><br />        ElementOut<span style=\"color: #000000;\">&#40;</span> Handle, A_<span style=\"color: #000000;\">&#91;</span>i<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">EndIf</span><br /><span style=\"color: #00C800;\">Next</span> i<br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> Success <span style=\"color: #000000;\">&#41;</span><br />*----*<br /> </div>[/code:llxmf0gb]\n[code=fw:llxmf0gb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> RestArr2Mem<span style=\"color: #000000;\">&#40;</span> cFilNam <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> Handle, A_ := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">If</span> <span style=\"color: #000000;\">&#40;</span> Handle := Fopen<span style=\"color: #000000;\">&#40;</span> cFilNam <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">-1</span><br />     ElementIn<span style=\"color: #000000;\">&#40;</span> Handle, A_ <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">EndIf</span><br />Fclose<span style=\"color: #000000;\">&#40;</span> Handle <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> A_ <span style=\"color: #000000;\">&#41;</span><br />*----*<br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> ElementIn<span style=\"color: #000000;\">&#40;</span> Handle, A_ <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> Buffer, i, Cnt, iLen, iType<br />Buffer := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">If</span> Fread<span style=\"color: #000000;\">&#40;</span> Handle, @Buffer, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">2</span><br />    Cnt := Bin2w<span style=\"color: #000000;\">&#40;</span> Buffer <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">For</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Cnt<br />        <span style=\"color: #00C800;\">If</span> <span style=\"color: #000000;\">&#40;</span> iType := FreadStr<span style=\"color: #000000;\">&#40;</span> Handle, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"A\"</span><br />            AaDd<span style=\"color: #000000;\">&#40;</span> A_, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />            ElementIn<span style=\"color: #000000;\">&#40;</span> Handle, A_<span style=\"color: #000000;\">&#91;</span> Len<span style=\"color: #000000;\">&#40;</span> A_ <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">Else</span><br />            Buffer := Space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">If</span> Fread<span style=\"color: #000000;\">&#40;</span> Handle, @Buffer, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">2</span><br />                iLen := Bin2w<span style=\"color: #000000;\">&#40;</span> Buffer <span style=\"color: #000000;\">&#41;</span><br />                Buffer := Space<span style=\"color: #000000;\">&#40;</span> iLen <span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #00C800;\">If</span> Fread<span style=\"color: #000000;\">&#40;</span> Handle, @Buffer, iLen <span style=\"color: #000000;\">&#41;</span> = iLen<br />                    <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">Case</span><br />                        <span style=\"color: #00C800;\">Case</span> <span style=\"color: #000000;\">&#40;</span> iType = <span style=\"color: #ff0000;\">\"B\"</span><span style=\"color: #000000;\">&#41;</span> .OR. <span style=\"color: #000000;\">&#40;</span> iType = <span style=\"color: #ff0000;\">\"Z\"</span> <span style=\"color: #000000;\">&#41;</span><br />                            AaDd<span style=\"color: #000000;\">&#40;</span> A_, <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />                        <span style=\"color: #00C800;\">Case</span> iType = <span style=\"color: #ff0000;\">\"C\"</span><br />                            AaDd<span style=\"color: #000000;\">&#40;</span> A_, Buffer <span style=\"color: #000000;\">&#41;</span><br />                        <span style=\"color: #00C800;\">Case</span> iType = <span style=\"color: #ff0000;\">\"D\"</span><br />                            AaDd<span style=\"color: #000000;\">&#40;</span> A_, CtoD<span style=\"color: #000000;\">&#40;</span> Buffer <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                        <span style=\"color: #00C800;\">Case</span> iType = <span style=\"color: #ff0000;\">\"L\"</span><br />                            AaDd<span style=\"color: #000000;\">&#40;</span> A_, <span style=\"color: #000000;\">&#40;</span> Buffer == <span style=\"color: #ff0000;\">\"T\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                        <span style=\"color: #00C800;\">Case</span> iType = <span style=\"color: #ff0000;\">\"N\"</span><br />                            AaDd<span style=\"color: #000000;\">&#40;</span> A_, Val<span style=\"color: #000000;\">&#40;</span> Buffer <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />                    <span style=\"color: #00C800;\">EndCase</span><br />                <span style=\"color: #00C800;\">EndIf</span><br />            <span style=\"color: #00C800;\">EndIf</span><br />        <span style=\"color: #00C800;\">EndIf</span><br />    <span style=\"color: #00C800;\">Next</span> i<br /><span style=\"color: #00C800;\">EndIf</span><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />*----*<br /> </div>[/code:llxmf0gb]\nEspero te sirvan para lo que quieres hacer.\n\nSaludos", "time": "06:07", "topic": "Array de un EXE a otro", "username": "Raymundo Islas M." } ]
Array de un EXE a otro
[ { "date": "2010-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día,\n\nGracias a ambos por responder.\n\nLo implementaré de ese modo. Ya tengo una función para guardar y leer array's. Sólo quería sacarme la duda si se podía hacer de otra manera.\n\nSaludos.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:52", "topic": "Array de un EXE a otro", "username": "rolando" } ]
Array de un EXE a otro
[ { "date": "2021-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola.\nLa function FW_DbfToArray() no permite crear un array desde varias Dbfs idénticas ?\n\nSiempre he utilizado, sin problemas, esta función para crear consultas, Browsers, y reportes, utilizando los dos primeros parámetros: cFieldList y bFor.\nHoy se me presenta la necesidad de crear el array extrayendo los datos desde varias tablas DBF, sin resultados.\nEn el siguiente ejemplo, el browser no muestra nada: ( FW1709 )\n\n[code=fw:168uo6b8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//--------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Cheques-><span style=\"color: #000000;\">&#40;</span>  FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />RecibCaj-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Minutas-><span style=\"color: #000000;\">&#40;</span>  FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Facturas-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />CARTERA-><span style=\"color: #000000;\">&#40;</span>  FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />XBROWSER aData <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ARRAY DESDE VARIAS DBFs\"</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:168uo6b8]\n\nAlguien puede postear un ejemplo de la manera planteada?\nGracias.", "time": "21:28", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco, has intentado...\n[code=fw:4y2hlc40]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />aData         := Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />.../...<br /> </div>[/code:4y2hlc40]", "time": "21:46", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "cnavarro" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"cnavarro\":wtbz2qwk]Francisco, has intentado...\n[code=fw:wtbz2qwk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />aData         := Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />.../...<br /> </div>[/code:wtbz2qwk][/quote:wtbz2qwk]\n\nGracias por contestar, Cristóbal.\nSí, lo he hecho de esa forma... y lo mismo. ( solo trae los datos de la primera tabla dbf )\nSaludos.\n[code=fw:wtbz2qwk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />aData := Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Cheques-><span style=\"color: #000000;\">&#40;</span> &nbsp;FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />RecibCaj-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Minutas-><span style=\"color: #000000;\">&#40;</span> &nbsp;FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Facturas-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />CARTERA-><span style=\"color: #000000;\">&#40;</span> &nbsp;FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />XBROWSER aData <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ARRAY DESDE VARIAS DBFs\"</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:wtbz2qwk]", "time": "22:04", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo he intentado asi... y nada...\n[code=fw:1mzi0boh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , @aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp;-->> @</span><br />Cheques-><span style=\"color: #000000;\">&#40;</span> &nbsp;FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , @aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />RecibCaj-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , @aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />Minutas-><span style=\"color: #000000;\">&#40;</span> &nbsp;FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , @aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />Facturas-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , @aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />CARTERA-><span style=\"color: #000000;\">&#40;</span> &nbsp;FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , @aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />XBROWSER aData <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ARRAY DESDE VARIAS DBFs\"</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1mzi0boh]", "time": "22:22", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Cristóbal:\nIncreíble... la respuesta la tienen los gurús de Fivewin.\n\nHice una copia de la función original FW_DbfToArray(), y la coloqué (RENOMBRADA) como una función mas en el programa, y funcionó.\nClaro está, que no es la solución correcta, pero mientras..\n\n[code=fw:3qhsryzt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />Comprobd-><span style=\"color: #000000;\">&#40;</span> FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Cheques-><span style=\"color: #000000;\">&#40;</span> &nbsp;FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />RecibCaj-><span style=\"color: #000000;\">&#40;</span> FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Minutas-><span style=\"color: #000000;\">&#40;</span> &nbsp;FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />Facturas-><span style=\"color: #000000;\">&#40;</span> FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />CARTERA-><span style=\"color: #000000;\">&#40;</span> &nbsp;FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />XBROWSER aData <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ARRAY DESDE VARIAS DBFs\"</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> cFieldList, bFor, bWhile, nNext, nRec, lRest, aData <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aRet &nbsp;:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, nRecNo := RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, bLine, cList<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// cFieldList : comma delimited list of fields. Eg: \"First,City,Age\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">'A'</span><br />&nbsp; &nbsp; &nbsp; aRet &nbsp; &nbsp; := aData<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cFieldList <span style=\"color: #000000;\">&#41;</span> .or. <span style=\"color: #ff0000;\">'*'</span> $ cFieldList<br />&nbsp; &nbsp; &nbsp; cList &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; &nbsp; AEval<span style=\"color: #000000;\">&#40;</span> DbStruct<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> |a| cList += <span style=\"color: #ff0000;\">\",\"</span> + a<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; cList &nbsp;:= <span style=\"color: #0000ff;\">Substr</span><span style=\"color: #000000;\">&#40;</span> cList, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cFieldList <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFieldList &nbsp;:= cList<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFieldList &nbsp;:= StrTran<span style=\"color: #000000;\">&#40;</span> cFieldList, <span style=\"color: #ff0000;\">'*'</span>, cList <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;bLine &nbsp; &nbsp;:= &<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"{||{\"</span> + cFieldList + <span style=\"color: #ff0000;\">\"}}\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DbEval<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> || AAdd<span style=\"color: #000000;\">&#40;</span> aRet, Eval<span style=\"color: #000000;\">&#40;</span> bLine <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, bFor, bWhile, nNext, nRec, lRest <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DBGOTO<span style=\"color: #000000;\">&#40;</span> nRecNo <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> aRet<br /><br />&nbsp;</div>[/code:3qhsryzt]\nSaludos.", "time": "22:42", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Has intentado con un aClone ?\n[code=fw:2iu43cml]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />aData         := aClone<span style=\"color: #000000;\">&#40;</span> Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />.../...<br /> </div>[/code:2iu43cml]", "time": "22:52", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "cnavarro" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Cristóbal.\nNo hay de piña. Probablemente no he interpretado bien tus sugerencias.\n\n[code=fw:1sqx426d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> DBFs2Array<span style=\"color: #000000;\">&#40;</span>dFechaF<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//Si hago asi, el array se llena  únicamente con los datos de la segunda tabla,</span><br />*aData := AClone<span style=\"color: #000000;\">&#40;</span> Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />*aData := AClone<span style=\"color: #000000;\">&#40;</span> Cheques-><span style=\"color: #000000;\">&#40;</span>  FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//Si lo hago de esta manera, el array se llena únicamente con los datos de la primera tabla,</span><br />*aData := AClone<span style=\"color: #000000;\">&#40;</span> Comprobd-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />*Cheques-><span style=\"color: #000000;\">&#40;</span>  FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #B900B9;\">//Si agrego al programa una copia renombrada de FW_DbfToArray(),  y llamo a esta funcion renombrada, el array se llena con los datos de todas las tablas.</span><br />Comprobd-><span style=\"color: #000000;\">&#40;</span> FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />Cheques-><span style=\"color: #000000;\">&#40;</span>  FWA_DbfToArray<span style=\"color: #000000;\">&#40;</span> , <span style=\"color: #000000;\">&#123;</span>|| field->fechemis<=dFechaF .and. !Deleted<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, , , , , aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br /><br />XBROWSER aData <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ARRAY DESDE VARIAS DBFs\"</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1sqx426d]\n\nSaludos.", "time": "02:57", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "There is no problem with the function. It is working as expected here.\n\nThis is the sample test program.\n\n[code=fw:mqgg5e98]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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 />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aData<br /><br />&nbsp; &nbsp;USE CUSTOMER <span style=\"color: #00C800;\">NEW</span> SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br />&nbsp; &nbsp;USE NOMBRES &nbsp;<span style=\"color: #00C800;\">NEW</span> SHARED VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span><br /><br />&nbsp; &nbsp;aData := CUSTOMER-><span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ALIAS(),RECNO(),TRIM(FIRST),TRIM(STREET)\"</span>, &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> || RECNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aData := NOMBRES-> <span style=\"color: #000000;\">&#40;</span> FW_DbfToArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ALIAS(),RECNO(),TRIM(NOMBRE),TRIM(DIRECCION)\"</span>,<span style=\"color: #000000;\">&#123;</span> || RECNO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">nil</span>, aData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;XBROWSER aData <span style=\"color: #0000ff;\">TITLE</span> FWVERSION + <span style=\"color: #ff0000;\">\" : ARRAY FROM CUSTOMER + NOMBRES\"</span> ;<br />&nbsp; &nbsp; &nbsp; SETUP <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">cHeaders</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ALIAS\"</span>, <span style=\"color: #ff0000;\">\"RECNO\"</span>, <span style=\"color: #ff0000;\">\"NAME\"</span>, <span style=\"color: #ff0000;\">\"ADDRESS\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> SHOW RECID<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:mqgg5e98]\n\n[url=https&#58;//imageshack&#46;com/i/pobpnuh1p:mqgg5e98][img:mqgg5e98]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/bpnuh1&#46;png[/img:mqgg5e98][/url:mqgg5e98]\n\nIt has to work.", "time": "11:50", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "nageswaragunupudi" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":19jz9w9e]There is no problem with the function. It is working as expected here.\nIt has to work.[/quote:19jz9w9e]\n\nRao.\nGracias por su confirmación.\nCiertamente, he probado mi función ejemplo de manera independiente y funciona sin problemas.\nNo se por qué al integrarla a mi sistema falla, a como ya lo he expuesto.\nVoy a hacer mas pruebas, y luego les comunico.\n\nSaludos.", "time": "18:05", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2021-06-02", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:1kykc578]nageswaragunupudi wrote:\nIt has to work.[/quote:1kykc578]\n\nCristóbal y Rao:\nMuchas gracias por su tiempo. Me disculpo, fué error mío.\n\nEn el fichero 'MisFunc.prg', que incluyo en cada proyecto, tenía la función FW_DbfToArray() que modifiqué hace muchos años.\nEn ese entonces esta función no tenía el último parámetro aData, y por supuesto siempre reemplazaba a la actual original.\n\nSaludos.", "time": "18:44", "topic": "Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO", "username": "FranciscoA" } ]
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[ { "date": "2011-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "yo mismo, solucionado\n\noBrw2:aCols[7]:lHide := .T.\n\ngracias\npaco", "time": "20:02", "topic": "Array en XBrowse SOLUCIONADO", "username": "Francisco Horta" } ]
Array en XBrowse SOLUCIONADO
[ { "date": "2011-07-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola foro,\n\ntengo un arreglo con 7 columnas, la columna numero 7 no quiero que se vean en mi xbrowse es un dato logico, como le hago? probe: \noBrw2:SetArray(aDatos,,,{1,2,3,4,5,6}) viendo la clase le indico que columnas quiero, pero no funciona falla el programa, \n\n oBrw2:SetArray(aDatos) // asi me muestra las 7 columnas\n oBrw2:lFooter := .T.\n oBrw2:nFooterHeight := 24\n\n oBrw2:aCols[1]:nWidth := 85 ; oBrw2:aCols[1]:cHeader := \"Fecha\"\n oBrw2:aCols[2]:nWidth := 50 ; oBrw2:aCols[2]:cHeader := \"Cta\"\n oBrw2:aCols[3]:nWidth := 170 ; oBrw2:aCols[3]:cHeader := \"Descripción\"\n oBrw2:aCols[4]:nWidth := 200 ; oBrw2:aCols[4]:cHeader := \"Referencia\"\n oBrw2:aCols[5]:nWidth := 100 ; oBrw2:aCols[5]:cHeader := \"Cargos\" ; oBrw2:aCols[5]:cEditPicture := '99,999,999.99'\n oBrw2:aCols[6]:nWidth := 100 ; oBrw2:aCols[6]:cHeader := \"Abonos\" ; oBrw2:aCols[6]:cEditPicture := '99,999,999.99'\n\n oBrw2:aCols[5]:nFooterType := AGGR_SUM\n oBrw2:aCols[6]:nFooterType := AGGR_SUM\n\n oBrw2:MakeTotals()\n\n oBrw2:CreateFromResource(300)\n\ngracias\npaco", "time": "19:42", "topic": "Array en XBrowse SOLUCIONADO", "username": "Francisco Horta" } ]
Array en XBrowse SOLUCIONADO
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "I have built an array being displayed in an xbrowse. It lists accounts in numberic order (account numbers). I'd like to display the list in alpha order (account title). Element no 1 is \"account no\", element 2 is \"title\".\n\nThanks in advance.", "time": "18:48", "topic": "Array in alpha order", "username": "hag" } ]
Array in alpha order
[ { "date": "2010-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "A Example :\n\nPRIVATE aBARSTYLE[11][2]\n\naBARSTYLE[1] := { \" 1\", \"Gradient\" }\naBARSTYLE[2] := { \" 2\", \"Brush\" }\naBARSTYLE[3] := { \" 3\", \"Image\" }\naBARSTYLE[4] := { \" 4\", \"Color\" }\naBARSTYLE[5] := { \" 5\", \"Office\" }\naBARSTYLE[6] := { \" 6\", \"Crystal\" }\naBARSTYLE[7] := { \" 7\", \"Office 3D\" }\naBARSTYLE[8] := { \" 8\", \"Crystal 3D\" }\naBARSTYLE[9] := { \" 9\", \"Bricks\" }\naBARSTYLE[10] := { \"10\", \"Tiled\" }\naBARSTYLE[11] := { \"11\", \"Borland\" }\n\naBARST := [b:3773g62b][color=#FF0000:3773g62b]ASORT ( aBARSTYLE, , , {|x,y| x[2] < y[2] } ) [/color:3773g62b][/b:3773g62b]\naBARSTYLE := aBARST\n\n[img:3773g62b]http&#58;//www&#46;pflegeplus&#46;com/pictures/arraysort&#46;jpg[/img:3773g62b]\n\nBest regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "19:10", "topic": "Array in alpha order", "username": "ukoenig" } ]
Array in alpha order
[ { "date": "2010-07-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Nice example.\nBut if anyway we are using XBrowse, we can allow xbrowse to do the sorting instead of ourselves doing it.\n[code=fw:2jsgmqds]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, oWnd, oBrw<br /><br />&nbsp; &nbsp;aBARSTYLE<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: #ff0000;\">\" 1\"</span>, <span style=\"color: #ff0000;\">\"Gradient\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<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: #ff0000;\">\" 2\"</span>, <span style=\"color: #ff0000;\">\"Brush\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 3\"</span>, <span style=\"color: #ff0000;\">\"Image\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 4\"</span>, <span style=\"color: #ff0000;\">\"Color\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 5\"</span>, <span style=\"color: #ff0000;\">\"Office\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 6\"</span>, <span style=\"color: #ff0000;\">\"Crystal\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 7\"</span>, <span style=\"color: #ff0000;\">\"Office 3D\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 8\"</span>, <span style=\"color: #ff0000;\">\"Crystal 3D\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 9\"</span>, <span style=\"color: #ff0000;\">\"Bricks\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"10\"</span>, <span style=\"color: #ff0000;\">\"Tiled\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"11\"</span>, <span style=\"color: #ff0000;\">\"Borland\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp;oBrw &nbsp;:= TXBrows<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">&#40;</span> aBarStyle, .t., <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style=\"color: #000000;\">oClient</span> := oBrw<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2jsgmqds]\nAnother way using command syntax\n[code=fw:2jsgmqds]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, oWnd, oBrw<br /><br />&nbsp; &nbsp;aBARSTYLE<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: #ff0000;\">\" 1\"</span>, <span style=\"color: #ff0000;\">\"Gradient\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<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: #ff0000;\">\" 2\"</span>, <span style=\"color: #ff0000;\">\"Brush\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 3\"</span>, <span style=\"color: #ff0000;\">\"Image\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 4\"</span>, <span style=\"color: #ff0000;\">\"Color\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 5\"</span>, <span style=\"color: #ff0000;\">\"Office\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 6\"</span>, <span style=\"color: #ff0000;\">\"Crystal\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 7\"</span>, <span style=\"color: #ff0000;\">\"Office 3D\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 8\"</span>, <span style=\"color: #ff0000;\">\"Crystal 3D\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\" 9\"</span>, <span style=\"color: #ff0000;\">\"Bricks\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"10\"</span>, <span style=\"color: #ff0000;\">\"Tiled\"</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aBARSTYLE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"11\"</span>, <span style=\"color: #ff0000;\">\"Borland\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">AUTOCOLS</span> AUTOSORT ARRAY aBarStyle LINES CELL<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style=\"color: #000000;\">oClient</span> := oBrw<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetOrder</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">Gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2jsgmqds]", "time": "02:56", "topic": "Array in alpha order", "username": "nageswaragunupudi" } ]
Array in alpha order
[ { "date": "2010-07-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you both. Uwes worked great. By the way the array is 200+ lines in the xbrowse and the user can select from 6 different arrays. Works great.", "time": "18:19", "topic": "Array in alpha order", "username": "hag" } ]
Array in alpha order
[ { "date": "2009-03-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas noches,\n\nEstoy necesitando conocer la cantidad de elementos de un array (no su len), es decir, saber cuantos tiene por línea. \n\nPor ej., tengo el aArray:={ { space(3) , .t. , space(40) } } que tiene tres elementos. ¿Como puedo hacer para saber cuantos elementos tiene sin conocerlo previamente?\n\nGracias.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "01:58", "topic": "Array multidimensional - Estructura", "username": "rolando" } ]
Array multidimensional - Estructura
[ { "date": "2009-03-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Rolando\n\nlen( aArray[ Nro_linea ] )", "time": "02:12", "topic": "Array multidimensional - Estructura", "username": "Daniel Garcia-Gil" } ]
Array multidimensional - Estructura
[ { "date": "2009-03-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Daniel.\n\nSaludos.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "02:42", "topic": "Array multidimensional - Estructura", "username": "rolando" } ]
Array multidimensional - Estructura
[ { "date": "2009-11-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Comapeñros:\n\nTengo un array multidimensional del tipo:\n\nanumero:={ {'1','uno'},{'2','dos'},{'3','tres'},{'4','cuatro'} }\n\nsi pretendo hacer un combobox con los 2º terminos de cada array, ¿ como lo hariais ?\n¿ y con los primeros ?\n\nRevisé el samples testarr2.prg, pero utiliza TWBROWSE y no me quedó claro.\nMil gracias.\nLORENZO.", "time": "23:45", "topic": "Array multidimensional con Combobox", "username": "Loren" } ]
Array multidimensional con Combobox
[ { "date": "2009-11-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Loren, prueba con esto:\nlocal anumero:={ {'1','uno'},{'2','dos'},{'3','tres'},{'4','cuatro'} }\nlocal cItems:={}\nlocal oDlg, oCbx1\nlocal cVar\n\nfor n:=1 to len(aNumero)\n aadd(cItems,aNumero[n][2]) //para armar combobox con segundo termino\nnext\n\ncVar:=cItems[1]\n\n DEFINE DIALOG oDlg RESOURCE \"xxxx\"\n REDEFINE COMBOBOX oCbx1 VAR cVar ;\n ID 103 OF oDlg ;\n ITEMS cItems \n\nEspero te sirva. Saludos.", "time": "01:23", "topic": "Array multidimensional con Combobox", "username": "FranciscoA" } ]
Array multidimensional con Combobox
[ { "date": "2009-11-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Lorenzo, prueba asi:\n\naProducto := {{},{}}\nAADD(aProducto[1],\"0000000000000\")\nAADD(aProducto[2],\"<Todos>\")\n(oDbf)->( DbEval( {|| AADD( aProducto[1] , (oDbf)->Id ) , AADD( aProducto[2], LEFT((oDbf)->Nombre,1)+SUBS(Lower((oDbf)->Nombre),2,44) ) }) )\ncCbx := aProducto[2,1]\n\nREDEFINE COMBOBOX oCbx VAR cCbx ITEMS aProducto[2] ID 106 OF oDlg\n\na mi me va bien\nsalu2\nPaco", "time": "01:15", "topic": "Array multidimensional con Combobox", "username": "Francisco Horta" } ]
Array multidimensional con Combobox
[ { "date": "2014-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola foreros.\n\nMe ha surgido la necesidad de guardar un array en un fichero. En principio no hay problemas, lo codifico con ASave() y lo guardo con MEMOWRIT(). Después lo recupero con MEDMOREAD() y reconstruyo el array con AREad(). Hasta ahí todo bien. El problema aparece cuando tengo que codificar un array muy grande. Y es que ASave()y ARead() sólo funcionna con arrays de hasta 256 elementos y elementos de hasta 256 caracteres. Si hay más de 256 elementos (en alguna dimensión) o algún elemento mide más de 256 caracteres, ASave() no funciona porque trabaja con BYTES.\n\nSOLUCIÓN: he implementado dso funciones, prácticamente copiadas de ASave() y ARead() pero que trabajan con WORDS y ahora puedo codificar arrays de hasta 65536 elementos.\n\nEstas son las funciones: \n\n[code=fw:10zzw4ab]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> ADblSave<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> n, cType, uData<br />   <span style=\"color: #00C800;\">LOCAL</span> cInfo := <span style=\"color: #ff0000;\">\"\"</span><br />   *<br />   <span style=\"color: #00C800;\">FOR</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />      cType = ValType<span style=\"color: #000000;\">&#40;</span> aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"A\"</span><br />              cInfo += ADblSave<span style=\"color: #000000;\">&#40;</span> aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"O\"</span><br />              cInfo += aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">otherwise</span><br />              cInfo += <span style=\"color: #000000;\">&#40;</span> cType + D2Bin<span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> uData := cValToChar<span style=\"color: #000000;\">&#40;</span> aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + uData <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">ENDCASE</span><br />   <span style=\"color: #00C800;\">NEXT</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #ff0000;\">\"A\"</span> + D2Bin<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">8</span> + Len<span style=\"color: #000000;\">&#40;</span> cInfo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + D2Bin<span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + cInfo<br />*<br /><span style=\"color: #00C800;\">FUNCTION</span> ADblRead<span style=\"color: #000000;\">&#40;</span> cInfo <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> nPos := <span style=\"color: #000000;\">10</span>, nLen, n<br />   <span style=\"color: #00C800;\">LOCAL</span> aArray, cType, cBuffer<br />   *<br />   nLen   = Bin2d<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cInfo, nPos, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   nPos  += <span style=\"color: #000000;\">8</span><br />   aArray = Array<span style=\"color: #000000;\">&#40;</span> nLen <span style=\"color: #000000;\">&#41;</span><br />   *<br />   <span style=\"color: #00C800;\">FOR</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />      cType = <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cInfo, nPos++, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />      nLen  = Int<span style=\"color: #000000;\">&#40;</span>Bin2d<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cInfo, nPos, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />      nPos += <span style=\"color: #000000;\">8</span><br />      cBuffer = <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> cInfo, nPos, nLen <span style=\"color: #000000;\">&#41;</span><br />      nPos += nLen<br />      <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">CASE</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"A\"</span><br />              aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = ADblRead<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"A\"</span> + D2Bin<span style=\"color: #000000;\">&#40;</span> nLen <span style=\"color: #000000;\">&#41;</span> + cBuffer <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"O\"</span><br />              aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = ORead<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"C\"</span><br />              aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = cBuffer<br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"D\"</span><br />              aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = CToD<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"L\"</span><br />              aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">&#40;</span> cBuffer == <span style=\"color: #ff0000;\">\".T.\"</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">CASE</span> cType == <span style=\"color: #ff0000;\">\"N\"</span><br />              aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> = Val<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">ENDCASE</span><br />   <span style=\"color: #00C800;\">NEXT</span><br /><span style=\"color: #00C800;\">RETURN</span> aArray</div>[/code:10zzw4ab]\n\nEspero que os sirva.\n\nSaludos.", "time": "18:52", "topic": "Array mut grandes", "username": "antolin" } ]
Array mut grandes
[ { "date": "2014-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Genial Antolin, \nGracias", "time": "19:43", "topic": "Array mut grandes", "username": "cnavarro" } ]
Array mut grandes
[ { "date": "2014-09-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Antolín,\n\nMuchas gracias! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "07:00", "topic": "Array mut grandes", "username": "Antonio Linares" } ]
Array mut grandes
[ { "date": "2022-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "hi,\n\ni want to get Information when logoff from App and use VALID in ACTIVATE\n\n[code=fw:1fo19hgy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">LOCAL</span> oFont, aRect, lRet := .T.<br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oMain <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> ... ;<br />      <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> lRet := DoEndProc<span style=\"color: #000000;\">&#40;</span>oMain,@aRect<span style=\"color: #000000;\">&#41;</span>, lRet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">CENTER</span><br /><br />   cRow     := VAR2CHAR<span style=\"color: #000000;\">&#40;</span>aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br />   cCol     := VAR2CHAR<span style=\"color: #000000;\">&#40;</span>aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br />   cHeight  := VAR2CHAR<span style=\"color: #000000;\">&#40;</span>aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br />   cWidth   := VAR2CHAR<span style=\"color: #000000;\">&#40;</span>aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #B900B9;\">// save to INI</span><br />   LoadConfig<span style=\"color: #000000;\">&#40;</span> @cRow, @cCol, @cWidth, @cHeight, ... <span style=\"color: #000000;\">&#41;</span></div>[/code:1fo19hgy]\n\n[code=fw:1fo19hgy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> DoEndProc<span style=\"color: #000000;\">&#40;</span>oMain,aRect<span style=\"color: #000000;\">&#41;</span><br />   aRect := oMain:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   FWLOG aRect<br /><span style=\"color: #00C800;\">RETURN</span> .T.</div>[/code:1fo19hgy]\n\nwhen not use @ Reference i got empty Array <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> while FWLOG show Data ... hm ... <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \n\nis this \"normal\" under Fivewin that i must pass Array per Reference <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "10:17", "topic": "Array need @ when use in VALID ?", "username": "Jimmy" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Array is always passed by reference. If you use @, you are passing a reference to the array variable that allows you to assign it to a new array:\n\n[code=fw:2a1pbrjt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> aArray := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; TEST1<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; ? aArray<br /><br />&nbsp; &nbsp; TEST2<span style=\"color: #000000;\">&#40;</span> @aArray <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; ? aArray<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> TEST1<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; aArray = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"B\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// This is a local variable so the assign is lost at the end of the function</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> TEST2<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; aArray = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"C\"</span>, <span style=\"color: #ff0000;\">\"D\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// This is a variable passed by reference so the assign is made to the original array variable</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2a1pbrjt]", "time": "10:39", "topic": "Array need @ when use in VALID ?", "username": "Enrico Maria Giordano" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Enrico,\n\nunder Xbase++ and HMG i do not need @ Reference for Array so i was confuse about Fivewin\nnow i have to rewrite all CODE where i have pass Array to use @", "time": "10:55", "topic": "Array need @ when use in VALID ?", "username": "Jimmy" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "No, Fivewin has nothing to do with this subject. Normally, you haven't to pass array with @, I never used it. Please show a sample of your problem.", "time": "11:01", "topic": "Array need @ when use in VALID ?", "username": "Enrico Maria Giordano" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Enrico,\n\ntry this (without @ Reference)\n[code=fw:3bfmpdi8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br />PROCEDURE Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oMain, aRect := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#125;</span>, lRet := .T.<br /><span style=\"color: #00C800;\">LOCAL</span> nHeight   := <span style=\"color: #000000;\">1024</span><br /><span style=\"color: #00C800;\">LOCAL</span> nWidth    := <span style=\"color: #000000;\">1280</span><br /><span style=\"color: #00C800;\">LOCAL</span> nTop      := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nLeft     := <span style=\"color: #000000;\">0</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oMain <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> nHeight, nWidth <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"FiveWin TGrid Listview Demo \"</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oMain  <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> lRet := DoEndProco<span style=\"color: #000000;\">&#40;</span>oMain, aRect<span style=\"color: #000000;\">&#41;</span>, lRet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">CENTER</span><br /><br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> hb_valToExp<span style=\"color: #000000;\">&#40;</span>aRect<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> DoEndProco<span style=\"color: #000000;\">&#40;</span>oMain,aRect<span style=\"color: #000000;\">&#41;</span><br />   aRect := oMain:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> .T.</div>[/code:3bfmpdi8]", "time": "11:24", "topic": "Array need @ when use in VALID ?", "username": "Jimmy" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:f8s30vbv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> DoEndProco<span style=\"color: #000000;\">&#40;</span>oMain,aRect<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aRect<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> := oMain:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;aRect<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> := oMain:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;aRect<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> := oMain:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;aRect<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> := oMain:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">RETURN</span> .T.</div>[/code:f8s30vbv]", "time": "11:54", "topic": "Array need @ when use in VALID ?", "username": "Enrico Maria Giordano" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Enrico,\n\nthx for Solution\n\nit also work when pass Array per @ Reference in \"Original\" CODE\n\nbut my Question was why my \"Original\" Sample does not work without @ Reference (or Workaround) <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \nhave it to do with VALID <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "06:37", "topic": "Array need @ when use in VALID ?", "username": "Jimmy" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "The explanation is in my sample on the second message of this thread. If you are asking something else then please show a sample of the problem.", "time": "09:22", "topic": "Array need @ when use in VALID ?", "username": "Enrico Maria Giordano" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Enrico,\n\ni think i know how to use Array but i never have use it with \"VALID\"\n\nso i got [0,0,0,0} on 1st try ... hm ... \n[code=fw:t27lo1da]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> lRet := DoEndProc<span style=\"color: #000000;\">&#40;</span>oMain,aRect<span style=\"color: #000000;\">&#41;</span>, lRet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">CENTER</span></div>[/code:t27lo1da]\nafter change to\n[code=fw:t27lo1da]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> lRet := DoEndProc<span style=\"color: #000000;\">&#40;</span>oMain,@aRect<span style=\"color: #000000;\">&#41;</span>, lRet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">CENTER</span></div>[/code:t27lo1da]\nit work ... hm ...\n\nso my Question is : why 1st Version fail <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> have it to do with VALID <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "10:43", "topic": "Array need @ when use in VALID ?", "username": "Jimmy" } ]
Array need @ when use in VALID ?
[ { "date": "2022-11-06", "forum": "FiveWin for Harbour/xHarbour", "text": "No, it has to do with the normal passing-parameters behavior.", "time": "11:22", "topic": "Array need @ when use in VALID ?", "username": "Enrico Maria Giordano" } ]
Array need @ when use in VALID ?
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi, I have five gets placed on a scrolling panel,\nInitially all of them are disabled.\nWhen I enable all of them (except third one) by using the function ChangeWhen, everything is OK. It works well.\nBut when I try to skip on the gets by hitting ENTER or TAB key, I cannot skip the third one which is disabled.\n\nPlease help.\n\n\n[code=fw:kj3li5cy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"dtpicker.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg, oFolder, aSayGet := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aGets := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-1 :'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-1'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-2 :'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-2'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-3 :'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-3'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-4 :'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-4'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-5 :'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-5'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><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;\">500</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> FOLDEREX oFolder <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&First\"</span>, <span style=\"color: #ff0000;\">\"&Second\"</span>, <span style=\"color: #ff0000;\">\"&Third\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">480</span>, <span style=\"color: #000000;\">380</span> <span style=\"color: #0000ff;\">PIXEL</span><br />   oFolder:<span style=\"color: #000000;\">aEnable</span> := <span style=\"color: #000000;\">&#123;</span> .T., .F., .F. <span style=\"color: #000000;\">&#125;</span><br /><br /><br />   @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">'Next >'</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">13</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oFolder:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> ;<br />            <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oFolder:<span style=\"color: #000000;\">aEnable</span> := <span style=\"color: #000000;\">&#123;</span> .F., .T., .F. <span style=\"color: #000000;\">&#125;</span>, ;<br />                     oFolder:<span style=\"color: #000000;\">SetOption</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                     ChangeWhen<span style=\"color: #000000;\">&#40;</span>@aGets<span style=\"color: #000000;\">&#41;</span>, ;  <span style=\"color: #B900B9;\">//Call the function to change the When clauses to .T.</span><br />                     oDlg:<span style=\"color: #0000ff;\">UpDate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><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: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span>  PlaceControls<span style=\"color: #000000;\">&#40;</span>@oDlg, @oFolder, @aSayGet, @aGets<span style=\"color: #000000;\">&#41;</span> ;<br />            <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span>  aGets<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> PlaceControls<span style=\"color: #000000;\">&#40;</span>oDlg, oFolder, aSayGet, aGets<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oPanel, nI, nRow, aGetObj<span style=\"color: #000000;\">&#91;</span> Len<span style=\"color: #000000;\">&#40;</span>aSayGet<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br /><br />   oPanel := TScrollPanel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">470</span>, oFolder:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oFolder:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">oClient</span> := oPanel<br /><br />   nRow:= <span style=\"color: #000000;\">10</span><br /><br />   <span style=\"color: #00C800;\">FOR</span> nI=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aSayGet<span style=\"color: #000000;\">&#41;</span><br />   <br />      @ nRow,  <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">SAY</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oPanel <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">21</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">RIGHT</span> TRANSPARENT<br /><br />      @ nRow, <span style=\"color: #000000;\">125</span> <span style=\"color: #0000ff;\">GET</span> aGetObj<span style=\"color: #000000;\">&#91;</span>nI<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aSayGet <span style=\"color: #0000ff;\">OF</span> oPanel SUBSCRIPT nI, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SIZE</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">21</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">WHEN</span> .F.  <span style=\"color: #B900B9;\">//Initially disabled</span><br />      <br />      AAdd<span style=\"color: #000000;\">&#40;</span> aGets, aGetObj<span style=\"color: #000000;\">&#91;</span>nI<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />      nRow += <span style=\"color: #000000;\">23</span><br />   <span style=\"color: #00C800;\">NEXT</span><br /><br />   oPanel:<span style=\"color: #000000;\">SetRange</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ChangeWhen<span style=\"color: #000000;\">&#40;</span>aGets<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nI<br /><br />   <span style=\"color: #00C800;\">FOR</span> nI = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">&#40;</span>aGets<span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">IF</span> nI <> <span style=\"color: #000000;\">3</span><br />         aGets<span style=\"color: #000000;\">&#91;</span>nI<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bWhen</span> := <span style=\"color: #000000;\">&#123;</span>|| .T.<span style=\"color: #000000;\">&#125;</span>   <span style=\"color: #B900B9;\">//Change bWhen clause of all gets to .T. except third element</span><br />      <span style=\"color: #00C800;\">ENDIF</span><br />   <span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:kj3li5cy]", "time": "07:08", "topic": "Array of Gets on a scroll panel", "username": "betoncu" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao. Do you have any advise about this problem. Please", "time": "09:02", "topic": "Array of Gets on a scroll panel", "username": "betoncu" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Birol,\n\nIf you remove the TScrollPanel then it works as expected\n\nit seems as a bug to be fixed with TScrollPanel", "time": "11:20", "topic": "Array of Gets on a scroll panel", "username": "Antonio Linares" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "We'll check.", "time": "11:24", "topic": "Array of Gets on a scroll panel", "username": "nageswaragunupudi" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "When clause is not handled by ScrollPanel. This is a bug.\nFixed in next version.", "time": "08:58", "topic": "Array of Gets on a scroll panel", "username": "nageswaragunupudi" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Please replace these two methods in TScrollPanel class\n\n[code=fw:3v2oxbz4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> GoNextCtrl<span style=\"color: #000000;\">&#40;</span> hCtrl <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TScrollPanel<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nAt, hNext<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nNext := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;nAt := AScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> | o | o:<span style=\"color: #000000;\">hWnd</span> == hCtrl <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nAt > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; hNext &nbsp; &nbsp;:= NextDlgTab<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, hCtrl <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nNext &nbsp; &nbsp;:= AScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">hWnd</span> == hNext <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">hCtlFocus</span> := hCtrl<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> nNext < nAt .and. Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoNextCtrl</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetFocus<span style=\"color: #000000;\">&#40;</span> hNext <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GoPrevCtrl<span style=\"color: #000000;\">&#40;</span> hCtrl <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TScrollPanel<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nAt, hPrev<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nPrev := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;nAt := AScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> | o | o:<span style=\"color: #000000;\">hWnd</span> == hCtrl <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nAt > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; hPrev &nbsp; &nbsp;:= NextDlgTab<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span>, hCtrl, .t. <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nPrev &nbsp; &nbsp;:= AScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aControls</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">hWnd</span> == hPrev <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">hCtlFocus</span> := hCtrl<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> nPrev == <span style=\"color: #000000;\">0</span> .or. nPrev > nAt <span style=\"color: #000000;\">&#41;</span> .and. Len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoPrevCtrl</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetFocus<span style=\"color: #000000;\">&#40;</span> hPrev <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:3v2oxbz4]", "time": "09:01", "topic": "Array of Gets on a scroll panel", "username": "nageswaragunupudi" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Nages,\nwhen I use the scrollpanel in a dialog sized by the user (oDlg: bResized), the objects contained in it do not refresh themselves, i.e. they always have their own configuration, \n\nfor example\n\n[img:1mslkpfp]https&#58;//i&#46;postimg&#46;cc/pLVpT51G/colori&#46;jpg[/img:1mslkpfp]\n\nif the user shrinks the dialog the btnbmp do not align according to the size of the dialog and at the same time of the resized control (scrpanel) \n\nthat is, if from the program I gave it the configuration to create files of 6 buttons, when the user resizes the dialog, the rows for 6 buttons will remain\n\nIs it possible to have a horizontal scroll as well?", "time": "09:55", "topic": "Array of Gets on a scroll panel", "username": "Silvio.Falconi" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you very much. It works.\nThere is only one problem left. I use SetGetColorFocus() to change get color when focused.\nThe color of the get does not change when I use dtpicker.\n\nThanks in advance.\n\n\n[code=fw:22rn6dwo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"dtpicker.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg, oFolder, aSayGet := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, aGets := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   SetGetColorFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-1 :'</span>, <span style=\"color: #ff0000;\">'C'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-1'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span>,         <span style=\"color: #ff0000;\">'@!'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-2 :'</span>, <span style=\"color: #ff0000;\">'N'</span>,              <span style=\"color: #000000;\">234.45</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">'999,999.99'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-3 :'</span>, <span style=\"color: #ff0000;\">'D'</span>,              Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">100</span>,          <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-4 :'</span>, <span style=\"color: #ff0000;\">'C'</span>, PadR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'Field-4'</span>, <span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">200</span>,         <span style=\"color: #ff0000;\">'@!'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   AAdd<span style=\"color: #000000;\">&#40;</span>aSayGet, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Field-5 :'</span>, <span style=\"color: #ff0000;\">'N'</span>,                   <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">'999,999.99'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><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;\">500</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> FOLDEREX oFolder <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&First\"</span>, <span style=\"color: #ff0000;\">\"&Second\"</span>, <span style=\"color: #ff0000;\">\"&Third\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">480</span>, <span style=\"color: #000000;\">380</span> <span style=\"color: #0000ff;\">PIXEL</span><br />   oFolder:<span style=\"color: #000000;\">aEnable</span> := <span style=\"color: #000000;\">&#123;</span> .T., .F., .F. <span style=\"color: #000000;\">&#125;</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: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span>  PlaceControls<span style=\"color: #000000;\">&#40;</span>@oDlg, @oFolder, @aSayGet, @aGets<span style=\"color: #000000;\">&#41;</span> ;<br />            <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span>  aGets<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> PlaceControls<span style=\"color: #000000;\">&#40;</span>oDlg, oFolder, aSayGet, aGets<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oPanel, nI, nRow, oGet<br /><br />   oPanel := TScrollPanel<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">470</span>, oFolder:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, .T. <span style=\"color: #000000;\">&#41;</span><br />   oFolder:<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: #000000;\">oClient</span> := oPanel<br /><br />   nRow:= <span style=\"color: #000000;\">10</span><br /><br />   <span style=\"color: #00C800;\">FOR</span> nI = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aSayGet<span style=\"color: #000000;\">&#41;</span><br /><br />      @ nRow, <span style=\"color: #000000;\">005</span> <span style=\"color: #0000ff;\">SAY</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oPanel <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">22</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">RIGHT</span> TRANSPARENT<br /><br />      oGet := CreateGet<span style=\"color: #000000;\">&#40;</span>oPanel, nRow, <span style=\"color: #000000;\">160</span>, aSayGet, nI<span style=\"color: #000000;\">&#41;</span><br /><br />      AAdd<span style=\"color: #000000;\">&#40;</span>aGets, oGet <span style=\"color: #000000;\">&#41;</span><br /><br />      nRow += <span style=\"color: #000000;\">25</span><br />   <span style=\"color: #00C800;\">NEXT</span><br /><br />   oPanel:<span style=\"color: #000000;\">SetRange</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> CreateGet<span style=\"color: #000000;\">&#40;</span>oDlg, nRow, nCol, aSayGet, nI<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oGet<br /><br />   <span style=\"color: #00C800;\">IF</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">'D'</span><br />      @ nRow, nCol DTPICKER oGet <span style=\"color: #0000ff;\">VAR</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">22</span> <span style=\"color: #0000ff;\">PIXEL</span><br />   <span style=\"color: #00C800;\">ELSE</span><br />      @ nRow, nCol <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">22</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PICTURE</span> aSayGet<span style=\"color: #000000;\">&#91;</span>nI, <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> oGet<br /> </div>[/code:22rn6dwo]", "time": "08:10", "topic": "Array of Gets on a scroll panel", "username": "betoncu" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Also, when I click on dtpicker to change the day, month or year manually, it does not focused. It acts as it is readonly.\nIf I use WindowsXP.Manifest, I can solve this problem. It is focused and does not acts as readonly when I click on it.\n\nOnly highlighting problem left now. When I use tabs to skip amoung the gets, dtpicker does not highlighted.", "time": "08:23", "topic": "Array of Gets on a scroll panel", "username": "betoncu" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "SetGetColorFocus() works for Gets only. Not for dtpicker.", "time": "09:10", "topic": "Array of Gets on a scroll panel", "username": "nageswaragunupudi" } ]
Array of Gets on a scroll panel
[ { "date": "2021-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok. But it is not highlighted when focused.", "time": "09:28", "topic": "Array of Gets on a scroll panel", "username": "betoncu" } ]
Array of Gets on a scroll panel
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI want a list of all files in a directory and the files in all subdirectory.\nIs there an easy way to do this, or do I have to het all files an directory of the main one, and then again of all subdirectory's\n\nI was already thinking to do a [b:1lb4xn8c]dir /s[/b:1lb4xn8c] to a file, and read that, and add it to an array.", "time": "16:47", "topic": "Array of files indirectory and subdirectory's", "username": "Marc Vanzegbroeck" } ]
Array of files indirectory and subdirectory's
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:p4sx1yx6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Directry.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> CLR_LGREEN &nbsp; &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#define</span> CLR_LGRAY &nbsp; &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#define</span> CLR_VERMELHO &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#define</span> CLR_AMARELO &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> nBytes, nDisks<br /><span style=\"color: #00C800;\">STATIC</span> lnKeyEscape := .F.<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Backup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// Procedimentos do Backup</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oSetupDlg, nDriveTo := <span style=\"color: #000000;\">1</span>, cDriveTo, nDriveCap := <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lGoOn, aFiles<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, &nbsp;aFileList, x, iDcor, oFont, oBackup<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oBrw, n := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oAceitar, oCancelar, nKey := VK_RETURN<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aDbfs := Directory<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"*.DBF\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Len<span style=\"color: #000000;\">&#40;</span> aDbfs <span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">Nil</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;aSort<span style=\"color: #000000;\">&#40;</span> aDbfs, , , <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16</span> BOLD<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">78</span> &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Browse dos Arquivos DBFs em: \"</span> + ;<br />&nbsp; &nbsp; &nbsp; CurDir<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" Para Copiar\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">STYLE</span> nOR<span style=\"color: #000000;\">&#40;</span> WS_BORDER, WS_THICKFRAME <span style=\"color: #000000;\">&#41;</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; COLORS CLR_BLACK, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">193</span>, <span style=\"color: #000000;\">205</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">ListBox</span> oBrw Fields aDbfs<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; Str<span style=\"color: #000000;\">&#40;</span> aDbfs<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; Dtoc<span style=\"color: #000000;\">&#40;</span> aDbfs<span style=\"color: #000000;\">&#91;</span>n<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: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; aDbfs<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; Headers <span style=\"color: #ff0000;\">\"Nome do Arquivo\"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Tamanho\"</span>, <span style=\"color: #ff0000;\">\"Data\"</span>, <span style=\"color: #ff0000;\">\"Hora\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; FieldSizes <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">60</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HBLUE, CLR_AMARELO &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">100</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bGotop</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || N := <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bGoBottom</span> := <span style=\"color: #000000;\">&#123;</span> || N := Eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bSkip</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | nWant, nOld | nOld := N , N += nWant, ;<br />&nbsp; &nbsp; &nbsp; N := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#40;</span> N, Eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; N - nOld <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bLogicLen</span> := <span style=\"color: #000000;\">&#123;</span> || Len<span style=\"color: #000000;\">&#40;</span> aDbfs <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">cAlias</span> &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"Array\"</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrBackHead</span> &nbsp;:= CLR_LGREEN<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrBackFocus</span> := CLR_HRED<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrForeFocus</span> := CLR_AMARELO<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrForeHead</span> &nbsp;:= CLR_HRED<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nColAct</span> &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nLineStyle</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">lCellStyle</span> &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aJustify</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> .F. , .F. , .F. , .F. <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">lMChange</span> &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">6.6</span>, <span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">Button</span> oBackup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> <span style=\"color: #0000ff;\">Of</span> oDlg &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Action</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">12</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; CANCEL<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:p4sx1yx6]\n\nRegards, saludos.", "time": "17:23", "topic": "Array of files indirectory and subdirectory's", "username": "karinha" } ]
Array of files indirectory and subdirectory's
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you for the responce, but I think you misunderstood the question.\nI want an array of all files in thaa directory AND also all files in the subdirectories", "time": "17:34", "topic": "Array of files indirectory and subdirectory's", "username": "Marc Vanzegbroeck" } ]
Array of files indirectory and subdirectory's
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Try DIRECTORYRECURSE() function.\n\nEMG", "time": "18:43", "topic": "Array of files indirectory and subdirectory's", "username": "Enrico Maria Giordano" } ]
Array of files indirectory and subdirectory's
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "With Harbour\n[code=fw:2p3qn3ro]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />HB_dirScan<span style=\"color: #000000;\">&#40;</span> cPath, cMask, <span style=\"color: #ff0000;\">\"A\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2p3qn3ro]", "time": "18:43", "topic": "Array of files indirectory and subdirectory's", "username": "cnavarro" } ]
Array of files indirectory and subdirectory's
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you,\n\nNow I remember that I asked this a long time before, and I allways get an empty array.\n[url:1fttful0]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=22789&p=121743&hilit=DIRECTORYRECURSE#p121743[/url:1fttful0]\nWhen I use mu old version of FW with xharbour, I still get an empty array, but with my newer version with harbour, it worked <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "18:57", "topic": "Array of files indirectory and subdirectory's", "username": "Marc Vanzegbroeck" } ]
Array of files indirectory and subdirectory's
[ { "date": "2018-11-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:33faerzl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Directry.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> CLR_LGREEN &nbsp; &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#define</span> CLR_LGRAY &nbsp; &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#define</span> CLR_VERMELHO &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">000</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#define</span> CLR_AMARELO &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> nBytes, nDisks<br /><span style=\"color: #00C800;\">STATIC</span> lnKeyEscape := .F.<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Backup<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// Procedimentos do Backup</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oSetupDlg, nDriveTo := <span style=\"color: #000000;\">1</span>, cDriveTo, nDriveCap := <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lGoOn, aFiles<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, &nbsp;aFileList, x, iDcor, oFont, oBackup<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oBrw, n := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oAceitar, oCancelar, nKey := VK_RETURN<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//LOCAL aDbfs := Directory( \"*.DBF\" )</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aDbfs := DirectoryRecurse<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\F</span>WH1701<span style=\"color: #000000;\">\\*</span>.*\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> Len<span style=\"color: #000000;\">&#40;</span> aDbfs <span style=\"color: #000000;\">&#41;</span> < <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">Nil</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;aSort<span style=\"color: #000000;\">&#40;</span> aDbfs, , , <span style=\"color: #000000;\">&#123;</span> |x, y | x<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> < y<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16</span> BOLD<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// 6, 20 TO 25, 78</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">90</span> &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Browse dos Arquivos DBFs em: \"</span> + ;<br />&nbsp; &nbsp; &nbsp; CurDir<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" Para Copiar\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">STYLE</span> nOR<span style=\"color: #000000;\">&#40;</span> WS_BORDER, WS_THICKFRAME <span style=\"color: #000000;\">&#41;</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; COLORS CLR_BLACK, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">193</span>, <span style=\"color: #000000;\">205</span>, <span style=\"color: #000000;\">205</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">ListBox</span> oBrw Fields aDbfs<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; Str<span style=\"color: #000000;\">&#40;</span> aDbfs<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; Dtoc<span style=\"color: #000000;\">&#40;</span> aDbfs<span style=\"color: #000000;\">&#91;</span>n<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: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; aDbfs<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; Headers <span style=\"color: #ff0000;\">\"Nome do Arquivo\"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Tamanho\"</span>, <span style=\"color: #ff0000;\">\"Data\"</span>, <span style=\"color: #ff0000;\">\"Hora\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; FieldSizes <span style=\"color: #000000;\">270</span>, <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">60</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HBLUE, CLR_AMARELO &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #0000ff;\">Size</span> <span style=\"color: #000000;\">260</span>, <span style=\"color: #000000;\">100</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bGotop</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || N := <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bGoBottom</span> := <span style=\"color: #000000;\">&#123;</span> || N := Eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bSkip</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | nWant, nOld | nOld := N , N += nWant, ;<br />&nbsp; &nbsp; &nbsp; N := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">&#40;</span> N, Eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; N - nOld <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bLogicLen</span> := <span style=\"color: #000000;\">&#123;</span> || Len<span style=\"color: #000000;\">&#40;</span> aDbfs <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">cAlias</span> &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"Array\"</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrBackHead</span> &nbsp;:= CLR_LGREEN<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrBackFocus</span> := CLR_HRED<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrForeFocus</span> := CLR_AMARELO<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nClrForeHead</span> &nbsp;:= CLR_HRED<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nColAct</span> &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nLineStyle</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">lCellStyle</span> &nbsp; &nbsp;:= .T.<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aJustify</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> .F. , .F. , .F. , .F. <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">lMChange</span> &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">6.6</span>, <span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">Button</span> oBackup &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Test\"</span> <span style=\"color: #0000ff;\">Of</span> oDlg &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Action</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">12</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; CANCEL<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp;oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:33faerzl]\n\nRegards, saludos.", "time": "19:57", "topic": "Array of files indirectory and subdirectory's", "username": "karinha" } ]
Array of files indirectory and subdirectory's
[ { "date": "2005-10-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi ! \n\n I want to assign gets in for .. next . Here is a small sample :\n\nlocal oGets[ len( aFlds ) ]\n...\nfor nGt := 1 to len( aFlds )\n cFld := aFlds[ nGt ]\n @ nRw, nCol GET oGets[ nGt ] VAR aGets[ nGt ] PICTURE aPct[ nGt ] PIXEL SIZE nSz, nFh VALID n_pas( cAlias, cFld )\nnext\n\n It seems that this isn't working .. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->( I remmember something about deattached locals , but at this moment i can't to find about them . Thanks in advance for any help !\n\n With best regards !", "time": "08:07", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":2zpotmbn]\nlocal oGets[ len( aFlds ) ]\n...\nfor nGt := 1 to len( aFlds )\n cFld := aFlds[ nGt ]\n @ nRw, nCol GET oGets[ nGt ] VAR aGets[ nGt ] PICTURE aPct[ nGt ] PIXEL SIZE nSz, nFh VALID n_pas( cAlias, cFld )\nnext\n\n It seems that this isn't working .. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->( I remmember something about deattached locals , but at this moment i can't to find about them .[/quote:2zpotmbn]\n\n Alreday found samples for that - testarr4.prg and tesloop.prg . But I have an problem with bValid for oGets arrays . My function n_pas( cAlias, cFld ) get an lats cFld value . How it make true ? One solution it can be at oDlg close moment , but I want to do that in oGet stage .\n\n With best regards !", "time": "11:30", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":1nnsjamu]\n Alreday found samples for that - testarr4.prg and tesloop.prg . But I have an problem with bValid for oGets arrays . My function n_pas( cAlias, cFld ) get an lats cFld value . How it make true ? One solution it can be at oDlg close moment , but I want to do that in oGet stage [/quote:1nnsjamu]\n\n All is workig OK . Simply create codeblock \n\n local bCdb := { |oGet, nGt, others params...| get_blc( oGet, nGt, other params ..) }\n\n Now in the loop evaluate codeblock\n\n for nGt := 1 to len( aFlds )\n oGet[ nGt ] = eval( bCdb, oGet[ nGt ], nGt, other params )\n next\n\n mine get_blc function :\n\nstatic function get_blc( oDlg, oGt, cAlias, cFld, nGt, aGet, cPict, nRow, nCol )\n\noGt := TGet():New( nRow, nCol, GenLocalBlock( aGet, nGt ), oDlg,,, cPict,,,,,,, .t. )\n\nif fieldtp( cAlias, cFld ) == \"C\"\n oGt:bValid := { |oGet| n_pas( cAlias, cFld,, oGet:Value(), .t. ) }\nendif\nreturn( oGt )\n\nstatic function GenLocalBlock( aGet, n )\nreturn bSETGET( aGet[ n ] )\n\n Now all is working OK ! With best regards !", "time": "12:49", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Why not using hash arrays ?\nThey are very usefull for building dialog's , also afterwards when they must be referenced in another get\n\nLOCAL oGets := Hash() \nLOCAL aPct := Hash()\nfor nGt := 1 to len( aFlds ) \ncFld := aFlds[ nGt ] \n@ nRw, nCol GET oGets[ cFld ] VAR aGets[ nGt ] PICTURE aPct[ cFld ] PIXEL SIZE nSz, nFh VALID n_pas( cAlias, cFld ) \nnext \n\n\n\nFrank", "time": "15:32", "topic": "Array of gets", "username": "Frank Demont" } ]
Array of gets
[ { "date": "2005-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Frank Demont\":39mn9ziv]Why not using hash arrays ?\nThey are very usefull for building dialog's , also afterwards when they must be referenced in another get\n\nLOCAL oGets := Hash() \nLOCAL aPct := Hash()\nfor nGt := 1 to len( aFlds ) \ncFld := aFlds[ nGt ] \n@ nRw, nCol GET oGets[ cFld ] VAR aGets[ nGt ] PICTURE aPct[ cFld ] PIXEL SIZE nSz, nFh VALID n_pas( cAlias, cFld ) \nnext [/quote:39mn9ziv]\n\n Frank , very good sample ! I'm using hash , but in that way - no so much brains <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> . Many thanks to you !\n\n With best regards !", "time": "06:00", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":3r0l928s] Frank , very good sample ! I'm using hash , but in that way - no so much brains <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> . Many thanks to you ![/quote:3r0l928s]\n\n This isn't working Frank ... <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> . I tried that . Simply add MsgInfo() to valid clause \n @ CRow( 0 ), nCl GET oGets[ cFld ] VAR aGets[ cFld ] PICTURE aPct[ cFld ] PIXEL VALID ( MsgInfo( aGets[ cFld ] + \" ; \" + cFld ), ;\n n_pas( ::aAlias[ ::nFld ], cFld,, aGets[ cFld ], .t. ) )\n\n I did hash'es all clauses : oGets , aPct, aGets . But validation will receive only the last cFld . Have you ideas , how to nake to work this ?\n\n With best regards !", "time": "08:41", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "You can try :\n\n\nFOR EACH xKey in hHash:Keys\n ? xKey, hHash[ xKey ]\nNEXT\n\nor\n\nFOR EACH xVal IN hHash:Values\n ? xVal\nNEXT", "time": "09:19", "topic": "Array of gets", "username": "Frank Demont" } ]
Array of gets
[ { "date": "2005-10-27", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Frank Demont\":2ne9c45j]You can try :\n\nFOR EACH xKey in hHash:Keys\n ? xKey, hHash[ xKey ]\nNEXT\n\nor\n\nFOR EACH xVal IN hHash:Values\n ? xVal\nNEXT[/quote:2ne9c45j]\n\n Tried , the same result ... <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> . The first get receive the last get's parameter .", "time": "10:04", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "I had a same problem in FW1.9.2 and I solved it by replacing aGets array with vars:\n\nfor nGt := 1 to len( aFlds ) \n cFld := aFlds[ nGt ] \n xVar=\"x\"+strzero(nGt,3)\n @ nRw, nCol GET oGets[ nGt ] VAR &xVar .....\nnext\n\nI hope that it works in FW for Harbour too.\n\nRegards\n\nGoran", "time": "10:27", "topic": "Array of gets", "username": "Goran Papic" } ]
Array of gets
[ { "date": "2005-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Goran Papic\":3nv7aum3]I had a same problem in FW1.9.2 and I solved it by replacing aGets array with vars:\n\nfor nGt := 1 to len( aFlds ) \n cFld := aFlds[ nGt ] \n xVar=\"x\"+strzero(nGt,3)\n @ nRw, nCol GET oGets[ nGt ] VAR &xVar .....\nnext\n\nI hope that it works in FW for Harbour too [/quote:3nv7aum3]\n\n Yes Goran , your sample is working in that way , I know . I used in early something similar . Simply it's interesting to do in others ways , like Frank's sample with hashes <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> .\n\n With best regards !", "time": "13:59", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2005-10-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Here's a way with the detached local method...\n\n for i := 1 to Len( aGets )\n @i,0 GET oGets[i] VAR aGets[i]\n oGets[i]:bSetGet := oGets[i]:oGet:Block := ArrayGetBlock(aGets,i)\n next\n\n\n function ArrayGetBlock(aGets,i)\n\n return { | u | If( PCount()==0, aGets[i], aGets[i]:= u ) }", "time": "14:29", "topic": "Array of gets", "username": "Marc Boissinot" } ]
Array of gets
[ { "date": "2005-10-31", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marc Boissinot\":1aqucv08]Here's a way with the detached local method...\n\n for i := 1 to Len( aGets )\n @i,0 GET oGets[i] VAR aGets[i]\n oGets[i]:bSetGet := oGets[i]:oGet:Block := ArrayGetBlock(aGets,i)\n next\n\n\n function ArrayGetBlock(aGets,i)\n\n return { | u | If( PCount()==0, aGets[i], aGets[i]:= u ) }[/quote:1aqucv08]\n \n Hello Marc !\n\n I'm using that \"deatached\" . Also I'm using codeblock to check validation of my vars . Evaluting of that works fine for array of gets . From codeblock it's direction to deatached function .\n\n With best regards ! Rimantas .", "time": "18:43", "topic": "Array of gets", "username": "Rimantas" } ]
Array of gets
[ { "date": "2006-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "How can i pass an array parameter to a vb activex dll?\n\nvb code:\n\nsub AA(p_RR as Variant)\nmsgbox uBound(p_RR)\nend Sub\n\n\n\nI have no problem with string or number. \n\nThanks\nA.S.K", "time": "16:12", "topic": "Array parameter", "username": "ask" } ]
Array parameter
[ { "date": "2013-10-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola foreros.\n\nTengo la constumbre de guardar Arrays en campos MEMO con ASave( aVar ), que después recupero con ARead(). A veces tambien guardo pequeños bitmaps cargados con MEMOREAD(). El problema me surgió a la hora de leer dichos campos MEMO. Para saber si guardo un array o un bitmap en formato texto he implementado estas pequeñas funciones en Borland C:\n\nLa función IsArray( cTexto ) devuelve 1 si cTexto representa una Array vacio, 2 si es un Array NO vacio y 0 en los demás casos.\nLa función IsBmp( cTexto ) devuelve 1 si cTexto representa un Bitmap o 0 si no.\n[code=fw:2oesm7bs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISARRAY <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">// IsArray( cText)</span><br />   <span style=\"color: #000000;\">&#123;</span><br />   LPSTR cTxt = _parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> ;<br />   int nRet = <span style=\"color: #000000;\">0</span> ;<br /><br />   <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> cTxt && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">'A'</span> && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">// POSIBLE ARRAY</span><br />      <span style=\"color: #000000;\">&#123;</span><br />      <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #000000;\">0</span> && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">// ARRAY VACIO -> {}</span><br />         <span style=\"color: #000000;\">&#123;</span><br />         nRet = <span style=\"color: #000000;\">1</span> ;<br />         <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #00C800;\">else</span> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>    <span style=\"color: #B900B9;\">// ARRAY CON CONTENIDO -> {1,2,...}</span><br />         <span style=\"color: #000000;\">&#123;</span><br />         nRet = <span style=\"color: #000000;\">2</span> ;<br />         <span style=\"color: #000000;\">&#125;</span><br />      <span style=\"color: #000000;\">&#125;</span><br /><br />   hb_retni<span style=\"color: #000000;\">&#40;</span> nRet <span style=\"color: #000000;\">&#41;</span> ;<br />   <span style=\"color: #000000;\">&#125;</span></div>[/code:2oesm7bs]\n\n[code=fw:2oesm7bs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">HB_FUNC</span><span style=\"color: #000000;\">&#40;</span> ISBMP <span style=\"color: #000000;\">&#41;</span>   / IsBmp<span style=\"color: #000000;\">&#40;</span> cTxt <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #000000;\">&#123;</span><br />   LPSTR cTxt = _parc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> ;<br />   int nRet = <span style=\"color: #000000;\">0</span> ;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> cTxt && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">'B'</span> && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #ff0000;\">'M'</span> && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #000000;\">0</span> && cTxt<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">14</span><span style=\"color: #000000;\">&#93;</span> == <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #000000;\">&#123;</span><br />      nRet = <span style=\"color: #000000;\">1</span> ;<br />      <span style=\"color: #000000;\">&#125;</span><br /><br />   hb_retni<span style=\"color: #000000;\">&#40;</span> nRet <span style=\"color: #000000;\">&#41;</span> ;<br />   <span style=\"color: #000000;\">&#125;</span></div>[/code:2oesm7bs]\n\nEs posible que alguna función confunda algún tipo de datos con un array o un bitmap formato texto, pero hasta ahora esta función no se ha equivocado. \n\nEspero os sea de utilidad.\n\nSaludos.", "time": "15:36", "topic": "Array y Bitmaps en MEMO", "username": "antolin" } ]
Array y Bitmaps en MEMO
[ { "date": "2013-10-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Antolín,\n\ngracias por compartirlo <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "09:07", "topic": "Array y Bitmaps en MEMO", "username": "Antonio Linares" } ]
Array y Bitmaps en MEMO
[ { "date": "2013-10-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Por cierto, si vuestro array o bitmap en formato caracter es muy largo, no es necesario mandarlo entero a su respestiva funcion (que puede enlentecer el programa) con mandar Left(xDat,25) es suficiente.\n\nPor ejemplo:\n[code=fw:oim5ws7o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">IF</span> IsArray<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">&#40;</span> Filed->Memo, <span style=\"color: #000000;\">25</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />   aDat := ARead<span style=\"color: #000000;\">&#40;</span> Filed->Memo <span style=\"color: #000000;\">&#41;</span><br />ENDF</div>[/code:oim5ws7o]\nUn saludo.", "time": "11:47", "topic": "Array y Bitmaps en MEMO", "username": "antolin" } ]
Array y Bitmaps en MEMO
[ { "date": "2006-05-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados, \n\n[code:2laj13z7]function main&#40;&#41;\n LOCAL aVector&#58;= &#123;&#125;\n LOCAL nFila&#58;= 0\n LOCAL nColumna&#58;= 0\n\n PUBLIC aMatriz&#58;= &#123;&#125;\n\n FOR nFila&#58;= 1 TO 10\n aVector&#58;=&#123;&#125;\n ASize&#40; aVector, 4&#41;\n AAdd&#40; aMatriz, aVector &#41;\n NEXT nFila\n\n for nFila&#58;= 1 to 10\n\n for nColumna&#58;= 1 to 4\n if aMatriz&#91; nFila &#93;&#91; nColumna &#93; == NIL\n ? \"es nil\", nFila, nColumna // Renglon A\n else\n ? \"Fila\", nFila, ;\n \"Columna\", nColumna,;\n \"valor\", aMatriz&#91; nFila &#93;&#91; nColumna &#93;\n endif\n next nFila\n\nreturn &#40; nil &#41;[/code:2laj13z7]\nBueno, aca va mi pregunta, porque el código de arriba, cuando nFila = 1 y nColumna = 1 el valor el NIL ( renglon A ) y en cambio todos los demas valores son diferentes a nil?\n\nGracias.", "time": "13:46", "topic": "Array y NIL", "username": "goosfancito" } ]
Array y NIL
[ { "date": "2006-05-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, que valor te devuelve ?\n\nOye, no veo el next de nColumna <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nDe rapido hice esto, y todos me devuelven NIL :\n\nLOCAL nQ, nW, aDmArrX := {}\n\nFOR nQ := 1 TO 10\n\tAaDd( aDmArrX, Array(4) )\nNEXT\nFOR nQ := 1 TO Len( aDmArrX )\n\tFOR nW := 1 TO Len( aDmArrX[nQ] )\n\t\t? IIF( aDmArrX[nQ,nW] == NIL, \"es nil\", \"no es nil\" )\n\tNEXT\nNEXT\n\n\nSaludos", "time": "15:06", "topic": "Array y NIL", "username": "Raymundo Islas M." } ]
Array y NIL