topic
stringlengths
1
63
text
stringlengths
1
577k
Array Question
[quote="Roger Seiler":3l6kagyj]Jeff, here it is if you just want to see the code without having to download the sample.... [/quote:3l6kagyj]Thanks Roger. Today I have used your solution succesfully.Regards.
Array Question
Manuel, glad you found it helpful. - Roger
Array TO XLS ?
hola, existe una funcion como FW_CopyDBF2XL(), pero para ArrayToXLS() ? Gracias!
Array TO XLS ?
A) If the DBF is already open. [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="co...
Array TO XLS ?
Mr Rao, gracias por contestar pero NO quiero pasar una dbf sino un ARRAY a Xls, preguntaba si habia alguna funcion parecida a esa para hacerlo. Saludos.
Array TO XLS ?
Please try any of these two functions: [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;">l...
Array aControls en un Dialogo
Foro buenas tardes,,, Como se hace para conocer el contenido del array donde estan todos los controles de un dialogo Saludos
Array aControls en un Dialogo
recorrelo oDlg:aControls ejemplo [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 sty...
Array and MariaDB
Hi Guys, How I can create a array with a mariadb query result to use in fastreport? Thanks in advance.
Array and MariaDB
Try with this <!-- 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 -->
Array and MariaDB
If you have already opened a Rowset with the query, you may do as advised by Mr. Cristobal in the above post. There is even a simpler way: [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;</sp...
Array and MariaDB
Thank you guys!
Array bidimensional en COmbobox
Amigos.. Cual es la forma correcta de mostrar el siguiente array en un combobox con bitmaps [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> <s...
Array bidimensional en COmbobox
[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="col...
Array content to ADS SQL statement
Hello All! I need help. I have this multiple element aArray variable [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: #...
Array content to ADS SQL statement
[quote:3dqtslic]How can I iterate and translate this to ADS SQL statement to be able to update a table?[/quote:3dqtslic] I am not sure whether I understood your requirement exactly Assuming Element1, Element2 are the Column names of your Table Update Query [code=fw:3dqtslic]<div class="fw" id="{CB}" style="font-fa...
Array content to ADS SQL statement
[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] I am not sure whether I understood your requirement exactly Assuming Element1, Element2 are the Column names of your Table Update Query [code=fw:8ibnteiq]<div class="fw...
Array content to ADS SQL statement
Hi Mr.Frances, Sorry, I am not familiar with the ADS. Regards Anser
Array content to ADS SQL statement
Mr Anser SQL statements are the same in ADS also
Array de Botones. Acción en función de botón pulsado
En un dialogo genero un número de botones (BTNBMP) mediante código que es variable. Aquí dejo el código: [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</sp...
Array de Botones. Acción en función de botón pulsado
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="{SMILIE...
Array de Botones. Acción en función de botón pulsado
[quote="Verhoven":f8o0tm0n]En un dialogo genero un número de botones (BTNBMP) mediante código que es variable. Aquí dejo el código: [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...
Array de Botones. Acción en función de botón pulsado
Muchas Gracias. Ha funcionado correctamente, si bien, no ha sido necesario declarar como estáticas esas dos variables que señalas.
Array de Botones. Acción en función de botón pulsado
[quote="Verhoven":nmbe3b7j]Muchas Gracias. Ha funcionado correctamente, si bien, no ha sido necesario declarar como estáticas esas dos variables que señalas.[/quote:nmbe3b7j] Qué tipo eran esas variables?
Array de Botones. Acción en función de botón pulsado
public
Array de un EXE a otro
Buenas noches, Hay alguna forma de devolver un array como dato al cerrar el exe2 para que otro Exe, el Exe1 lo capture y lo use? Algo así como desde el exe_1 llamo al exe_2 y este exe_2 me devuelve un array que luego usaré. Algo así como esto (que no funciona así): [code=fw:2y6dxpn0]<div class="fw" id="{CB}" style="...
Array de un EXE a otro
Rolando, Un programa cuando se ejecuta solo puede devolver un número. Lo más sencillo sería que crees un fichero en disco con el contenido del array y luego lo leas desde el otro EXE
Array de un EXE a otro
Rolando, Coincido con Antonio. Encontre estas funciones en el baul del recuerdo. [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_, cFilNa...
Array de un EXE a otro
Buen día, Gracias a ambos por responder. Lo 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. Saludos. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
Hola. La function FW_DbfToArray() no permite crear un array desde varias Dbfs idénticas ? Siempre he utilizado, sin problemas, esta función para crear consultas, Browsers, y reportes, utilizando los dos primeros parámetros: cFieldList y bFor. Hoy se me presenta la necesidad de crear el array extrayendo los datos desde...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
Francisco, has intentado... [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...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[quote="cnavarro":wtbz2qwk]Francisco, has intentado... [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;">...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
Lo he intentado asi... y nada... [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 ...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
Cristóbal: Increíble... la respuesta la tienen los gurús de Fivewin. Hice una copia de la función original FW_DbfToArray(), y la coloqué (RENOMBRADA) como una función mas en el programa, y funcionó. Claro está, que no es la solución correcta, pero mientras.. [code=fw:3qhsryzt]<div class="fw" id="{CB}" style="font-fam...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
Has intentado con un aClone ? [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 := <sp...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
Cristóbal. No hay de piña. Probablemente no he interpretado bien tus sugerencias. [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 st...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
There is no problem with the function. It is working as expected here. This is the sample test program. [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...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[quote="nageswaragunupudi":19jz9w9e]There is no problem with the function. It is working as expected here. It has to work.[/quote:19jz9w9e] Rao. Gracias por su confirmación. Ciertamente, he probado mi función ejemplo de manera independiente y funciona sin problemas. No se por qué al integrarla a mi sistema falla, a co...
Array desde varias DBFs usando FW_DbfToArray() ? SOLUCIONADO
[quote:1kykc578]nageswaragunupudi wrote: It has to work.[/quote:1kykc578] Cristóbal y Rao: Muchas gracias por su tiempo. Me disculpo, fué error mío. En el fichero 'MisFunc.prg', que incluyo en cada proyecto, tenía la función FW_DbfToArray() que modifiqué hace muchos años. En ese entonces esta función no tenía el últi...
Array en XBrowse SOLUCIONADO
yo mismo, solucionado oBrw2:aCols[7]:lHide := .T. gracias paco
Array en XBrowse SOLUCIONADO
Hola foro, tengo 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: oBrw2:SetArray(aDatos,,,{1,2,3,4,5,6}) viendo la clase le indico que columnas quiero, pero no funciona falla el programa, oBrw2:SetArray(aDatos) // asi me muestra las ...
Array in alpha order
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". Thanks in advance.
Array in alpha order
A Example : PRIVATE aBARSTYLE[11][2] aBARSTYLE[1] := { " 1", "Gradient" } aBARSTYLE[2] := { " 2", "Brush" } aBARSTYLE[3] := { " 3", "Image" } aBARSTYLE[4] := { " 4", "Color" } aBARSTYLE[5] := { " 5", "Office" } aBARSTYLE[6] := { " 6", "Crystal" } aBARSTYLE[7] := { " 7", "Office 3D" } aBARSTYLE[8] := { " 8", "Crystal ...
Array in alpha order
Nice example. But if anyway we are using XBrowse, we can allow xbrowse to do the sorting instead of ourselves doing it. [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: #00...
Array in alpha order
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.
Array multidimensional - Estructura
Buenas noches, Estoy necesitando conocer la cantidad de elementos de un array (no su len), es decir, saber cuantos tiene por línea. Por ej., tengo el aArray:={ { space(3) , .t. , space(40) } } que tiene tres elementos. ¿Como puedo hacer para saber cuantos elementos tiene sin conocerlo previamente? Gracias. Rolando...
Array multidimensional - Estructura
Rolando len( aArray[ Nro_linea ] )
Array multidimensional - Estructura
Gracias Daniel. Saludos. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Array multidimensional con Combobox
Comapeñros: Tengo un array multidimensional del tipo: anumero:={ {'1','uno'},{'2','dos'},{'3','tres'},{'4','cuatro'} } si pretendo hacer un combobox con los 2º terminos de cada array, ¿ como lo hariais ? ¿ y con los primeros ? Revisé el samples testarr2.prg, pero utiliza TWBROWSE y no me quedó claro. Mil gracias. L...
Array multidimensional con Combobox
Loren, prueba con esto: local anumero:={ {'1','uno'},{'2','dos'},{'3','tres'},{'4','cuatro'} } local cItems:={} local oDlg, oCbx1 local cVar for n:=1 to len(aNumero) aadd(cItems,aNumero[n][2]) //para armar combobox con segundo termino next cVar:=cItems[1] DEFINE DIALOG oDlg RESOURCE "xxxx" REDEFINE COMBOBOX...
Array multidimensional con Combobox
Lorenzo, prueba asi: aProducto := {{},{}} AADD(aProducto[1],"0000000000000") AADD(aProducto[2],"<Todos>") (oDbf)->( DbEval( {|| AADD( aProducto[1] , (oDbf)->Id ) , AADD( aProducto[2], LEFT((oDbf)->Nombre,1)+SUBS(Lower((oDbf)->Nombre),2,44) ) }) ) cCbx := aProducto[2,1] REDEFINE COMBOBOX oCbx VAR cCbx ITEMS aPro...
Array mut grandes
Hola foreros. Me 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....
Array mut grandes
Genial Antolin, Gracias
Array mut grandes
Antolín, Muchas gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Array need @ when use in VALID ?
hi, i want to get Information when logoff from App and use VALID in ACTIVATE [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...
Array need @ when use in VALID ?
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: [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><b...
Array need @ when use in VALID ?
hi Enrico, under Xbase++ and HMG i do not need @ Reference for Array so i was confuse about Fivewin now i have to rewrite all CODE where i have pass Array to use @
Array need @ when use in VALID ?
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.
Array need @ when use in VALID ?
hi Enrico, try this (without @ Reference) [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><b...
Array need @ when use in VALID ?
[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: #0000...
Array need @ when use in VALID ?
hi Enrico, thx for Solution it also work when pass Array per @ Reference in "Original" CODE but 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:?: --> have it to do with VALID <!...
Array need @ when use in VALID ?
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.
Array need @ when use in VALID ?
hi Enrico, i think i know how to use Array but i never have use it with "VALID" so i got [0,0,0,0} on 1st try ... hm ... [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="col...
Array need @ when use in VALID ?
No, it has to do with the normal passing-parameters behavior.
Array of Gets on a scroll panel
Hi, I have five gets placed on a scrolling panel, Initially all of them are disabled. When I enable all of them (except third one) by using the function ChangeWhen, everything is OK. It works well. But when I try to skip on the gets by hitting ENTER or TAB key, I cannot skip the third one which is disabled. Please he...
Array of Gets on a scroll panel
Mr. Rao. Do you have any advise about this problem. Please
Array of Gets on a scroll panel
Birol, If you remove the TScrollPanel then it works as expected it seems as a bug to be fixed with TScrollPanel
Array of Gets on a scroll panel
We'll check.
Array of Gets on a scroll panel
When clause is not handled by ScrollPanel. This is a bug. Fixed in next version.
Array of Gets on a scroll panel
Please replace these two methods in TScrollPanel class [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>...
Array of Gets on a scroll panel
Nages, when 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, for example [img:1mslkpfp]https&#58;//i&#46;postimg&#46;cc/pLVpT51G/colori&#46;jpg[/img:1mslkpfp] if the user shrinks the dialog the...
Array of Gets on a scroll panel
Thank you very much. It works. There is only one problem left. I use SetGetColorFocus() to change get color when focused. The color of the get does not change when I use dtpicker. Thanks in advance. [code=fw:22rn6dwo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</sp...
Array of Gets on a scroll panel
Also, when I click on dtpicker to change the day, month or year manually, it does not focused. It acts as it is readonly. If I use WindowsXP.Manifest, I can solve this problem. It is focused and does not acts as readonly when I click on it. Only highlighting problem left now. When I use tabs to skip amoung the gets, d...
Array of Gets on a scroll panel
SetGetColorFocus() works for Gets only. Not for dtpicker.
Array of Gets on a scroll panel
Ok. But it is not highlighted when focused.
Array of files indirectory and subdirectory's
Hi, I want a list of all files in a directory and the files in all subdirectory. Is 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 I was already thinking to do a [b:1lb4xn8c]dir /s[/b:1lb4xn8c] to a file, and read that, and add it to an a...
Array of files indirectory and subdirectory's
[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;"...
Array of files indirectory and subdirectory's
Thank you for the responce, but I think you misunderstood the question. I want an array of all files in thaa directory AND also all files in the subdirectories
Array of files indirectory and subdirectory's
Try DIRECTORYRECURSE() function. EMG
Array of files indirectory and subdirectory's
With Harbour [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]
Array of files indirectory and subdirectory's
Thank you, Now I remember that I asked this a long time before, and I allways get an empty array. [url:1fttful0]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=22789&p=121743&hilit=DIRECTORYRECURSE#p121743[/url:1fttful0] When I use mu old version of FW with xharbour, I still get an empty array, ...
Array of files indirectory and subdirectory's
[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;"...
Array of gets
Hi ! I want to assign gets in for .. next . Here is a small sample : local oGets[ len( aFlds ) ] ... for nGt := 1 to len( aFlds ) cFld := aFlds[ nGt ] @ nRw, nCol GET oGets[ nGt ] VAR aGets[ nGt ] PICTURE aPct[ nGt ] PIXEL SIZE nSz, nFh VALID n_pas( cAlias, cFld ) next It seems that this isn't working .. <!...
Array of gets
[quote="Rimantas":2zpotmbn] local oGets[ len( aFlds ) ] ... for nGt := 1 to len( aFlds ) cFld := aFlds[ nGt ] @ nRw, nCol GET oGets[ nGt ] VAR aGets[ nGt ] PICTURE aPct[ nGt ] PIXEL SIZE nSz, nFh VALID n_pas( cAlias, cFld ) next It seems that this isn't working .. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad....
Array of gets
[quote="Rimantas":1nnsjamu] 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:1nnsj...
Array of gets
Why not using hash arrays ? They are very usefull for building dialog's , also afterwards when they must be referenced in another get LOCAL oGets := Hash() LOCAL aPct := Hash() for nGt := 1 to len( aFlds ) cFld := aFlds[ nGt ] @ nRw, nCol GET oGets[ cFld ] VAR aGets[ nGt ] PICTURE aPct[ cFld ] PIXEL SIZE nSz, nFh V...
Array of gets
[quote="Frank Demont":39mn9ziv]Why not using hash arrays ? They are very usefull for building dialog's , also afterwards when they must be referenced in another get LOCAL oGets := Hash() LOCAL aPct := Hash() for nGt := 1 to len( aFlds ) cFld := aFlds[ nGt ] @ nRw, nCol GET oGets[ cFld ] VAR aGets[ nGt ] PICTURE aPc...
Array of gets
[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] This isn't working Frank ... <!-- s:-( --><img src="{SMILIES_PATH}/icon_s...
Array of gets
You can try : FOR EACH xKey in hHash:Keys ? xKey, hHash[ xKey ] NEXT or FOR EACH xVal IN hHash:Values ? xVal NEXT
Array of gets
[quote="Frank Demont":2ne9c45j]You can try : FOR EACH xKey in hHash:Keys ? xKey, hHash[ xKey ] NEXT or FOR EACH xVal IN hHash:Values ? xVal NEXT[/quote:2ne9c45j] Tried , the same result ... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> . The first get receive t...
Array of gets
I had a same problem in FW1.9.2 and I solved it by replacing aGets array with vars: for nGt := 1 to len( aFlds ) cFld := aFlds[ nGt ] xVar="x"+strzero(nGt,3) @ nRw, nCol GET oGets[ nGt ] VAR &xVar ..... next I hope that it works in FW for Harbour too. Regards Goran
Array of gets
[quote="Goran Papic":3nv7aum3]I had a same problem in FW1.9.2 and I solved it by replacing aGets array with vars: for nGt := 1 to len( aFlds ) cFld := aFlds[ nGt ] xVar="x"+strzero(nGt,3) @ nRw, nCol GET oGets[ nGt ] VAR &xVar ..... next I hope that it works in FW for Harbour too [/quote:3nv7aum3] Yes Gor...
Array of gets
Here's a way with the detached local method... for i := 1 to Len( aGets ) @i,0 GET oGets[i] VAR aGets[i] oGets[i]:bSetGet := oGets[i]:oGet:Block := ArrayGetBlock(aGets,i) next function ArrayGetBlock(aGets,i) return { | u | If( PCount()==0, aGets[i], aGets[i]:= u ) }
Array of gets
[quote="Marc Boissinot":1aqucv08]Here's a way with the detached local method... for i := 1 to Len( aGets ) @i,0 GET oGets[i] VAR aGets[i] oGets[i]:bSetGet := oGets[i]:oGet:Block := ArrayGetBlock(aGets,i) next function ArrayGetBlock(aGets,i) return { | u | If( PCount()==0, aGets[i], aGets[i]:= u ) ...
Array parameter
How can i pass an array parameter to a vb activex dll? vb code: sub AA(p_RR as Variant) msgbox uBound(p_RR) end Sub I have no problem with string or number. Thanks A.S.K
Array y Bitmaps en MEMO
Hola foreros. Tengo 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...
Array y Bitmaps en MEMO
Antolín, gracias por compartirlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Array y Bitmaps en MEMO
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. Por ejemplo: [code=fw:oim5ws7o]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800...
Array y NIL
Estimados, [code:2laj13z7]function main&#40;&#41; LOCAL aVector&#58;= &#123;&#125; LOCAL nFila&#58;= 0 LOCAL nColumna&#58;= 0 PUBLIC aMatriz&#58;= &#123;&#125; FOR nFila&#58;= 1 TO 10 aVector&#58;=&#123;&#125; ASize&#40; aVector, 4&#41; AAdd&#40; aMatriz, aVector &#41; NEXT nFila...
Array y NIL
Hola, que valor te devuelve ? Oye, no veo el next de nColumna <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> De rapido hice esto, y todos me devuelven NIL : LOCAL nQ, nW, aDmArrX := {} FOR nQ := 1 TO 10 AaDd( aDmArrX, Array(4) ) NEXT FOR nQ := 1 TO Le...