topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
de Mysql a PostgreSQL o Oracle via ADO ( Solucionado ) | [quote="Adolfo":3ef2jqg4]Aqui tienen 2 OLE DB provider para postgress
[/quote:3ef2jqg4]
Gracias Adolfo. ¿Puedes usar Postgress como local, es decir, en un solo ordenador, o es necesario que funcione independiente en un servidor? |
de Mysql a PostgreSQL o Oracle via ADO ( Solucionado ) | Si...
Yo lo probe en mi Pc sin problemas.
Desde Chile
Adolfo |
de Mysql a PostgreSQL o Oracle via ADO ( Solucionado ) | Adolfo, gracias de nuevo.
¿De que ciudad eres de Chile? |
de Mysql a PostgreSQL o Oracle via ADO ( Solucionado ) | Manuel
Soy de CHILLAN...
Tierra de heroes y artistas, de las sustancias ( una golisina ) y de las longanizas ( un embutido de carne de cerdo muy famoso aqui en chile )
Con las termas de Chillan a solo pocos kilometros
<!-- m --><a class="postlink" href="http://www.termaschillan.cl/hs/esp/inv_tc_wallpaper.aspx">http://www.termaschillan.cl/hs/esp/inv_ ... paper.aspx</a><!-- m -->
Algo mas de mi ciudad...
<!-- m --><a class="postlink" href="http://es.wikipedia.org/wiki/Chill%C3%A1n">http://es.wikipedia.org/wiki/Chill%C3%A1n</a><!-- m -->
Desde Chile...
Adolfo |
de Vertical a Horizontal treport | Saludos
Inicio con el uso de la clase treport
Tengo la duda de como cambiar tanto los tamaños de la hoja (impresion) como la orientacion de la hoja, de vertical a horizontal.
Resvisando el report.prg, me encuentro esto solamente:
::oDevice:SetLandScape()
Gracias. |
de Vertical a Horizontal treport | PrnSetSize(2160,2790) //media hoja=2160 x 1395, carta=2160 x 2790
PrnLandScape() //horizontal
REPORT oReport;
TITLE "XXXXXXX";
PREVIEW
COLUMN TITLE "FECHA","DOCUMENT";
DATA FIELD->FECHA;
CENTERED;
SIZE 8;
GRID 1
***
***
END REPORT
ACTIVATE REPORT oReport ;
ON STARTGROUP oReport:NewLine()
PrnSetSize(2160,2790) //retorna tam carta
PrnPortrait() //vertical
RETURN NIL |
de dbf-ntx a adt-adi | Hola a todos!!
Estoy usando ADS hace rato con DBF y NTX pero me intereza ahora pasar a ADT-ADI, [b:1qn2eb4z]que tengo que cambiar en mi codigo??[/b:1qn2eb4z]
De esta manera estoy usando ADS:
[code:1qn2eb4z]RddRegister("ADS",1)
RddSetDefault("ADS")
SET SERVER LOCAL
SET FILETYPE TO NTX[/code:1qn2eb4z]
y de este modo uso una dbf:
[code:1qn2eb4z]USE IVA INDEX IVA1,IVA2 NEW SHARED
DATABASE oDbfIvas
oDbfIvas:bEoF=nil
oDbfIvas:GoTop()[/code:1qn2eb4z]
Gracias <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> !
Natalia. |
de dbf-ntx a adt-adi | NO TIENES QUE CAMBIAR NADA !!!!!
Eso es lo maravilloso de ADS, la migracion es transparente, solo tienes que cambiar el tipo de archivo:
REQUEST ADS
RddSetDefault("ADS")
AdsSetServerType(7) // cualquier servidor
AdsSetFileType(3) // ADT / ADI
Y listo todo lo demas funciona tal como funciona con los DBF normales, no debes hacer nada mas en tu codigo.
Obviamente debes convertir los DBFs actuales a ADT, usa este programita:
[code:3hns2y09]FUNCTION Main()
LOCAL aDbfs := DIRECTORY(".\*.dbf")
LOCAL nDbfs
LOCAL aEstructura
LOCAL cNomAdt, cNomAdi, cNomAdm
LOCAL nReng := 0
REQUEST ADS,DBFNTX,DBFDBT
RDDSETDEFAULT("ADS")
AdsSetServerType(1)
AdsSetFileType(3)
CLS
FOR nDbfs := 1 TO LEN(aDbfs)
/* obtenemos el nombre del DBF y le agregamos la extension ADT */
cNomAdt := LEFT(aDbfs[nDbfs,1],AT(".",aDbfs[nDbfs,1]))+"ADT"
cNomAdi := LEFT(aDbfs[nDbfs,1],AT(".",aDbfs[nDbfs,1]))+"ADI"
cNomAdm := LEFT(aDbfs[nDbfs,1],AT(".",aDbfs[nDbfs,1]))+"ADM"
@ nReng, 1 SAY cNomAdt
/* abrimos el DBF usando el RDD DBFNTX*/
USE (aDbfs[nDbfs,1]) NEW ALIAS TempDbf VIA "DBFNTX"
/* obternemos la estructura del DBF */
aEstructura := TempDbf->(DBSTRUCT())
/* verficamos si existe el archivo ADT, su indice ADI y su memo ADM, si existen los borramos*/
IF FILE (".\"+cNomAdt)
FERASE(".\"+cNomAdt)
ENDIF
IF FILE (cNomAdi)
FERASE(".\"+cNomAdi)
ENDIF
IF FILE (cNomAdm)
FERASE(".\"+cNomAdm)
ENDIF
/* creamos una nueva estructura ADT a partir de la estructura DBF previamente obtenida */
/* abrimos la nueva estructura con el el alias "TempAdt" */
DBCREATE(cNomAdt,aEstructura,"ADS",.T.,"TempAdt")
/* al primer registro del DBF */
TempDbf->(DBGOTOP())
/* vamos a recorrer todo el DBF para cargar los datos al ADT */
DO WHILE ! TempDbf->(EOF())
/* añadimos un registro al ADT */
TempADT->(DBAPPEND())
/* agregamos la informacion de los registros campo por campo*/
FOR nCampos := 1 TO TempDbf->(FCOUNT())
TempAdt->(FIELDPUT(nCampos,TempDbf->(FIELDGET(nCampos))))
NEXT
TempDbf->(DBSKIP())
ENDDO
/*cerramos todo */
DBCLOSEALL()
nreng++
NEXT
RETURN (.T.)
[/code:3hns2y09]
AAHHH ! y no olvides que los indices ADI funcionan con la filosofia de los CDX por lo que deberas cambiar la forma de indexar para usar TAGs |
de dbf-ntx a adt-adi | Mil gracias Rene!!!
Lo estoy probando y creo que funciona, cualquier cosa te vuelvo a consultar.
Gracias!! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
de dbf-ntx a adt-adi | Rene tengo una pregunta ya que anduvo hasta ahora lo que me pasaste. Hay alguna manera de indicarle que ponga los indices todos juntos en un archivo?
Reindexo de esta manera:
[code:33nyca3n]USE Iva NEW
oDlg:cTitle("Procesando IVA.ADT")
oMeter:nTotal=RecCount()
PACK
ERASE Iva1.Cdx
ERASE Iva2.Cdx
oText:SetText("Creando IVA1.CDX")
INDEX ON CODIGO TO Iva1;
EVAL(oMeter:Set(RecNo()),SysRefresh(),!lEnd )
oText:SetText("Creando IVA2.CDX")
INDEX ON DESCRIP TO Iva2;
EVAL(oMeter:Set(RecNo()),SysRefresh(),!lEnd )
DBCLOSEALL()[/code:33nyca3n]
Tambien te cuento que me tira un cartel siempre antes de correr mi progrma que dice:
"The library ..\axcws32.dll (version 5,70,0,2) is older than ..\ace32.dll (version 7,10,0,12) Advantage DLLs must be of the same version"
que es esto??
Gracias!! |
de dbf-ntx a adt-adi | Natalia:
1) Tienes que crear los indices asi:
INDEX ON <llave> TAG <nombre del indice> FOR <condicion>
Donde :
<llave> es la llave de TODA la vida
<nombre del indice> es un nombre con el cual tu vas a identficar al indice creado dentro del archivo ADO
<condicion> es la condicion de indexamiento.
En tu caso
INDEX ON CODIGO TO IVA1 EVAL .....
Quedaria:
INDEX ON codigo TAG iva1 EVAL.......
Y crearia un archivo IVA.ADI con todos los "tags" almacenados en un solo archivo.
Para seleccionar un "tag" utiliza la funcion OrdSetFocus() de los indices CDX:
USE IVA.ADT
OrdSetFocus("IVA1")
Aunque OrdSetFocus soporta un valor numerico, esta comprobado que con los ADT siempre es necesario utilizar el nombre del TAG en vez del numero.
En cuanto a la clausula EVAL.... no la necesistas mas, ADS es mas rapido que xHarbour, termina de indexar MUCHO antes de que FiveWin pueda si quiera comenzar a pintar la barra de progreso.
2) Sobre el error que me indicas:
ADS esta basado en 3 DLLs que tienes que tener en tu carpeta donde tienes tu archivo EXE:
ADSLOC32.DLL es un servidor "local" de ADS que soporta toda las caracteristicas excepto: No es cliente/servidor, No soporta transacciones y solo soporta un maximo de 5 usuarios en entornos de red, pero para tus pruebas y aplicaciones monousuario te funcionara perfectamente.
ACE32.DLL: Es una libreria de funciones para ADS, todas las funciones ADS.....() que utiliza el RDDADS estan almacenadas aqui.
AXCWS32.DLL Esta es libreria CLIENTE de ADS indispensable para poder conectarte con cualquier tipo de servidor, LOCAL, REMOTO o INTERNET.
Bien, sucede que estas 3 DLLs tienen que ser DE LA MISMA VERSION y pasa que el error que te esta arrojando ADS es que tu AXCWS32.DLL es una version 5.7 de ADS pero estas usando un ACE32.DLL de la version 7.1, obviamente, te marcar error, porque todos los DLLs tendrian que ser de la version 7.1.
¿ Donde los consigues ?, bueno, si tienes instalado el Advatange Data Architech (ARC) los tienes en la carpeta donde esté instalado el producto, ahí vienen los 3 DLL de la misma version de ADS que necesitas, simplemente copialos a la carpeta donde esta tu programa xHarbour y listo, a funcionar de nuevo.
Nos vemos en Chile a partir del 12 de Octubre y en Argentina el 3 de Noviembre. |
de dbf-ntx a adt-adi | Hola Rene,
Veo que estás por venir a Argentina el 3 de Noviembre.
Donde puedo obtener más información al respecto?
Desde ya muchas gracias.
Saludos, Esteban |
de msgbar y status bar | Hola,
En mis programas tengo una msgbar en la venana principal que defino de esta manera:
[code=fw:us6xs7eg]<div class="fw" id="{CB}" style="font-family: monospace;">SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span> <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">cMsgBar</span> <span style="color: #0000ff;">CENTER</span> NOINSET<br /> ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span>::<span style="color: #000000;">oFont</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> MSGITEM ::<span style="color: #000000;">oMsgItem2</span>;<br /> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span>;<br /> <span style="color: #0000ff;">PROMPT</span> iif<span style="color: #000000;">(</span>::<span style="color: #000000;">cUser</span>!=SPACE<span style="color: #000000;">(</span><span style="color: #000000;">15</span><span style="color: #000000;">)</span>,::<span style="color: #000000;">cUser</span>,<span style="color: #ff0000;">"acerca de el Puchero"</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">SIZE</span> len<span style="color: #000000;">(</span>::<span style="color: #000000;">cUser</span><span style="color: #000000;">)</span>*<span style="color: #000000;">12</span>;<br /> <span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"MSG_LOTUS"</span>, <span style="color: #ff0000;">"MSG_LOTUS"</span>;<br /> TOOLTIP <span style="color: #ff0000;">" "</span> + i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"Acerca de..."</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">" "</span><br /> ::<span style="color: #000000;">oMsgItem2</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span> || AppAcercade<span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> MSGITEM ::<span style="color: #000000;">oMsgItem3</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWndMain</span>:<span style="color: #000000;">oMsgBar</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">152</span> ; <br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"www.alanit.com"</span> ;<br /> <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">(</span><span style="color: #000000;">3</span>,<span style="color: #000000;">95</span>,<span style="color: #000000;">156</span><span style="color: #000000;">)</span>, GetSysColor<span style="color: #000000;">(</span><span style="color: #000000;">15</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"MSG_ALANIT"</span>, <span style="color: #ff0000;">"MSG_ALANIT"</span>;<br /> TOOLTIP i18n<span style="color: #000000;">(</span><span style="color: #ff0000;">"visitar la web de alanit"</span><span style="color: #000000;">)</span>;<br /> <span style="color: #0000ff;">ACTION</span> WinExec<span style="color: #000000;">(</span><span style="color: #ff0000;">'start '</span>+<span style="color: #ff0000;">'.<span style="color: #000000;">\a</span>lanit.url'</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br /> ::<span style="color: #000000;">oWndmain</span>:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">DateOn</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:us6xs7eg]
En toda la aplicación uso la fuente del sistema
[code=fw:us6xs7eg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> ::<span style="color: #000000;">oFont</span>;<br /> <span style="color: #0000ff;">NAME</span> GetDefaultFontName<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, GetDefaultFontHeight<span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:us6xs7eg]
tal como cuento en [url:us6xs7eg]https://cincomundos.wordpress.com/2006/03/08/fuentes-grandes-en-fwh/[/url:us6xs7eg]
En uno de los programas, la fuente se vuelve 'gorda' como cuando no quedan recursos de GDI. En el resto del programa no pasa, sólo en la MsgBar. ¿ Cómo puedo solucionarlo ?
Por otra parte, he vsto que hay una clase StatusBar que desconocía ¿ Puedo sustituir MsgBar por StatusBar ?
Saludos, |
de msgbar y status bar | Yo lo hago asi con un Font definido para la aplicacion y no tengo ningun problema
[code=fw:389js5rn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #0000ff;">DEFINE</span> MSGBAR ::<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> FWString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Source Code Editor and Projects Manager"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">2010</span> <span style="color: #B900B9;">//+ ;</span><br /> ::<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">nClrText</span> := CLR_BLUE<br /> ::<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oFontX</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> MSGITEM ::<span style="color: #000000;">oMsgCompiler</span> <span style="color: #0000ff;">PROMPT</span> ::<span style="color: #000000;">cFileDescrip</span> ;<br /> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span> <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">Preferences</span><span style="color: #000000;">(</span> <span style="color: #000000;">7</span> <span style="color: #000000;">)</span><br /><br />.../...<br /><br /> </div>[/code:389js5rn] |
de msgbar y status bar | José Luis,
> Por otra parte, he vsto que hay una clase StatusBar que desconocía ¿ Puedo sustituir MsgBar por StatusBar ?
Comprueba primero que la Clase StatusBar te proporcione toda la funcionalidad que usas con MsgBar.
La clase StatusBar es propia de Windows y no ofrece toda la funcionalidad que ofrece MsgBar. |
de un get a un folder... no hace el salto correcto | hola.
tengo un dialogo.
con 2 GET y a la derecha un folder con 2 get dentro.
estando en el get 1 o 2 del dialogo princial, al presionar TAB no entra a ninguno de los get del folder.
Que puede estar pasando? |
de un get a un folder... no hace el salto correcto | Creo que el mejor, és usar el comando OJUMP.
Salu2 |
de un get a un folder... no hace el salto correcto | Ejemplo:
[code=fw:3vzlkiu8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">025</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> XBOLETO ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K!"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">44</span> SPINNER <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_HRED, CLR_HCYAN ;<br /> <span style="color: #0000ff;">CURSOR</span> oHand ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #000000;">(</span> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Emite Mala Direta?"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> GetASyncKey<span style="color: #000000;">(</span> VK_RETURN <span style="color: #000000;">)</span> .OR. ; <span style="color: #B900B9;">// Fantastico</span><br /> GetASyncKey<span style="color: #000000;">(</span> VK_DOWN <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Funcionou Perfeito</span><br /> <span style="color: #000000;">(</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">025</span><span style="color: #000000;">]</span>:<span style="color: #000000;">oJump</span> := aGet<span style="color: #000000;">[</span><span style="color: #000000;">028</span><span style="color: #000000;">]</span>, ; <span style="color: #B900B9;">// Pula Para Nome_Artis</span><br /> oFld:<span style="color: #000000;">SetOption</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, oFld:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,; <span style="color: #B900B9;">// By Ednaldo Rolim</span><br /> oFld:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, xFocus<span style="color: #000000;">(</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">028</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span><br /> </div>[/code:3vzlkiu8] |
de un get a un folder... no hace el salto correcto | Gracias.
[quote="karinha":2x23hs90]Ejemplo:
[code=fw:2x23hs90]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">025</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> XBOLETO ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K!"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">44</span> SPINNER <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">UPDATE</span> ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_HRED, CLR_HCYAN ;<br /> <span style="color: #0000ff;">CURSOR</span> oHand ;<br /> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #000000;">(</span> OemToAnsi<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Emite Mala Direta?"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> GetASyncKey<span style="color: #000000;">(</span> VK_RETURN <span style="color: #000000;">)</span> .OR. ; <span style="color: #B900B9;">// Fantastico</span><br /> GetASyncKey<span style="color: #000000;">(</span> VK_DOWN <span style="color: #000000;">)</span>, ; <span style="color: #B900B9;">// Funcionou Perfeito</span><br /> <span style="color: #000000;">(</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">025</span><span style="color: #000000;">]</span>:<span style="color: #000000;">oJump</span> := aGet<span style="color: #000000;">[</span><span style="color: #000000;">028</span><span style="color: #000000;">]</span>, ; <span style="color: #B900B9;">// Pula Para Nome_Artis</span><br /> oFld:<span style="color: #000000;">SetOption</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, oFld:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,; <span style="color: #B900B9;">// By Ednaldo Rolim</span><br /> oFld:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, xFocus<span style="color: #000000;">(</span> aGet<span style="color: #000000;">[</span><span style="color: #000000;">028</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span><br /> </div>[/code:2x23hs90][/quote:2x23hs90] |
de un get a un folder... no hace el salto correcto | [quote="carlos vargas":2o1004tr]si trabajas con recursos, verifica si el control que tiene para el folder tiene el WS_TABSTOP aplicado, en caso contrario no realizara el saldo de un get de fuera a get dentro del folder.[/quote:2o1004tr]
ok. reviso. gracias |
de un get a un folder... no hace el salto correcto | si trabajas con recursos, verifica si el control que tiene para el folder tiene el WS_TABSTOP aplicado, en caso contrario no realizara el saldo de un get de fuera a get dentro del folder. |
deactive the fist window | In my application I have defined a window oWnd ,
next I open new window oWnd1,
How my I deactive the fist window (oWnd) ? |
deactive the fist window | oWnd:Disable() |
dealing with a CSV file | I am importing a comma delimited file and I need to make certain the user has set up the file properly.
Is there a way to count the delimiters (commas) in the file and fix it if it has too may delimiters. All has to be at run time and behind the scenes. |
dealing with a CSV file | Harvey,
You can use NumAt() to count the commas in each line:
NUMAT(<cStringToMatch>, <cString>, [<nIgnore>]) --> nCount
To extract each line, in a fast way, you can use this code:
[code=fw:307vjf7m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">local</span> cText := MemoRead<span style="color: #000000;">(</span> <span style="color: #ff0000;">"text.csv"</span> <span style="color: #000000;">)</span>, cLine<br /> <span style="color: #00C800;">local</span> nLen := Len<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nFrom := <span style="color: #000000;">1</span><br /><br /> <span style="color: #00C800;">While</span> nFrom <= nLen<br /> cLine := ExtractLine<span style="color: #000000;">(</span> cText, @nFrom <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> NumAt<span style="color: #000000;">(</span> <span style="color: #ff0000;">","</span>, cLine <span style="color: #000000;">)</span> != <span style="color: #000000;">5</span> <span style="color: #B900B9;">// number of ","</span><br /> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"error in line "</span> + Str<span style="color: #000000;">(</span> nFrom - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> end<br /> </div>[/code:307vjf7m] |
dealing with a CSV file | Thanks Antoonio.
I'll give it a try tomorrow. |
dealing with a CSV file | Antonio
Where is the function numat() located. Won't compile. |
dealing with a CSV file | Harvey,
If you are using Harbour then you have to link hbct.lib, if you use xHarbour then link ct.lib |
debugger current FWH / xHarbour | I have run the xHarbour debugger with recent upgrade to FWH 7.07 / xHarbour 99.71 and encounter 2 issues.
issue 1 - abend due to different circumstances in SHOWVARS method. The abend seems to happen as I repeatedly "step" with the F8 key into subordinate functions and/or back again.
------------------------------------------------------
Error description: Error BASE/1004 Class: 'NIL' has no exported method: CARGO
Called from (b)TDEBUGGER:SHOWVARS(2784)
----------------------------------------------------------
Error description: Error BASE/9999 Argument error: HB_DBG_VMVARLGET
Args:
[ 1] = N -2
[ 2] = N 65535
Called from TDEBUGGER:VARGETVALUE(3016)
Called from TDEBUGGER:VARGETINFO(2981)
Called from (b)TDEBUGGER:SHOWVARS(2790)
---------------------------------------------------------
Item 2 - Sometimes the source code area goes blank in one function, then as control with F8 passes to a subordinate function, source code re-appears, then upon control to higher function source code dissappears.
This happens especially if I "step" through or "run" through a msgstop() or similar. After the msgbox is displayed, source code for that function is gone. |
debugger current FWH / xHarbour | Don,
Are you using the xHarbour console mode debugger ?
If yes, then you should report it at comp.lang.xharbour, thanks |
debugger current FWH / xHarbour | Yes I am using the console version. Do I have any other options? |
debugger current FWH / xHarbour | I tryed for many times debug my FW program but I had no success.
I use FWH 7.01 and xHarbour comercial (march/2007).
If anybody can help me I'll be glad
Regards,
Maurilio |
debugger current FWH / xHarbour | [quote="Maurilio Viana":392a4om4]I tryed for many times debug my FW program but I had no success.
I use FWH 7.01 and xHarbour comercial (march/2007).
If anybody can help me I'll be glad
Regards,
Maurilio[/quote:392a4om4]
Hello Maurilio,
We are doing final tests to debug a FWH app with Visual xDebugger.
Will let you know when we have more info on this.
--
Sincerely,
Patrick Mast,
xHarbour.com Inc.
<!-- m --><a class="postlink" href="http://www.xHarbour.com">http://www.xHarbour.com</a><!-- m --> |
debugger current FWH / xHarbour | Maurilio,
I am able to run debugger, but sometimes I have problems.
To get it to work similar to Clipper Debugger,
compile .prg with /b switch.
Include in your .lnk script debug.lib from the xharbour lib folder
For borland linker, xHarbour v99.5, omit the -aa switch from the Ilink32 command line.
For xHarbour v99.7 with Microsoft VC6.0, include msvcrt.lib and remove msvgui.lib
Not sure about the commercial xHarbour debugger - there is another message on the board from a couple of days ago asking the same question. |
debugger sample | I compile altd.prg sample for the compiler debugger but with failure though I changed the copmilation and linking options into /b ,remove -aa:%hdir%\bin\harbour %1 /b /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > clip.log%bcdir%\bin\ilink32 +%bcdir%\bin\ilink32.cfg -Tpe -s @b32.bc |
debugger sample | Ehab,To use the debugger you have to link GTWIN.lib instead of GTGUI.lib |
decimales en c++ | Buenas, una ligera duda
¿Como paso un numero decimal a una funcion de C hecha por mi? pues _parnl(x) no me va.
¿Como hago para que esa funcion me devuelva un decimal? pues _retnl( ... ) me devuelve un entero
Gracias |
decimales en c++ | Antolín,
Aqui tienes un ejemplo:
[code=fw:qkw2zovb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />double dbl = hb_parnd<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> </div>[/code:qkw2zovb]
para devolver un numero decimal:
[code=fw:qkw2zovb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> hb_retnd<span style="color: #000000;">(</span> dbl <span style="color: #000000;">)</span>;<br /> </div>[/code:qkw2zovb] |
decimales en c++ | Muchas Gracias Antonio |
declare array | I must declare a multi array type
aVal := { { } ,;
{ } }
But I not Know how many records there are
How I can say to fivewin if
aVal:={ }
is multiple array ? |
declare array | Silvio,
maybe ( sample ) :
LOCAL aArray := { { 1, 2 },{ 1, 2 },{ 1, 2 } }
? LEN ( aArray ) // Result = 3
? LEN ( aArray[1] ) // Result = 2
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
declare array | Uwe,
Pls
I not Know how many record I can have
I need it for the nages test of circular graph [url:1curha5h]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33772[/url:1curha5h]
it wants multiple array ... |
declare array | aData := ARRAY( nRows, nCols ) |
declare array | Function IsMultipleArray( aArray )
Return iif( valtype( aArray[1]="A", .T., .F. ) |
declare array | yes of course !!!
BUT I not Know the value of nRows and nCols
if at init I made
aVal:={ }
then not run because the procedure understood the array is simply and not multiple as
aVal:={ { } ,;
{ },;
{ } }
I insert 3 records for make a sample |
define button of oBar (Tamano del Boton) | Saludos Colisteros
Tengo una consulta, espero sencilla, estoy haciendo una barra de botones y necesito "cambiar el tamano de cada uno si es posible", sucede que son varias las opciones de la barra y se pasa del tamano de la pantalla, quisiera asignar el tamano de cada boton de la barra, es eso posible ??
Muchas gracias |
define button of oBar (Tamano del Boton) | [quote="Enrrique Vertiz":txofsk4l]Saludos Colisteros
Tengo una consulta, espero sencilla, estoy haciendo una barra de botones y necesito "cambiar el tamano de cada uno si es posible", sucede que son varias las opciones de la barra y se pasa del tamano de la pantalla, quisiera asignar el tamano de cada boton de la barra, es eso posible ??
Muchas gracias[/quote:txofsk4l]
Puedes mirar un Rebar o,
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27505&p=153359&hilit=rebar#p153384">viewtopic.php?f=3&t=27505&p=153359&hilit=rebar#p153384</a><!-- l --> |
define button of oBar (Tamano del Boton) | Gracias Cristobal, revisando |
define msgitem color - Resolved!! | I made
DEFINE MSGITEM ::oMsgItem1;
OF ::oWnd:oMsgBar ;
PROMPT ::aStatus[1] ;
SIZE 100 ;
COLOR RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32)
but I have a text colored and on msgitem is not refill with the background color
any solution please ?
I wish as this
[img:27qztift]https://i.postimg.cc/V69yYmc1/hh.png[/img:27qztift] |
define msgitem color - Resolved!! | [url:gbej2srf]http://shibolete.tripod.com/RGB.html[/url:gbej2srf]
[url:gbej2srf]http://www.erikasarti.com/html/tabela-cores/[/url:gbej2srf]
[url:gbej2srf]https://celke.com.br/artigo/tabela-de-cores-html-nome-hexadecimal-rgb[/url:gbej2srf]
Example:
C:\FWH...\SAMPLES\FWEXPLOR.PRG
Regards. |
define msgitem color - Resolved!! | No need color but refill the msgitem background
fwexplorer.prg ????????????????????????????????????????????????????????????????????? |
define msgitem color - Resolved!! | I think, that is not possible, because it has the SET MESSAGE area.
FWEXPLOR.PRG
Regards. |
define msgitem color - Resolved!! | I couldn't find a problem.
[quote:33o392qm]but I have a text colored and on msgitem is not refill with the background color [/quote:33o392qm]
[img:33o392qm]http://www.pflegeplus.com/IMAGES/Itemcol.jpg[/img:33o392qm]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
define msgitem color - Resolved!! | With the code i post i not see the background on each msgitem
let me see your command code to create it |
define msgitem color - Resolved!! | Please have a look at
[color=#0000FF:1is1gke4][b:1is1gke4]Testmsg3.prg[/b:1is1gke4] [/color:1is1gke4]for colored items
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
define msgitem color - Resolved!! | thanks
this was the problem .....I use 2015 on set message control...now run ok as i wish..
[img:zk8e7563]https://i.postimg.cc/fypTS6g0/ff.jpg[/img:zk8e7563] |
define msgitem color - Resolved!! | You can not have background color if you create message-bar with syles 2007 or later.
You can have background color for the msgitems if you create without styles 2007 or later. |
defining a constant at compile time. | Guys:
Using the buildx.bat command line, how can I define a constant at compile time. In old Clipper days it was like this:
[code=fw:3wm4l52f]<div class="fw" id="{CB}" style="font-family: monospace;">Clipper MyPrg /dMYVAR</div>[/code:3wm4l52f]
Thank you. |
defining a constant at compile time. | Gustavo,
buildx.bat MyPrg /dMYVAR
whatever you supply as second and third parameters will go directly to harbour.exe as second and third params |
defining a constant at compile time. | Antonio:
Thank you. Worked like a swiss clock. |
defining a key to a function | Hello,
I have a browse with all plantnames. If I doubleclick on a row a new window is opened that shows all the details of that plant. On this window I have two buttons to go to the previous row or the next row.
Now i want to do this by clicking on the keyboard with the go-left or go-right button. Is this possible? So can I link a function to a key on the keyboard? |
defining a key to a function | René,
Pease try this:
oBrowse:bKeyDown = { | nKey | MsgInfo( nKey ) }
and check if GoLeft and GoRight keys get trapped with that |
defining a key to a function | Hello Antonio,
Thanks, that works. The GoLeft has number 63234 and the GoRight has 63235. I use the bKeyDown on a window instead of a browse. The window that is opened has seven tabs and on 4 of them there are browses. It also works on Get's |
defining columns in browse | Hello,
I use a lot of browses in my program. I use these browses with arrays. Now I want to define the visible columns with variables. This is my code now:
[code=fw:dai3jai0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> BROWSE oBrwMain ;<br /> FIELDS <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>;<br /> HEADERS <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"Plantkode"</span>, <span style="color: #ff0000;">"Latijnse naam"</span>, <span style="color: #ff0000;">"Nederlandse naam"</span>, <span style="color: #ff0000;">"Planttype"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>;<br /> <span style="color: #0000ff;">OF</span> oWndMain <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">950</span>, nScreenHeight<span style="color: #000000;">-95</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oBrwMain:<span style="color: #000000;">SetArray</span><span style="color: #000000;">(</span> aLatnaam <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">bLine</span> = <span style="color: #000000;">{</span> | nRow | <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nRow <= Len<span style="color: #000000;">(</span> aLatnaam <span style="color: #000000;">)</span>, aLatnaam<span style="color: #000000;">[</span> nRow <span style="color: #000000;">]</span>, <span style="color: #000000;">{</span> <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br />oBrwMain:<span style="color: #000000;">SetColBmp</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColBmp</span><span style="color: #000000;">(</span> <span style="color: #000000;">6</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">20</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">350</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">250</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColWidth</span><span style="color: #000000;">(</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">4</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">5</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">6</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">7</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColEditable</span><span style="color: #000000;">(</span> <span style="color: #000000;">8</span>, .F. <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> OwnClrGreen, OwnClrYellow <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetRowHeight</span><span style="color: #000000;">(</span> nWindowFontSize/<span style="color: #000000;">2</span>*<span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span> cWindowFontName, nWindowFontSize <span style="color: #000000;">)</span><br /> </div>[/code:dai3jai0]
I want to define the FIELDS and HEADERS from variables stored in a plist file.
[code=fw:dai3jai0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">PUBLIC</span> cFields := <span style="color: #000000;">{</span><span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">}</span><br /><span style="color: #00C800;">PUBLIC</span> cHeaders := <span style="color: #000000;">{</span><span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"Plantkode"</span>, <span style="color: #ff0000;">"Latijnse naam"</span>, <span style="color: #ff0000;">"Nederlandse naam"</span>, <span style="color: #ff0000;">"Planttype"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">}</span><br />@ <span style="color: #000000;">30</span>, <span style="color: #000000;">10</span> BROWSE oBrwMain ;<br /> FIELDS cFields;<br /> HEADERS cHeaders;<br /> <span style="color: #0000ff;">OF</span> oWndMain <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">950</span>, nScreenHeight<span style="color: #000000;">-95</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oBrwMain:<span style="color: #000000;">SetArray</span><span style="color: #000000;">(</span> aLatnaam <span style="color: #000000;">)</span><br />oBrwMain:<span style="color: #000000;">bLine</span> = <span style="color: #000000;">{</span> | nRow | <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nRow <= Len<span style="color: #000000;">(</span> aLatnaam <span style="color: #000000;">)</span>, aLatnaam<span style="color: #000000;">[</span> nRow <span style="color: #000000;">]</span>, cFields <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> </div>[/code:dai3jai0]
When I put the HEADERS in an array the program terminates.
Is there a way to do this? |
definir funciones que están en DLL | hola amigos.. estoy haciendo una pequeña clase. y en ella me gustaría llamar a unas funciones que están en una DLL escrita en c.
tengo ésta definicion, pero cuando la ejecuto no hace nada :S si alguien pudiera echarme una manito.. le estaría eternamente agradecido <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
dll32 function _PDF_stringwidth(p As HDC, text As LPSTR, font As _INT, fontsize As LONG) As LONG FROM "_PDF_stringwidth" LIB cPdfLibDLL
Miguel Angel
Santiago-Chile |
definir funciones que están en DLL | Miguel,
if you want a pdf class you can download at my site : <!-- w --><a class="postlink" href="http://www.harbour.it">www.harbour.it</a><!-- w -->
Regards |
definir variable | buenas a ver si me podeis ayudar quiero definir esta variable
local cText := " TButton():New( 250, 240," Imprimir", oDlg, {|| imOctubre()}, 60, 20,,, .F., .T., .F.,, .F.,,, .F. )"
Build: 000004 - 20230609170656150
Harbour 3.2.0dev (Rev. 17516)
Copyright (c) 1999-2012, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m -->
1 error
No code generated.
C:\FIVEUI\SOURCE\prueba.prg(1055) Error E0030 Syntax error "syntax error at 'IMPRIMIR'"
saludos |
definir variable | Saludos estimado.
La palabra IMPRIMIR debes colocarla dentro de comillas simples -> 'Imprimir' |
definir variable | [code=fw:39jf10dq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cText := <span style="color: #000000;">[</span> TButton<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">240</span>,<span style="color: #ff0000;">" Imprimir"</span>, oDlg, <span style="color: #000000;">{</span>|| imOctubre<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">20</span>,,, .F., .T., .F.,, .F.,,, .F. <span style="color: #000000;">)</span> <span style="color: #000000;">]</span><br /><br /> ? cText<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:39jf10dq]
Regards, saludos. |
definir variable | muchas gracias efectivamente es como tu dices comillas simples y no da error y funciona
gracias un saludo |
definir variable | tambien funciona con [ ] muchas gracias a los dos
saludos |
dejar más espacio entre grupos del Treport | Hola,
¿Cómo puedo dejar más espacio entre grupo y grupo en Report?.
Gracias. |
dejar más espacio entre grupos del Treport | Amplia la barra de grupo, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
dejar más espacio entre grupos del Treport | Lucas:
Si quiero dejar mas espacio entre grupos yo pondria asi
[code=fw:1j8ubk84]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTIVATE</span> REPORT oRpt <span style="color: #0000ff;">on</span> endline iif<span style="color: #000000;">(</span>oRpt:<span style="color: #000000;">aGroups</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cValue</span><>oRpt:<span style="color: #000000;">aGroups</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">cOldValue</span>, eval<span style="color: #000000;">(</span><span style="color: #000000;">{</span>|| oRpt:<span style="color: #000000;">nRow</span>+=oRpt:<span style="color: #000000;">nStdLineHeight</span>,oRpt:<span style="color: #000000;">NewLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span> ,<span style="color: #000000;">)</span><br /> </div>[/code:1j8ubk84]
creo que no basta con ponerle oRpt:NewLine() hay que agregarle uno mas (alto de la fila) al nRow |
dejar más espacio entre grupos del Treport | Muchas gracias. Funciona <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> |
dejar más espacio entre grupos del Treport | Disculpa mi respùesta, confundi por un momento Fast report con Report, fue un lapsu, jejeje, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
del a group section | can I canc a section and his variables on ini file ? |
del a group section | Silvio,
there are INI-functions :
[color=#0000FF:2np457rk][size=150:2np457rk]DelIniEntry( <Section>, <Entry>, <File> ) --> lSuccess
DelIniSection( <cSection>, <cFile> ) --> lSuccess [/size:2np457rk][/color:2np457rk]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
del a group section | thanks |
del a group section | and how copy one ? |
del an Item on treview | I must del a item into a tree object ( treeview of fwh)
I found a solution to del a item from treview but it make error when I try to del a category
[b:gop69u0x]I have a dbf with two fields [/b:gop69u0x]
DbCreate('GE', {{'GEMATERIA' , 'C', 40, 0} ,;
{'GEPCLAVE' , 'C', 45, 0} ,;
{'MAEJEMPL' , 'N', 5, 0}}, 'DBFCDX')
I have category and subcategory
category is tree first level (GEMATERIA)
subcategory is tree second level ( GEPCLAVE)
I made :
[b:gop69u0x]first del the record from dbf[/b:gop69u0x]
local oLink := oTree:GetSelected()
local cPrompt := oLink:cPrompt
local cCargo := oLink:Cargo
local nRecno := GE->(Recno())
local lMateria := ( Len(cCargo) <= 40 )
local nNext
SELECT GE
GE->(DbSkip())
nNext := GE->(Recno())
GE->(DbGoto(nRecno))
GE->(DbDelete())
GE->(DbPack())
GE->(DbGoto(nNext))
IF GE->(EOF()) .or. nNext == nRecno
GE->(DbGoBottom())
ENDIF
[b:gop69u0x]now try to del the item on tree[/b:gop69u0x]
oPadre := oLink:GetParent()
TVDeleteItem(oTree:hWnd, oLink:hItem )
nPosHijoenPadre := Ascan( oPadre:aItems, {|o| o:hItem == oLink:hItem } )
IF nPosHijoenPadre > 0
ADel ( oPadre:aItems, nPosHijoenPadre )
ASize( oPadre:aItems, Len(oPadre:aItems)-1 )
ENDIF
here run ok but only for subcategory
when I try to delete a category make error
[code=fw:gop69u0x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Application<br /> ===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\Documents and Settings\Administrator\Desktop\tree\test.Exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">737</span>,<span style="color: #000000;">664</span> bytes<br /> Compiler version: <span style="color: #000000;">xHarbour</span> <span style="color: #000000;">1.2</span><span style="color: #000000;">.3</span> Intl. <span style="color: #000000;">(</span>SimpLex<span style="color: #000000;">)</span> <span style="color: #000000;">(</span>Build <span style="color: #000000;">20140725</span><span style="color: #000000;">)</span><br /> FiveWin Version: <span style="color: #000000;">FWHX</span> <span style="color: #000000;">15.01</span><br /> Windows version: <span style="color: #000000;">5.1</span>, Build <span style="color: #000000;">2600</span> Service Pack <span style="color: #000000;">3</span><br /><br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">1</span> mins <span style="color: #000000;">13</span> secs<br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">12</span>/<span style="color: #000000;">18</span>/<span style="color: #000000;">15</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">55</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> <span style="color: #00C800;">Class</span>: <span style="color: #ff0000;">'NIL'</span> has no exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">AITEMS</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = U <br /><br /> Stack Calls<br /> ===========<br /> Called <span style="color: #0000ff;">from</span>: => AITEMS<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => MABORRA<span style="color: #000000;">(</span> <span style="color: #000000;">244</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TEST<span style="color: #000000;">(</span> <span style="color: #000000;">67</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BUTTON</span>.PRG => TBUTTON:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span> <span style="color: #000000;">175</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TBUTTON:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1687</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3450</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => SENDMESSAGE<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">(</span> <span style="color: #000000;">403</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">906</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">286</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">test</span>.prg => TEST<span style="color: #000000;">(</span> <span style="color: #000000;">104</span> <span style="color: #000000;">)</span><br /> </div>[/code:gop69u0x] |
del an Item on treview | Silvio,
Puedes poner que muestra xBrowse( oPadre ) despues de hacer oPadre := oLink:GetParent() ? Pon lo que se muestra cuando borras una subcategoria y una categoria |
del an Item on treview | I not use xbrowse for tree I use tree class of Linares
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31594&p=184291&hilit=tree#p184291">viewtopic.php?f=3&t=31594&p=184291&hilit=tree#p184291</a><!-- l --> |
del an Item on treview | Can you put MsgInfo( type( oPadre:aItems ) ) after oPadre := oLink:GetParent() ? |
del an Item on treview | see your mail |
del an Item on treview | Silvio,
If you put here some example, i'll try to help you... thanks |
del an Item on treview | sorry I found the error..thanks |
del an tree Item | How I can del an Item of a Tree ?
I try with :
local oLink := oTree:GetSelected()
local cPrompt := oLink:cPrompt
local cCargo := oLink:Cargo
oLink:end() ----> make error
oLink:DeleteBranches()----> make error
someone Know the tree class ? |
del an tree Item | Perhaps I found a solution
TVDeleteItem( oTree:hWnd, oLink:hItem )
it del the item tree but I not sure it is the right solution
it not run ok |
del section from a ini | is there a function for delete a section into a ini file ? |
del section from a ini | [code=fw:1o9k5b9d]<div class="fw" id="{CB}" style="font-family: monospace;">DELINISECTION<span style="color: #000000;">(</span> cSection, cIniFile <span style="color: #000000;">)</span></div>[/code:1o9k5b9d]
EMG |
del section from a ini | fwh function or harbour ? |
del section from a ini | FWH.
EMG |
del xml a dbf | Como puedo pasar a Dbf una base que se da en formato xml desde un web server?
Necesitaría tomar los datos de dicha base y pasarlos a una dbf temporal, desde la cual pasarlo al destino definitivo.
Cualquier ayuda que me puedan dar se agradecerá ampliamente.
Gracias desde ya. |
del xml a dbf | Prueba con usar la clase xml que tiene xharbour, ya que deberia leer estos archivos sin problemas.
Atte,
Lautaro |
del xml a dbf | Lautaro,
Gracias!!! por tu respuesta!!!!!!!!!!!!!!!!!!!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Una pregunta, esta clase....., donde encuentro información de como funciona, el ejemplo xmltest.prg que aparece en el directorio de tests de xharbour utiliza esta clase?
Como puedo saber exactamente que es lo que hace y como usarla?
Cualquier ayuda me será de gran valor, dado que tengo que leer estas bases para convertirlas a dbf o manejarlas como base de datos en mi aplicación, puesto que debe importar datos de otra aplicación que recibo en formato xml. |
del xml a dbf | Hola,
La documentacion esta en el archivo hbxml.txt en la carpeta doc, y alli encontraras todo lo necesario para usarla, ya esta opcion es parte del xharbour rtl library y el en directorio samples estan xmliter.prg que muestra y xmltest.prg, ademas de un archivo de pruebas el xmltest.xml.
Atte.,
Lautaro Moreira |
del xml a dbf | Gracias Lautaro,
Esa documentación está ausente en el xHarbour que se distribuye con FWH de Marzo 2006, pero la bajé del sitio de xHarbour.
Ahora la voy a estudiar.
Saludos, |
delete a pixel | [img:20yq8yl9]https://i.postimg.cc/9fCvbn9B/pin.png[/img:20yq8yl9]
when I scroll through the xbrowse it draws a pixel according to the coordinates (column 3 and 4)
how do i delete a pixel previously drawn?
to draw I use setpixel or FillSolidRect
SomeOne can help me Pls ? |
delete identical records | By creating an array with three for next loops I have to delete the records where I find equal numbers in the three columns
[code=fw:3ctnoqk4]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">for</span> h=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>atmp<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">If</span> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> == atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> .or. ;<br /> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> == atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> .or. ;<br /> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> == atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> HB_ADel<span style="color: #000000;">(</span> aTmp, h, .t. <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">next</span></div>[/code:3ctnoqk4]
but then it happens that I have two records (A and B)
[img:3ctnoqk4]https://i.postimg.cc/cCC93LCz/t1.png[/img:3ctnoqk4] [img:3ctnoqk4]https://i.postimg.cc/B6YNJfpB/t2.png[/img:3ctnoqk4]
which have an equal number in the first or second column because the triplet
1- 2 - 88
is the same as the triplet
2 - 1 - 88
and
1- 88 -2
how can i solve to find the same records?
I tried using aScan But I couldn't
I tried also with
[code=fw:3ctnoqk4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">for</span> h=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>atmp<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">If</span> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> == atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> .or. ;<br /> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> == atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> .or. ;<br /> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> == atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> HB_ADel<span style="color: #000000;">(</span> aTmp, h, .t. <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">next</span><br /><br /> nVolte := <span style="color: #000000;">0</span><br /><br /> <span style="color: #00C800;">For</span> t= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>aTmp<span style="color: #000000;">)</span><br /> nA:= atmp<span style="color: #000000;">[</span>t<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> nb:= atmp<span style="color: #000000;">[</span>t<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> nc:= atmp<span style="color: #000000;">[</span>t<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><br /> <span style="color: #00C800;">for</span> h=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span>atmp<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">If</span> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> == nA .and. ;<br /> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> == nB .and. ;<br /> atmp<span style="color: #000000;">[</span>h<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> ==nC<br /> nVolte++<br /> <span style="color: #00C800;">If</span> nVolte ><span style="color: #000000;">1</span><br /> HB_ADel<span style="color: #000000;">(</span> aTmp, h, .t. <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">next</span><br /> <span style="color: #00C800;">next</span><br /> </div>[/code:3ctnoqk4]
but not run ok |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.