topic
stringlengths
1
63
text
stringlengths
1
577k
salida abrupta...
resulta que el programa a la hora de genrar un reporte este lo hace bien, pero cuando cierro la ventana del reporte, este me cierra todo el programa, ya estuve buscando y nada, el reporte lo tome de otro del mismo sistema y unicamente cambie la informacion que imprime, la unica diferencia es que en uno lo mando llamara desde una toolbar y el que me cierra el sistema lo mando llamar desde la vtaskbar, alguna idea por donde buscarle? salu2 paco
salida abrupta...
Paco, el reporte lo lanzas desde un boton de un dialogo ? usas el metodo transparent en el dialogo ? usas tsay dentro del dialogo ? a mi me paso este problema, tuve que debugear linea a linea para dar con el error, y resulta que cuando uso el metodo TRANSPARENT y say, es cuando sale el error intenta quitarle el metodo transparent al dialogo y los says hay que agregar la Data, oSay:lTransParent := .t. las propiedades TRANSPARENT le duele a la tprinter,, Saludos,,,
salida abrupta...
Increible! Mientras probaba ésto que dices, me decía "a ver si va a ser cierto", después de la cantidad de pruebas que he hecho, y nada, me ocurría lo mismo, se cerraba el programa. Y no sólo me ocurría a mi, mira éste último post: [url:ls9vzi79]http://fivetechsoft.com/forums/viewtopic.php?t=6687&highlight=[/url:ls9vzi79] Sera posible, !pues es cierto!, y la cantidad de horas y comidas de coco que he echado al tema. Muchas gracias amigo! Saludos Jose Luis
salida abrupta...
Francisco, Si no lo llamas desde la vtaskbar no cierra el programa ? Por favor comprueba si en disco se genera un fichero error.log
salida abrupta...
Jose Luis, efectivamente es un dolor de cabeza, pero no necesitas un gran codigo para darte cuenta del problema,, simplemente crea un dialogo desde resource, ponle un say y un boton agregale el metodo TRANSPARENT al momento de programas, y manda llamar esta funcion. y veras que el sistema se sale sin de decir nada. static function _cuadricula() local nFor local nCol Local oPrn local oFnt1 PRINT oPrn TITLE 'Cuadricula' PREVIEW DEFINE FONT oFnt1 NAME "TAHOMA" SIZE 0,-08 OF oPrn bold oPrn:lPrvModal := .t. page for nFor := 1 to 26 oPrn:cmsay( nFor, 1, strzero(nFor,02), oFnt1 ) for nFor2 := 2 to 20 oPrn:cmsay( nFor, nFor2, strzero(nFor2,02), oFnt1 ) next next endPage endPrint return (.T.) Como veras el metodo transparent le duele a la tprinter o al preview. Saludos... Cordiales
salida abrupta...
gracias a todos, efectivamente cesar, omiti la clausula TRANSPARENT en mi dialogo creado desde recuros y ya no aborto el programa "FUNCIONO", por cierto Antonio esa salida del sistema no generea ningun archivo .log, me cerciore que no existiera para ver si lo generaba hice la prueba y no lo genero. Buen caso para la araña... Salu2 Paco
saltar gets y controles en fivewin
Hola compañeros del foro.... Tengo un problemilla.... estoy con un dialogo que tiene cerca de 30 controles, entre gets, listbox, combobox, buttons, etc..... como hago para que cuando este en el 3er get, ( el cual lee un código y con una funcion retorna el nombre del producto, el stock actual y varios precios de venta, etc), y dependiendo del resultado pase al 10 get... e intentado con: oGetxxx:setfocus() __KeyBoard ( CHR (9) ) && el tabulador oDlgxxx:GoPrevCtrl ( hctrl ) && el hctrl no se como se define, alguien puede enviarme un ejemplo oDlgxxx:GoNextCtrl ( hctrl ) && lo mismo no se como se define si alquien puede ayudarme con gusto les agradeceria... Cordial Saludo J. Ernesto Pinto Q.
saltar gets y controles en fivewin
Hola, yo lo hago así: oFldr:aDialogs[1]:aControls[6]:SetFocus() evidentemente esto es desde folder. Realizas la búsqueda, pones los resultados en los campos necesarios y posterioremente le das el focus al control que quieras, en este caso sera tú "get". Saludos y espero te sirva !
saltar gets y controles en fivewin
J. Ernesto, Puedes hacerlo asi, definiendo el dato oJump: oGet3:oJump := oGet10
saltar gets y controles en fivewin
Gracias don Antonio Lionares A ver otra ayuda.... hasta ahora estoy migrando desde clipper al entorno visual en 32 bits..... por eso mi falta de conocimiento en estos pasos... como en: oGet3:oJump := oGet10 Yo tengo algo de codigo asi: @x,y GET opsCodept VAR psCodePT Pict '@s14' Valid (ValidaCodigo(), .T.) @x,y GET opn54QTY VAR pn54Qty Pict '999' Valid (ValidarCantidad(), .T.) @x,y Listbox........ ...... ...... Lo que quiero es si la validacion de la cantidad es verdadera que vuelva a leer el c{odigo del producto, con opsCodept:setfocus el control pasa al del listbox.... podria aorientarme como implemento el oJump????? Mil Gracias...
saltar gets y controles en fivewin
J. Ernesto, Tienes que hacer la asignacion desde la funcion ValidarCantidad() [code=fw:2wczrmbc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@x,y <span style="color: #0000ff;">GET</span> opsCodept <span style="color: #0000ff;">VAR</span> psCodePT Pict <span style="color: #ff0000;">'@s14'</span> <span style="color: #0000ff;">Valid</span> <span style="color: #000000;">&#40;</span>ValidaCodigo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T.<span style="color: #000000;">&#41;</span><br /><br />@x,y <span style="color: #0000ff;">GET</span> opn54QTY <span style="color: #0000ff;">VAR</span> pn54Qty Pict <span style="color: #ff0000;">'999'</span> <span style="color: #0000ff;">Valid</span> <span style="color: #000000;">&#40;</span>ValidarCantidad<span style="color: #000000;">&#40;</span> opn54QTY, opsCodept <span style="color: #000000;">&#41;</span>, .T.<span style="color: #000000;">&#41;</span><br /><br />...<br /><br /><span style="color: #00C800;">function</span> ValidarCantidad<span style="color: #000000;">&#40;</span> oGet2, oGet1 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;... tu codigo<br /><br />&nbsp; &nbsp;oGet2:<span style="color: #000000;">oJump</span> = oGet1<br /><br /><span style="color: #00C800;">return</span> .T.<br />&nbsp;</div>[/code:2wczrmbc]
saltar gets y controles en fivewin
Antonio... Mil gracias el ojump ya funciono, mi pregunta ahora, es... 1- por que el oDestino:setfocus() no funciona dentro de un valid del control get?, o el paso al control previo 2- dentro de un Listbox como se implementa la misma situacion, es decir saltar el foco a otro control? 3- esta clase de metodos donde tiene algo de literatura? 4- Por otro lado hay unas funciones para conocer el tipo de dispostivos o Drives de que dispone un computador: a- En algunos casos veo que devuelve un numero negativo, esto es valido? b- cuando no encuentra un dispostivo que esta dentro de la matriz aDrives(), supongamos hay una unidad de 3½", pero no tiene un diskette, mas sin embargo devuelve un numero, es cierto o falso el resultado? c- Si no es un Diskette, ni un CDRom, deveria ser un Hard Disk, y entonces como se sabe que es una unidad USB (pendrive)? d- Como se implementa la combinacion de teclas para asignarselas a una funcion en especial, por ejemplo Control + A, o Shift + F1, caso similar para los acceleradores de un menuitem? e- y aun me quedan otras inquietudes, estoy migrando mis aplicaciones desde clipper 5.3b + Blinker 7.0 + LLIB, estoy ovbiando el paso al modo comsola en 32 bist, yendo directamenta al modo visual en 32 Bits..... Un cordial saludo,,, PD, seguire con otras dudas.....
saltar gets y controles en fivewin
Ernesto: Como que somos cachacos, el lo que te pueda ayudar con muchos gusto. De pronto hasta vecinos resultamos siendo y nos tomamos un delicioso tinto tertuliando. Que grato seria compartir con un colega Clipperiano, no soy muy experto pero de pronto nos podemos ayudar. Mi Messenger es <!-- e --><a href="mailto:hymplus.@hotmail.com">hymplus.@hotmail.com</a><!-- e --> Saludos,
saltar gets y controles en fivewin
J. Ernesto, Eso parece un examen en vez de una pregunta de soporte técnico <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Por que no vamos poquito a poco ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Una o dos preguntas por mensaje, gracias
saltar gets y controles en fivewin
J. Ernesto, > 1- por que el oDestino:setfocus() no funciona dentro de un valid del control get?, o el paso al control previo Porque Windows tiene su propia secuencia de perdida de foco y ganancia de foco, de un control a otro, y no puede ser interrumpida. Hay que esperar a que Windows termine de hacer su trabajo y entonces FiveWin se encarga de cambiar el foco. > 2- dentro de un Listbox como se implementa la misma situacion, es decir saltar el foco a otro control? Exactamente igual <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> En vez de usar oGet2:oJump usas oListBox:oJump. > 3- esta clase de metodos donde tiene algo de literatura? El dato oJump pertenece a la Clase TControl y está documentado en la clase TControl. Por eso puede ser usado con cualquier tipo de control. Es preferible el aprendizaje que estas haciendo, a través de la práctica. Si a priori intentases aprender todo lo que se puede hacer en Windows, seria imposible asimilarlo todo, y te confundirías en vez de afianzar los conceptos básicos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
saltar gets y controles en fivewin
Don Antonio, de nuevo por aca molestando Una pregunta... 1- Como hago para colocar un control con colores que parpadeen, al estilo del viejo clipper?????
saltar gets y controles en fivewin
J. Ernesto, Tienes que usar un TIMER que cambie el color cada cierto tiempo. Puedes revisar FWH\samples\TestTime.prg para ver como se usan los TIMERs.
saltar gets y controles en fivewin
Aqui tienes un ejemplo funcionando: [code=fw:2on941v5]<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;">static</span> oWnd, oSay, oTimer<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">50</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Colores parpadeando"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hola Mundo!"</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W+/B"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CreaTimer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oTimer:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> CreaTimer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> lOnOff := .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">500</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lOnOff := ! lOnOff, oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lOnOff, <span style="color: #ff0000;">"W+/B"</span>, <span style="color: #ff0000;">"GR+/G"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimer<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2on941v5]
saltar gets y controles en fivewin
Don Antonio Muchas Gracias, listo lo del color parpadeando, ahora otras dos preguntas: 1- Necesito combinar teclas al estilo del clipper, es decir como Crtl + 'T', shift+f1, como lo implemento en un set key o en un menuitem.... 2- Ccom,o averiguo el serial de una PenDrive (usb), ya tenemos si existe un Diskette, o una unidad de CD,,,,, o en la matriz aDrivers que otra informacion podemos hallar sobre las unidades? Mil Gracias
saltar gets y controles en fivewin
Ernesto Mira en samples Testhard.prg Funciona muy bien para lo que tu quieres Espero te funciones Jairo
saltar gets y controles en fivewin
J. Ernesto, > Necesito combinar teclas al estilo del clipper, es decir como Crtl + 'T', shift+f1, como lo implemento en un set key o en un menuitem.... Revisa FWH\samples\TestMenu.prg > Como averiguo el serial de una PenDrive (usb) Revisa FWH\samples\protect.prg
saltar gets y controles en fivewin
Buen día para todos... Como hago para combinar las teclas... pero en mi ventana principal? Revise el ejemplo que menciono Antonio testmenu.prg. Pero resulta que mi programa ya no tiene menú. Ahora tengo una ribbon. Como puedo hacer la combinacion de teclas control+f7 desde mi ventana principal? de antemano gracias
saludos por fin di el paso a 32 pero me da un error
bueno despues de pasar un fin de semana dandome cabezazos por fin logro compilar a 32 bit pero me da el siguiente error LA LIBRERIA RDD.LIB de harbour: _DB_FUN_DBFDBT diciendo que no consigue esta funcion externa realmente no se que sera ya que no uso campos memo en ningun lado, asimismo crea el exe pero al ejecutar me dice en una ventana DOS que solo puede ser ejecutado bajo win32 de seguro le ha pasado a alguien y debe ser una tonteria, agradezco su ayuda, gracias
saludos por fin di el paso a 32 pero me da un error
aqui el unico problema es que no has agregado esta libreria a tu proyecto, solo agregala debe de estar en (x)harbour\lib saludos Luis Fernando Rubio Rubio Tequila, Jalisco, Mexico
saludos por fin di el paso a 32 pero me da un error
Si no la usas... solo declarala y compila. Agrega a tu prg la función faltante. Function DbfDbt() return .T.
saludos por fin di el paso a 32 pero me da un error
QAZWSX2K [code:tyk7b6kf] //al pincipio de tu programa ANNOUNCE RDDSYS procedure main&#40;&#41; blblb return procedure RddInit&#40;&#41; REQUEST HB_LANG_ES REQUEST DBFCDX, DBFFPT return [/code:tyk7b6kf] Saludos Patricio
saludos una de combobox
SALUDOS , 1.- tengo un combobox con imagenes asi REDEFINE COMBOBOX nGrpFtBox ID 114 OF oDlg UPDATE ; ITEMS {"0","1","2","3","4","5"}; BITMAPS {"bitmap_1","bitmap_2","bitmap_3","bitmap_4","bitmap_5","bitmap_6"} pero quisiera que las imagenes las tomara de recursos, es posible? he probado asi REDEFINE COMBOBOX nGrpFtBox ID 114 OF oDlg UPDATE ; ITEMS {"0","1","2","3","4","5"}; RESOURCES {"RECURSO1","RECURSO2","RECURSO3","RECURSO4","RECURSO5"} peor no me da resultados bueno para algunos seran cositas faciles supongo, jejej de todos modos agradecido
saludos una de combobox
Hola sr. Tengo definido en la clase las formas de pago... (oBmpFPago) que son los nombre de los Bmps que estan en un archivo de recurso... Salu2 [code=fw:12hd0w4s]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">DATA</span> aForPago &nbsp;<span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"1.- Efectivo"</span>,<span style="color: #ff0000;">"2.- Visa &nbsp; &nbsp;"</span>,<span style="color: #ff0000;">"3.- Master &nbsp;"</span>,<span style="color: #ff0000;">"4.- AmEx &nbsp; &nbsp;"</span>,<span style="color: #ff0000;">"5.- Diners &nbsp;"</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">DATA</span> oBmpFPago <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"EFECTIVO0"</span>, <span style="color: #ff0000;">"VISA"</span>,<span style="color: #ff0000;">"MASTER"</span>,<span style="color: #ff0000;">"AMEX"</span>,<span style="color: #ff0000;">"DINERS"</span>,<span style="color: #ff0000;">"BLANCO0"</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">DATA</span> aModPag &nbsp; <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"EFECTIVO"</span>, <span style="color: #ff0000;">"CREDITO"</span> <span style="color: #000000;">&#125;</span><br /><br />..<br />..<br />..<br />..<br />..<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oFPago ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VAR</span> &nbsp; &nbsp; &nbsp;cTVenta ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> &nbsp; &nbsp;oApp:<span style="color: #000000;">aForPago</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BITMAPS</span> oApp:<span style="color: #000000;">oBmpFPago</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span>oAcept:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ActivaFPagos<span style="color: #000000;">&#40;</span>cTVenta, oSay<span style="color: #000000;">&#41;</span>, oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">122</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oFPago:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span>oFont1<span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:12hd0w4s]
sample : xBrimag1.prg ( FWH 9.06 ) not working ?
Hello, Compiling xBrimag1.prg from \samples with FWH 9.06, I get a Error : in line : [color=#FF0000:1alflctb]AEval( oBrw:aCols, { |o| o:nEditType := 1 } ) )[/color:1alflctb] Maybe a change in HARBOUR ? ( => _CLSSETERROR(168) ) Working with Vista Application =========== Path and name: E:\FWH\samples\xbrimag1.exe (32 bits) Size: 1,882,112 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 07/12/09, 19:12:32 Error description: Error BASE/1004 Message not found: TXBROWSE:IMAGE Args: Stack Calls =========== Called from: .\source\function\HARBOUR.PRG => _CLSSETERROR(168) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:IMAGE(6367) Called from: xbrimag1.prg => (b)MAIN(14) Called from: .\source\classes\XBROWSE.PRG => XBROWSE(10300) Called from: xbrimag1.prg => MAIN(14) System ====== CPU type: Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz 2800 Mhz Hardware memory: 2048 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406) Windows version: 6.0, Build 6002 Service Pack 2 Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
sample calculator and xBrowser
To get some feeling for xBrowser and arrays I inserted a xbrowser into msgcalc – a contribution of Lorenzo Gadaleta years ago – which I use as add on calculator for my programs. Thanks to NageswaraRao who helped on a xBrowser problem with arrays of size 0. Now I have a kind of undo in my calculator. I hope many of you have some input. Regards, Otto [img:6ntjgyns]http&#58;//www&#46;atzwanger&#46;com/fw/calculator&#46;jpg[/img:6ntjgyns] [code:6ntjgyns] /*********************************************************************/ /* */ /* ProcName&#46;&#46;&#46;&#46;&#46;&#46;&#58; MsgCalc&#46;prg */ /* Author&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#58; Lorenzo Gadaleta */ /* Note&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#58; Usage Sample &#58; */ /* If you want e ret value in your get &#58; */ /* oGet&#58;VarPut&#40; MsgCalc&#40;&#91;nValue&#93;&#41; &#41; */ /* oGet&#58;Refresh&#40;&#41; */ /* Else */ /* MsgCalc&#40;&#41; */ /* */ /*********************************************************************/ #include "FiveWin&#46;ch" #include "InKey&#46;ch" #include "xbrowse&#46;ch" #define BIF_RETURNONLYFSDIRS 1 #define BIF_DONTGOBELOWDOMAIN 2 #define MAX_PATH 260 #define PAD_LEFT 0 #define PAD_RIGHT 1 #define PAD_CENTER 2 STATIC aStruc&#58;=&#123;&#125; STATIC oBrw FUNCTION MsgCalc&#40;nVal&#41; // Here for languages pesonalization LOCAL cTitle &#58;= "Calculator " LOCAL cPastMsg &#58;= "&Einfügen" LOCAL cConfirmMsg &#58;= " B&estätigen " LOCAL cAbortMsg &#58;= " &End " LOCAL cPict &#58;= "@E 999,999,999,999,999&#46;99" // End languages personalization LOCAL n &#58;= 100 LOCAL nInit &#58;= 0 LOCAL oDlg, oFont, oCursor, oRes, cRes &#58;= "" LOCAL nMemo&#58;=0, nOpe LOCAL oGet, cGet &#58;= Space&#40;100&#41;, oBtnOk, oBtnAb, oBtn LOCAL cLastOpe &#58;= "+" LOCAL oBt1,oBt2,oBt3,oBt4,oBt5,oBt6,oBt7,oBt8,oBt9,oBt0,oBtC LOCAL oBSum, oBMin, oBMol, oBDiv, oBPer, oBCan, oBRes LOCAL lRet &#58;= &#46;F&#46; local oClearEntryKey aadd&#40;aStruc,&#123;"",0,0&#125;&#41; DEFAULT nVal &#58;= 0 nInit &#58;= nVal DEFINE FONT oFont NAME "MS Reference Sans Serif" SIZE 0, -12 DEFINE CURSOR oCursor HAND DEFINE DIALOG oDlg SIZE 405, 405 TITLE cTitle PIXEL FONT oFont oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oDlg &#41; oBrw&#58;nTop &#58;= 5 oBrw&#58;nLeft &#58;= 5 oBrw&#58;nBottom &#58;= 90 oBrw&#58;nRight &#58;= 180 oBrw&#58;SetArray&#40; aStruc&#41; oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLROW oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;lColDividerComplete &#58;= &#46;t&#46; oBrw&#58;aCols&#91;1&#93;&#58;cHeader &#58;= 'Key' oBrw&#58;aCols&#91;1&#93;&#58;nWidth &#58;= 60 oBrw&#58;aCols&#91;1&#93;&#58;nDataStrAlign &#58;= AL_CENTER oBrw&#58;aCols&#91;1&#93;&#58;nEditType &#58;= EDIT_GET_LISTBOX oBrw&#58;aCols&#91;1&#93;&#58;aEditListTxt &#58;= &#123;"+", "-", "*", "/"&#125; oBrw&#58;aCols&#91;1&#93;&#58;bOnPostEdit &#58;= &#123;|o,x| aStruc&#91; oBrw&#58;nArrayAt, 1 &#93; &#58;= x, update_total&#40;oRes,oGet&#41; &#125; oBrw&#58;aCols&#91;1&#93;&#58;aEditListBound &#58;= &#123;"+", "-", "*", "/"&#125; oBrw&#58;aCols&#91;1&#93;&#58;bClrEdit &#58;= oBrw&#58;bClrStd oBrw&#58;aCols&#91;2&#93;&#58;cHeader &#58;= 'Value' oBrw&#58;aCols&#91;2&#93;&#58;nWidth &#58;= 80 oBrw&#58;aCols&#91;2&#93;&#58;nDataStrAlign &#58;= AL_RIGHT oBrw&#58;aCols&#91;2&#93;&#58;bEditvalue &#58;= &#123; || aStruc&#91; oBrw&#58;nArrayAt, 2 &#93; &#125; oBrw&#58;aCols&#91;2&#93;&#58;cEditPicture &#58;= "@Z 999 999 999&#46;99" oBrw&#58;aCols&#91;2&#93;&#58;nEditType &#58;= EDIT_GET oBrw&#58;aCols&#91;2&#93;&#58;bOnPostEdit &#58;= &#123;|o,x| aStruc&#91; oBrw&#58;nArrayAt, 2 &#93; &#58;= x, update_total&#40;oRes,oGet&#41; &#125; oBrw&#58;aCols&#91;2&#93;&#58;bStrData &#58;= &#123; || Transform&#40; aStruc&#91;oBrw&#58;nArrayAt&#93;&#91;2&#93;, "@Z 999 999 999&#46;99" &#41;&#125; oBrw&#58;aCols&#91;2&#93;&#58;nEditType &#58;= EDIT_GET_BUTTON oBrw&#58;aCols&#91;2&#93;&#58;bEditBlock &#58;= &#123;|| Del_line&#40;&#41;, update_total&#40;oRes,oGet&#41; &#125; oBrw&#58;aCols&#91;3&#93;&#58;cHeader &#58;= 'Total' oBrw&#58;aCols&#91;3&#93;&#58;nWidth &#58;= 80 oBrw&#58;aCols&#91;3&#93;&#58;nDataStrAlign &#58;= AL_RIGHT oBrw&#58;aCols&#91;3&#93;&#58;bStrData &#58;= &#123; || Transform&#40; aStruc&#91;oBrw&#58;nArrayAt&#93;&#91;3&#93;, "@Z 999 999 999&#46;99" &#41;&#125; oBrw&#58;CreateFromCode&#40;&#41; @ 100,0&#46;5 GET oGet VAR cGet OF oDlg PIXEL SIZE 95,10 oGet&#58;bChange &#58;= &#123;|nKey,nFlag,oB|&#40;Chr&#40;nKey&#41;$"0123456789&#46;,"&#41;&#125; // Logical oGet&#58;bKeyDown &#58;= &#123; | nKey | VerKey&#40;nKey,oBSum,oBMin,oBMol,oBDiv,oBPer,oBCan,oBRes,oGet&#41; &#125; @ 120,5&#46;6 GET oRes VAR cRes OF oDlg PIXEL SIZE 55,10 RIGHT COLOR CLR_RED,CLR_WHITE READONLY *@ 1&#46;3,1 BUTTON oBtn PROMPT cPastMsg OF oDlg ACTION &#40;oBCan&#58;Click&#40;&#41;,SayNum&#40;oGet,nVal&#41;&#41; FONT oFont SIZE 38,10 // Numbers @ 140 , 1 BUTTON oBt1 PROMPT "1" OF oDlg ACTION SayNum&#40;oGet,1&#41; FONT oFont PIXEL SIZE 30,10 @ 140 , 36 BUTTON oBt2 PROMPT "2" OF oDlg ACTION SayNum&#40;oGet,2&#41; FONT oFont PIXEL SIZE 30,10 @ 140 , 70 BUTTON oBt3 PROMPT "3" OF oDlg ACTION SayNum&#40;oGet,3&#41; FONT oFont PIXEL SIZE 30,10 @ 155 , 1 BUTTON oBt4 PROMPT "4" OF oDlg ACTION SayNum&#40;oGet,4&#41; FONT oFont PIXEL SIZE 30,10 @ 155 , 36 BUTTON oBt5 PROMPT "5" OF oDlg ACTION SayNum&#40;oGet,5&#41; FONT oFont PIXEL SIZE 30,10 @ 155 , 70 BUTTON oBt6 PROMPT "6" OF oDlg ACTION SayNum&#40;oGet,6&#41; FONT oFont PIXEL SIZE 30,10 @ 170 , 1 BUTTON oBt7 PROMPT "7" OF oDlg ACTION SayNum&#40;oGet,7&#41; FONT oFont PIXEL SIZE 30,10 @ 170 , 36 BUTTON oBt8 PROMPT "8" OF oDlg ACTION SayNum&#40;oGet,8&#41; FONT oFont PIXEL SIZE 30,10 @ 170 , 70 BUTTON oBt9 PROMPT "9" OF oDlg ACTION SayNum&#40;oGet,9&#41; FONT oFont PIXEL SIZE 30,10 @ 185 , 1 BUTTON oBt0 PROMPT " 0 " OF oDlg ACTION SayNum&#40;oGet,0&#41; FONT oFont PIXEL SIZE 30,10 @ 185 , 70 BUTTON oBtC PROMPT "&#46;" OF oDlg ACTION SayNum&#40;oGet,"&#46;"&#41; FONT oFont PIXEL SIZE 30,10 // Operators n&#58;=3 @ 95,120 BUTTON oBSum PROMPT " + " OF oDlg ACTION &#40;CalcRes&#40;cLastOpe,@nMemo,oGet,oRes,cPict&#41;,cLastOpe&#58;="+"&#41; FONT oFont PIXEL SIZE 30,10 @ 95,160 BUTTON oBMin PROMPT " - " OF oDlg ACTION &#40;CalcRes&#40;cLastOpe,@nMemo,oGet,oRes,cPict&#41;,cLastOpe&#58;="-"&#41; FONT oFont PIXEL SIZE 30,10 @ 110,120 BUTTON oBMol PROMPT " * " OF oDlg ACTION &#40;CalcRes&#40;cLastOpe,@nMemo,oGet,oRes,cPict&#41;,cLastOpe&#58;="*"&#41; FONT oFont PIXEL SIZE 30,10 @ 110,160 BUTTON oBDiv PROMPT " / " OF oDlg ACTION &#40;CalcRes&#40;cLastOpe,@nMemo,oGet,oRes,cPict&#41;,cLastOpe&#58;="/"&#41; FONT oFont PIXEL SIZE 30,10 // @ 125,130 BUTTON oBPer PROMPT " % " OF oDlg ACTION &#40;CalcRes&#40;cLastOpe,@nMemo,oGet,oRes,cPict&#41;,cLastOpe&#58;="%"&#41; FONT oFont PIXEL SIZE 30,10 @ 125,160 BUTTON oBCan PROMPT "&C " OF oDlg ACTION ; &#40;; ASIZE&#40;aStruc,0&#41;,; oBrw&#58;refresh&#40;&#41;,; cLastOpe&#58;="+",; nMemo&#58;=0,; oRes&#58;cText&#40;""&#41;,; oGet&#58;cText&#40;Space&#40;100&#41;&#41;,; oGet&#58;SetFocus&#40;&#41;&#41;; FONT oFont PIXEL SIZE 30,10 @ 140,160 BUTTON oClearEntryKey PROMPT " C&E " OF oDlg ACTION ClearEntryKey&#40;oGet&#41; FONT oFont PIXEL SIZE 30,10 @ 140,120 BUTTON oBRes PROMPT " = " OF oDlg ACTION &#40;CalcRes&#40;cLastOpe,@nMemo,oGet,oRes,cPict&#41;,cLastOpe&#58;=""&#41; FONT oFont PIXEL SIZE 30,10 DEFAULT // Exit *@ n+7&#46;3,1 BUTTON oBtnOk PROMPT cConfirmMsg OF oDlg ACTION &#40;lRet&#58;=&#46;T&#46;,oDlg&#58;End&#40;&#41;&#41; FONT oFont SIZE 46,13 @155,120 BUTTON oBtnAb PROMPT cAbortMsg OF oDlg ACTION &#40;lRet&#58;=&#46;F&#46;,oDlg&#58;End&#40;&#41;&#41; FONT oFont PIXEL SIZE 46,13 CANCEL @185,120 BUTTON " Print" OF oDlg ACTION Prn_Calculation&#40;aStruc&#41; FONT oFont PIXEL SIZE 46,13 // Cursors aEval&#40;oDlg&#58;aControls,&#123;|oC|iif&#40;oC&#58;ClassName&#40;&#41;="TBUTTON",oC&#58;oCursor&#58;=oCursor,&#41;&#125;&#41; ACTIVATE DIALOG oDlg CENTER; ON INIT &#40;ASIZE&#40;aStruc,0&#41;, oBrw&#58;refresh&#40;&#41;&#41;; ON PAINT &#40;oGet&#58;SetFocus&#40;&#41;&#41;; VALID &#40;oCursor&#58;End&#40;&#41;,oFont&#58;End&#40;&#41;,&#46;T&#46;&#41; RETURN iif&#40;lRet,nMemo,nInit&#41; STATIC FUNCTION SayNum&#40;oGet,xNum&#41; LOCAL cText &#58;= StrTran&#40; Alltrim&#40;oGet&#58;cText&#40;&#41;&#41;, ",", "&#46;"&#41; if ValType&#40;xNum&#41; == "C" if !"&#46;"$cText oGet&#58;cText&#40; padR&#40;cText+"&#46;",100&#41; &#41; else Tone&#40;300&#41; end else oGet&#58;cText&#40; padR&#40;cText+cValToChar&#40;xNum&#41;,100&#41; &#41; end oGet&#58;SetFocus&#40;&#41; RETURN NIL STATIC FUNCTION CalcRes&#40;cOpe,nMemo,oGet,oRes,cPict&#41; LOCAL cVal &#58;= StrTran&#40; Alltrim&#40;oGet&#58;cText&#40;&#41;&#41;, ",", "&#46;"&#41; LOCAL nVal &#58;= Val&#40;cVal&#41; if !left&#40;cVal,1&#41; $ "0123456789&#46;" cVal &#58;= Substr&#40;cVal,2&#41; nVal &#58;= Val&#40;cVal&#41; end if !right&#40;cVal,1&#41; $ "0123456789&#46;" cVal &#58;= Left&#40;cVal,Len&#40;cVal&#41;-1&#41; nVal &#58;= Val&#40;cVal&#41; end if cOpe == "+" nMemo += nVal elseif cOpe == "-" nMemo -= nVal elseif cOpe == "*" nMemo *= nVal elseif cOpe == "/" nMemo /= nVal elseif cOpe == "%" nMemo &#58;= nMemo*nVal/100 end oGet&#58;cText&#40; Space&#40;100&#41; &#41; oRes&#58;cText&#40; Tran&#40;nMemo,"@E 999,999,999,999,999&#46;99"&#41; &#41; //xBrowser IF len&#40;ALLTRIM&#40;cVal&#41;&#41;=0 else aadd&#40;aStruc,&#123;cOpe,VAL&#40;cVal&#41;,nMemo&#125;&#41; ENDIF oBrw&#58;GoBottom&#40;&#41; oBrw&#58;Refresh&#40;&#41; oGet&#58;SetFocus&#40;&#41; RETURN NIL STATIC FUNCTION VerKey&#40;nKey,oBSum, oBMin, oBMol, oBDiv, oBPer, oBCan, oBRes,oGet&#41; local nPos if nKey == 107 // "+" oBSum&#58;Click&#40;&#41; elseif nKey == 8 // "<-" BackSpace&#40;oGet&#41; nPos &#58;= &#40;len&#40;ALLTRIM&#40;oGet&#58;cText&#40;&#41;&#41;&#41;&#41; oGet&#58;SetPos&#40; nPos+1 &#41; elseif nKey == 109 // "-" oBMin&#58;Click&#40;&#41; elseif nKey == 106 // "*" oBMol&#58;Click&#40;&#41; elseif nKey == 111 // "/" oBDiv&#58;Click&#40;&#41; end RETURN 0 func ClearEntryKey&#40;oGet&#41; oGet&#58;cText &#58;= space&#40;100&#41; oGet&#58;SetFocus&#40;&#41; return nil func BackSpace&#40;oGet&#41; local cGetTemp cGetTemp &#58;= left&#40;ALLTRIM&#40;oGet&#58;cText&#40;&#41;&#41;,&#40;len&#40;ALLTRIM&#40;oGet&#58;cText&#40;&#41;&#41;&#41;-1&#41;&#41; oGet&#58;cText &#58;= cGetTemp + space&#40;100&#41; oGet&#58;SetFocus&#40;&#41; return nil function Prn_Calculation&#40;aStruc&#41; local oPrn, oFont, oPen Local nLinI, nColI, nLinF, nColF LOCAL I , nRow LOCAL cVal LOCAL cTotal nRow&#58;=2 PRINT oPrn NAME "Impresión en Vertical&#46;&#46;" PREVIEW DEFINE FONT oFont NAME "Arial" SIZE 0, -10 BOLD OF oPrn DEFINE PEN oPen WIDTH 2 OF oPrn oPrn&#58;SetPage&#40;9&#41; // A4 oPrn&#58;SetPortrait&#40;&#41; //Vertical PAGE nLinI &#58;= 0&#46;90 nColI &#58;= 0&#46;90 nLinF &#58;= 28&#46;6 nColF &#58;= 20&#46;0 oPrn&#58;Cmtr2Pix&#40;@nLinI, @nColI&#41; oPrn&#58;cmtr2Pix&#40;@nLinF, @nColF&#41; oPrn&#58;Box&#40;nLinI, nColI, nLinF, nColF, oPen &#41; oPrn&#58;cmSay&#40; 1&#46;0, 1&#46;0, dtoc&#40;date&#40;&#41;&#41;+ " " + time&#40;&#41;, oFont,,CLR_BLACK,,PAD_LEFT &#41; oPrn&#58;cmSay&#40; 1&#46;0, 10&#46;5, "Berechnung", oFont,,CLR_BLACK,,PAD_CENTER &#41; FOR I &#58;= 1 TO len&#40;aStruc&#41; cVal &#58;= Transform&#40; aStruc&#91;I&#93;&#91;2&#93;, "@Z 999 999 999&#46;99" &#41; cTotal &#58;= Transform&#40; aStruc&#91;I&#93;&#91;3&#93;, "@Z 999 999 999&#46;99" &#41; oPrn&#58;cmSay&#40; nRow + I*0&#46;6, 3&#46;0, aStruc&#91;I&#93;&#91;1&#93; , oFont,,CLR_BLACK,,PAD_LEFT &#41; oPrn&#58;cmSay&#40; nRow + I*0&#46;6, 4&#46;0, cVal , oFont,,CLR_BLACK,,PAD_LEFT &#41; IF I > 1 IF aStruc&#91;I&#93;&#91;1&#93; = "*" &#46;OR&#46; aStruc&#91;I&#93;&#91;1&#93;="/" &#46;OR&#46; aStruc&#91;I&#93;&#91;1&#93;="%" oPrn&#58;cmSay&#40; nRow + &#40;I-1&#41; *0&#46;6, 7&#46;0, "= "+ str&#40;aStruc&#91;I-1&#93;&#91;3&#93;&#41; , oFont,,CLR_BLACK,,PAD_LEFT &#41; oPrn&#58;Line&#40; nRow + &#40;I-1&#41; *0&#46;6, 0, nRow + &#40;I-1&#41; *0&#46;6, 15&#41; ENDIF ENDIF NEXT oPrn&#58;cmSay&#40; nRow + &#40;I+2&#41;*0&#46;6, 7&#46;0, cTotal , oFont,,CLR_BLACK,,PAD_LEFT &#41; ENDPAGE ENDPRINT return nil func update_total&#40;oRes,oGet&#41; local I,nTotal&#58;=0 FOR I &#58;= 1 TO len&#40;aStruc&#41; if aStruc&#91;I&#93;&#91;1&#93; == "+" nTotal += aStruc&#91;I&#93;&#91;2&#93; elseif aStruc&#91;I&#93;&#91;1&#93; == "-" nTotal -= aStruc&#91;I&#93;&#91;2&#93; elseif aStruc&#91;I&#93;&#91;1&#93; == "*" nTotal *= aStruc&#91;I&#93;&#91;2&#93; elseif aStruc&#91;I&#93;&#91;1&#93; == "/" nTotal /= aStruc&#91;I&#93;&#91;2&#93; elseif aStruc&#91;I&#93;&#91;1&#93; == "%" nTotal &#58;= nTotal*aStruc&#91;I&#93;&#91;2&#93;/100 end aStruc&#91;I&#93;&#91;3&#93;&#58;= nTotal NEXT oRes&#58;cText&#40; Tran&#40;nTotal,"@E 999,999,999,999,999&#46;99"&#41; &#41; oBrw&#58;GoBottom&#40;&#41; oBrw&#58;Refresh&#40;&#41; oGet&#58;SetFocus&#40;&#41; return nil func Del_line&#40;&#41; IF len&#40;aStruc&#41;>0 ADel&#40; aStruc, oBrw&#58;nArrayAt &#41; ASize&#40; aStruc, Len&#40; aStruc &#41; - 1 &#41; oBrw&#58;Refresh&#40;&#41; oBrw&#58;GoBottom&#40;&#41; oBrw&#58;Refresh&#40;&#41; else ASIZE&#40;aStruc,0&#41; oBrw&#58;refresh&#40;&#41; endif return NIL [/code:6ntjgyns] Changes in cBrowser-class (by NageswaraRao suggested) [code:6ntjgyns]METHOD Refresh&#40; lComplete &#41; CLASS TXBrowse DEFAULT lComplete &#58;= &#46;F&#46; &#58;&#58;KeyCount&#40;&#41; if lComplete &#58;&#58;nRowSel = 1 &#58;&#58;nArrayAt = 1 else &#58;&#58;nRowSel = Max&#40; 1, Min&#40; &#58;&#58;nRowSel, &#58;&#58;nLen &#41; &#41; &#58;&#58;nArrayAt = Min&#40; &#58;&#58;nArrayAt, &#58;&#58;nLen &#41; if &#58;&#58;nArrayAt == 0 &#46;and&#46; &#58;&#58;nLen > 0 &#58;&#58;nArrayAt &#58;= 1 endif endif &#58;&#58;GetDisplayCols&#40;&#41; return Super&#58;Refresh&#40; &#46;T&#46; &#41; [/code:6ntjgyns]
sample calculator and xBrowser
Otto, It looks really nice <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Thanks!
sample calculator and xBrowser
I updated a new the screen capture of the calculator.Now I use Manuels’s class TSButton. The design is somewhat like an IPhone calculator (BRAUN).Regards,Otto[img:1epi77qh]http&#58;//www&#46;atzwanger&#46;com/fw/calculator2&#46;jpg[/img:1epi77qh]
sample calculator and xBrowser
how may I change code in cBrowser-class
sample calculator and xBrowser
Hello kajot,cbrowser was a typo. If should be xBrowse. But I think this change is not necessary anymore. The newer releases of FIVEWIN have implemented this change.Regards,Otto
sample compilation error
the sample dbf03.prg has error of missing RDD . Can any body tell me what libraries it needs to be created from the buildhd.bat Error: Unresolved external '_HB_FUN__ADS' referenced from E:\PROGRAMS\CLIPPER\CL PFWH\SAMPLES\DBF03.OBJ * There are errors E:\programs\clipper\clpfwh\SAMPLES>
sample compilation error
Ehab, Please make this change into samples\Dbf03.prg: [code:1zqdexeg] #ifndef __HARBOUR__ REQUEST _ADS #else REQUEST ADS #endif [/code:1zqdexeg]
sample compilation error
Though the file is exist (Clients.dbf) Application =========== Path and name: E:\COMPILER\clipper\FWH\SAMPLES\dbf03.exe (32 bits) Size: 1,230,848 bytes Time from start: 0 hours 0 mins 2 secs Error occurred at: 06/17/06, 00:29:13 Error description: Error ADSCDX/5025 Open error: Clients Stack Calls =========== Called from: => DBUSEAREA(0) Called from: => CLIENTSBROWSE(191) Called from: => (b)BUILDMENU(46) Called from: => TMENU:COMMAND(0) Called from: => TWINDOW:COMMAND(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: => _FWH(0) Called from: => WINRUN(0) Called from: => TWINDOW:ACTIVATE(0) Called from: => MAIN(29)
sample compilation error
Ehab, 5025 AE_INVALID_TABLETYPE Advantage Error Guide An invalid table type was specified. Valid choices are ADS_CDX, ADS_NTX or ADS_ADT. The table type must support the memo file type to be opened, if applicable. The ADS_ADT table type supports ADT tables, ADI indexes, and ADM memos. The ADS_CDX table type supports DBF tables, CDX and IDX indexes, and FPT memos. The ADS_NTX table type supports DBF tables, NTX indexes, and DBT memos.
sample emf.prg
I compile this sample and make errors why ?
sample emf.prg
Hello Silvio, I compiled Emf.prg without errors. If I open < Test.emf > with a viewer, it shows a line, but i can see only a white background without line after starting the exe-file. What is the error You get ( a compile-error or starting the exe-file ) ? Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
sample emf.prg
[img:3hju8zla]http&#58;//img299&#46;imageshack&#46;us/img299/1908/gpfemfse3&#46;jpg[/img:3hju8zla]
sample error
Compiling... Harbour Compiler Alpha build 45.0 (Flex) Copyright 1999-2005, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'mscomm32.prg' and generating preprocessed output to 'mscomm32.p Lines 18, Functions/Procedures 1 Generating C source output to 'mscomm32.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland mscomm32.c: Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_HB_FUN_TOLEAUTO' referenced from E:\COMPILER\ R\FWH\SAMPLES\MSCOMM32.OBJ
sample error
You need of hbole.lib with Harbour. Otherwise use xHarbour which has OLE built in. EMG
sample error
How can I use hbole.lib . I seached all the lib directories !! not found. Pls help I am not going to use xHarbour . How can I use it in buildhd.bat thanks
sample error
Sent to your private email. EMG
sample error
error from comiling mssql.prg using buildhd.bat Compiling... Harbour Compiler Alpha build 45.0 (Flex) Copyright 1999-2005, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'mssql.prg' and generating preprocessed output to 'mssql.ppo'... Lines 33, Functions/Procedures 1 Generating C source output to 'mssql.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland mssql.c: Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_HB_FUN_INIODBC32' referenced from E:\PROGRAMS\CLIPP ER\FWH\LIB\FIVEH.LIB|TRDDODBC Error: Unresolved external '_HB_FUN_ENDODBC32' referenced from E:\PROGRAMS\CLIPP ER\FWH\LIB\FIVEH.LIB|TRDDODBC Error: Unresolved external '_HB_FUN__TRDD' referenced from E:\PROGRAMS\CLIPPER\F WH\LIB\FIVEH.LIB|TRDDODBC Error: Unresolved external '_HB_FUN_RDDSETFIELDEXTENT' referenced from E:\PROGRA MS\CLIPPER\FWH\LIB\FIVEH.LIB|TRDD Error: Unresolved external '_HB_FUN_RDDADDFIELD' referenced from E:\PROGRAMS\CLI PPER\FWH\LIB\FIVEH.LIB|TRDD * There are errors E:\programs\clipper\FWH\SAMPLES>
sample error
Ehab, That sample is for FW 16 bits only.
sample error
Paths are correct with other samples !!!! Compiling... Harbour Compiler Alpha build 45.0 (Flex) Copyright 1999-2005, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'test.prg' and generating preprocessed output to 'test.ppo'... Lines 38, Functions/Procedures 4 Generating C source output to 'test.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland test.c: Error E2293 e:\compiler\cpp_lang\bcc55\include\windef.h 145: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\windef.h 154: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\windef.h 155: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 296: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 355: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 1656: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 1657: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3532: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3533: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3534: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3561: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3789: ) expected Error E2139 e:\compiler\cpp_lang\bcc55\include\winnt.h 3882: Declaration missing ; Error E2139 e:\compiler\cpp_lang\bcc55\include\winnt.h 3892: Declaration missing ; Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3949: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3950: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4796: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4797: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4932: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4933: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4934: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4935: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4936: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4937: ) expected Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4938: ) expected Error E2228 e:\compiler\cpp_lang\bcc55\include\winnt.h 4938: Too many error or w arning messages *** 26 errors in Compile *** Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Fatal: Unable to open file 'TEST.OBJ'
sample error
Ehab, Whats the code of test.prg ?
sample error
[code:1l5onun7] // Harbour pcode DLL sample // Notice that functions that already exists // on the EXE, need to be IMPORT <cFuncName> #xcommand IMPORT <cProcName1> &#91;,<cProcNameN>&#93; => ; proc <cProcName1> &#91;; proc <cProcNameN> &#93; IMPORT MsgInfo, ChooseColor function Func1&#40;&#41; MsgInfo&#40; "Hello world from a Harbour pcode DLL" &#41; MsgInfo&#40; ChooseColor&#40;&#41;, "Your choosed color was&#46;&#46;&#46;" &#41; Test&#40; "using the Extend API", "From a pcode DLL" &#41; return nil function Func2&#40; cParam1, cParam2 &#41; // passing parameters sample from the EXE MsgInfo&#40; cParam1, cParam2 &#41; return "returned from the DLL" // returning something to the EXE #pragma BEGINDUMP #include <extend&#46;api> #include <windows&#46;h> HB_FUNC&#40; TEST &#41; &#123; MessageBox&#40; 0, hb_parc&#40; 1 &#41;, hb_parc&#40; 2 &#41;, 0 &#41;; &#125; #pragma ENDDUMP [/code:1l5onun7]
sample error
Ehab, What samples\bat file are you using to build it ?
sample error
buildhd.bat
sample error
I was compiling genfold.prg sample and I got that error : Application =========== Path and name: E:\COMPILER\clipper\FWH\SAMPLES\genfold.exe (32 bits) Size: 1,070,080 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 12/08/06, 00:53:38 Error description: Error BASE/1004 Message not found: TWINDOW:LRESIZE16 Args: [ 1] = O Object Stack Calls =========== Called from: => __ERRRT_SBASE(0) Called from: => TWINDOW:ERROR(179) Called from: source\rtl\tobject.prg => (b)HBOBJECT(105) Called from: => TWINDOW:MSGNOTFOUND(0) Called from: => TWINDOW:LRESIZE16(169) Called from: => TFOLDER:DEFAULT(0) Called from: => TFOLDER:NEW(0) Called from: genfold.prg => MAIN(14)
sample error
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=5211">http://fivetechsoft.com/forums/viewtopic.php?t=5211</a><!-- m -->
sample error ""alaska2.prg""
I recompiler alaska2.prg and those errors are produced after adding the line : #include "fivewin.ch" Compiling... Harbour Alpha build 1.0 Intl. Copyright 1999-2007, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'alaska2.prg' and generating preprocessed output to 'alaska2.ppo'... alaska2.prg(16) Error E0030 Syntax error: "syntax error at 'METHOD'" alaska2.prg(16) Warning W0001 Ambiguous reference: 'SELF' 1 error No code generated Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland Error E2194: Could not find file 'alaska2.c' Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Fatal: Unable to open file 'ALASKA2.OBJ' * There are errors E:\COMPILER\clipper\FWH\SAMPLES>
sample error ""alaska2.prg""
Ehab, Thats a specific sample for Alaska Xbase++ and FW++
sample for print an array
I use wbrowse of hernan if I use this command [code:1k84fv90] oBrw&#58;SetArray&#40; aMat &#41; &#46;&#46;&#46;&#46; action &#40;oBRW&#58;Report&#40;"prova di stampa", &#46;t&#46; &#41; &#41; [/code:1k84fv90] the program make error !!!!! Alias Array don't exist there is asmall sample to print an array from listbox ? -------------------------------------------------------------
sample for print to fiscal calc
Some one have an sample to send a print to fiscal machine ( cash) ? I remember there was a fiscal class when we made fivewin/clipper applications ...someone have this class ? Regards
sample for tpv
Any one can write to me an small sample to make a mini TPV with a browse ? I made buttons of products when I click on it must insert a record on listbox ( cod,desc,price,cat) regards
sample menu check
where I can found a sample to set a check into a menu ? I have a logic variable lnormal and two menuitem to set
sample menu check
is there a sample ?
sample menu check
Silvio: I have no test it yet oMenuItem:lChecked := (.T.) Regards
sample menu check
fwh\samples\testxbr3.prg
sample of Nages
a few months ago our friend Nages made a dialog system inside windows in an MDI context, but now I can't find the test, can anyone tell me where I can find it?
sample of Nages
This? <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36244&p=234396&hilit=dialog+mdichild#p234396">viewtopic.php?f=3&t=36244&p=234396&hilit=dialog+mdichild#p234396</a><!-- l -->
sample of Nages
[quote="cnavarro":gdd8rlpy]This? <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36244&p=234396&hilit=dialog+mdichild#p234396">viewtopic.php?f=3&t=36244&p=234396&hilit=dialog+mdichild#p234396</a><!-- l -->[/quote:gdd8rlpy] [size=200:gdd8rlpy]YES[/size:gdd8rlpy]
sample of richedit - urgente
hi, in samples of fwh, has an little sample of richedit, i need an more complex, using fields memo of database , not files, someone has one? thanks
sample of tree with checkbox
How I can make a test with treeview and checkbox with data from dbf ? On dbf I have 3 field level numeric 3 // ultil 3 levels menu caracters 30 show 1 logic sample : 001 customers .t. // first level of first menu 011 facturas .t. // second level of first menu 111 report client .t. // third level of first menu have you an idea or test minimal sample ?
sample of tree with checkbox
Hola Silvio: Yo usaria xBrowse para eso: [url:cx6nb274]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_class_txbrowse[/url:cx6nb274] Un saludo JLL
sample onemany
I wish a test with Xbrowse with 3 DBF on a ownd or dialog where I can see it pls ?
sample onemany
Silvio, before each Browse You have to select the DBF like : DBSELECTAREA(1) [img:171zejcp]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrw10&#46;jpg[/img:171zejcp] [code=fw:171zejcp]<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;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg, oBrw1, oBrw2, oBrw3, hDC, oFont, oBrush1<br /><span style="color: #00C800;">local</span> aGrad := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp; &nbsp;RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">140</span>, &nbsp;<span style="color: #000000;">56</span>, &nbsp; <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, &nbsp;RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">234</span>, <span style="color: #000000;">109</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, &nbsp; &nbsp;RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">234</span>, <span style="color: #000000;">109</span> <span style="color: #000000;">&#41;</span>, &nbsp;RGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">85</span>, &nbsp;<span style="color: #000000;">62</span>, &nbsp;<span style="color: #000000;">84</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush1 <span style="color: #0000ff;">COLOR</span> &nbsp;<span style="color: #000000;">128</span> <span style="color: #B900B9;">// red</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush2 FILENAME <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\C</span>artoon.bmp"</span><br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUST<br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />USE STATES <span style="color: #0000ff;">ALIAS</span> STA<br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />USE SALES <span style="color: #0000ff;">ALIAS</span> SAL<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><br />&nbsp; &nbsp;<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'XBrowse Gradient Rows'</span><br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw1 <span style="color: #0000ff;">OF</span> oDlg ; <br />BACKGROUND <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\C</span>artoon.bmp"</span> BCK_TILED ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'CUST'</span> <br /><br />oBrw1:<span style="color: #000000;">nRowDividerStyle</span> = LINESTYLE_NOLINES<br />oBrw1:<span style="color: #000000;">nColDividerStyle</span> = LINESTYLE_NOLINES<br />oBrw1:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;= MARQSTYLE_HIGHLROW<br /><br />AEval<span style="color: #000000;">&#40;</span> oBrw1:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> | oCol | oCol:<span style="color: #000000;">bPaintText</span> := <span style="color: #000000;">&#123;</span> | oCol, hDC, cData, aRect | ;<br />PaintCol<span style="color: #000000;">&#40;</span> oCol, hDC, cData, aRect <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />oBrw1:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">&#40;</span> oBrush1, <span style="color: #000000;">&#41;</span><br />oBrw1:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// ----------</span><br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">XBROWSE</span> oBrw2 <span style="color: #0000ff;">OF</span> oDlg ; <br />BACKGROUND <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\C</span>artoon.bmp"</span> BCK_TILED ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'STA'</span> <br /><br />oBrw2:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />DBSELECTAREA<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">240</span> <span style="color: #0000ff;">XBROWSE</span> oBrw3 <span style="color: #0000ff;">OF</span> oDlg ; <br />BACKGROUND <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\C</span>artoon.bmp"</span> BCK_TILED ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">PIXEL</span> ;<br /><span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">'SAL'</span> <br /><br />oBrw3:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrush1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrush2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ------------ &nbsp;Selected Row = Red / White ---------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PAINTCOL<span style="color: #000000;">&#40;</span> oCol, hDC, cData, aRect <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">if</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">VGetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == Cust-><span style="color: #000000;">&#40;</span> OrdKeyNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; GradientFill<span style="color: #000000;">&#40;</span> hDC, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">3</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">5</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, <span style="color: #000000;">16777215</span>, <span style="color: #000000;">15589562</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, .T. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Blue on White</span><br /><br />&nbsp; &nbsp; &nbsp; RoundBox<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span>, WndWidth<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">22</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">235</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; RoundBox<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span>, WndWidth<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">21</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">162</span>, <span style="color: #000000;">206</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">endif</span><br /><br />SetTextColor<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Yellow Text</span><br />DrawTextEx<span style="color: #000000;">&#40;</span> hDC, cData, aRect, oCol:<span style="color: #000000;">nDataStyle</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;<br />&nbsp;</div>[/code:171zejcp] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
sample onemany
Mr. Uwe [quote:2z3ykxav]before each Browse You have to select the DBF like : DBSELECTAREA(1)[/quote:2z3ykxav] It is not necessary to use DBSELECTAREA(n) at all because we specify the "ALIAS" clauses both while opening the files and also when defining and running the Xbrowses. Please try removing all lines containing DBSELECTAREA(n) and test. The program functions exactly the same way. I am sure you know that we can now use the single statement [code=fw:2z3ykxav]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw1:<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp;= MARQSTYLE_HIGHLWIN7</div>[/code:2z3ykxav] to get the win7style effect.
sample onemany
PERHAPS you not UNDERSTOOD MINE PROBLEM FIRST DBF CODE DESC SECOND DBF CODE CODE1 // THIS IS THE CODE OF FIRST DBF DESC THIRD DBF CODE CODE1 // THIS IS THE CODE OF SECOND DBF DESC WHEN i CLICK ON A RECORD OF FIRST XBROWSE THE PROCEDURE MUST SHOW THE RECORDS OF THAT CODE ON XBRW2 AND XBRW3
sample onemany
Use oBrw:bOnChange Regards Anser
sample to print a memo filed
Someone have a sample to print a memo filed with printer class ? I must add this filed to a report Regard
sample to print a memo filed
Silvio, It is already implemented in GETs multilines. Please review the source code of METHOD Print() CLASS TMultiGet.
sample to print a memo filed
Silvio, you can extract every line with memoline() and print it with tPrinter:CmSay(). Stefan
sample to print a memo filed
thanks I resolve it
sample with METER
it is possible with click mouse move a meter ( up and down) ? I want with a combobox select an meter to select a percentual value .... sample : I want select an hour as this picture ( on delphi there is a class made it) [url=http&#58;//img167&#46;imageshack&#46;us/my&#46;php?image=timeclickvs4&#46;png:ukx1j9j1][img:ukx1j9j1]http&#58;//img167&#46;imageshack&#46;us/img167/4804/timeclickvs4&#46;th&#46;png[/img:ukx1j9j1][/url:ukx1j9j1]
sample with bitmaps
can I have a sample of listbox with bitmaps , please as the fwbrowse.prg of fwh ?
sample with fget edit memo
hi, someone has an little sample using memos, where i show the line edited, changing the fonts , and add lines without the get. thanks
sample xbrowse with tabs and months
I want create a xbrowse with tabs down with this dbf codice C 4 Datain D 8 Dataout D 8 on each tabs I want insert the name of the months and I want index the dbf on that month I want create only six tabs "May","Jun","Lug","Ago","Sep", "All" May index from 01-05-09 to 30-05-09 Jun index from 01-06-09 to 30-06-09 .... All index from 01-05-09 to 30-09-09 Have you an sample ?
sample xbrowse with tabs and months
Mr Sylvio Use bSetUp parameter ( 4th parameter ) to define your own columns and groups. You can get what you want when you define the groups in your code. Finally bSetUp should evaluate to .T. . Then xbrowse's report method does not add any columns or groups on its own. In your code, define the group like this: [code=fw:3obia46d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />GROUP <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> DToS<span style="color: #000000;">&#40;</span> FIELD-><your_date_field> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp;HEADER <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> CMonth<span style="color: #000000;">&#40;</span> FIELD-><your_date_field> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3obia46d] Make sure your table is indexed or sorted in the date order.
samples labels class
Hi, i try use samples\label class, but found several errors , theres an new one?
samples\fiverep
Hi, Why does not work?. They are some missing files (such as expbuild.rc and bmps) and when you compile, you get the following error: Error description: Error BASE/1003 Variable does not exist: ORDER Stack Calls =========== Called from: .\source\classes\TDICT.PRG => (b)TDICT_NEW(140) Called from: => ORDCREATE(0) Called from: .\source\classes\TDICT.PRG => TDICT:NEW(140) Called from: fiverep.prg => TFIVEREP:NEW(59) Called from: fiverep.prg => MAIN(11)
samples\fiverep
it is an old project from 1.44 or 1.66 never finished
samples\fiverep
Thank you Mr. Silvio. Do you know why?. It will be very interesting to have an interactive designer for REPORT.
samples\fiverep
I tried to make a visual designer but none want help me
samples\fiverep
Mr. Silvio, I am not refering to a product like Fast Report. Only for class TReport(), to allow the user to choose fields, titles, sizes, fonts and save and restore. Not a Visual product such Fast Report, which is quite difficult to do I guess. Thank you.
samples\fiverep
In a very limited way \fwh\samples\xbrgen.prg can be used to generate report code also. We can select ( or drag and drop ) any dbf file. It is shown as xbrowse. We can hide columns not wanted and rearrange columns. Check preview and finally we can generate code. It gives xbrowse code in 3 different programming styles and one code to generate the same report. I agree the features as a report generator are extremely primitive but may be enough to do a lot of quick and dirty job.
samples\inspect.prg doesn't work
Hi,when I compile samples\inspect.prg, I get following error:[quote:10cazjs1]Application =========== Path and name: D:\fw809\fwh\samples\inspect.exe (32 bits) Size: 1,570,304 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 09/19/08, 13:08:05 Error description: Error BASE/1108 Argument error: AT Args: [ 1] = C \rtf [ 2] = N 32 Stack Calls =========== Called from: => AT(0) Called from: .\source\function\GTF.PRG => ISRTF(0) Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA(0) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT(0) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY(0) Called from: .\source\classes\CONTROL.PRG => TXBROWSE:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => WINRUN(0) Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(0) Called from: inspect.prg => MAIN(18) [/quote:10cazjs1]
samples\inspect.prg doesn't work
Hello Gilbert,The same error.For the moment, i changed back to FWH 8.08,because after intensitive xBrowse-testing, there have been strange behaviours, i didn't have withversion 8.08.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
samples\inspect.prg doesn't work
This fix is required in Class TXBrowse:line 5857:[code:858modzz] if ValType&#40; cData &#41; == "C" &#46;and&#46; IsRtf&#40; cData &#41; cData &#58;= "<RichText>" endif [/code:858modzz]With such change, samples\Inspect.prg is working fine.A new FWH build with this fix will be available in just some minutes, thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
save Attachments from outllook application object
I found a solution test on vb language : this test save the Attachments on a specific folder -------------------------------------------------------------------------------------------------------------------- Private Sub ThisApplication_NewMail() Handles Me.NewMail Dim inBox As Outlook.MAPIFolder = Me.ActiveExplorer() _ .Session.GetDefaultFolder(Outlook. _ OlDefaultFolders.olFolderInbox) Dim inBoxItems As Outlook.Items = inBox.Items Dim newEmail As Outlook.MailItem inBoxItems = inBoxItems.Restrict("[Unread] = true") Try For Each collectionItem As Object In inBoxItems newEmail = TryCast(collectionItem, Outlook.MailItem) If newEmail IsNot Nothing Then If newEmail.Attachments.Count > 0 Then For i As Integer = 1 To newEmail.Attachments.Count Dim saveAttachment As Outlook.Attachment = _ newEmail.Attachments(i) newEmail.Attachments(i).SaveAsFile _ ("C:\TestFileSave\" & (newEmail _ .Attachments(i).FileName)) Next i End If End If Next collectionItem Catch ex As Exception If Left(ex.Message, 11) = "Cannot save" Then MessageBox.Show("Create Folder C:\TestFileSave") End If End Try End Sub ------------------------------------------------------------------------------------------------ Someone can translate it into FWH Please ?
save Attachments from outllook application object
[url:ib33hjhj]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=17243#p89867[/url:ib33hjhj] Anser
save Attachments from outllook application object
Dear Ans, I saw this help many day ago, I use the test of Otto to drag ONE message from Outlook [b:bwl4dyu1]THE PROBLEM I ASK IS ANOTHER [/b:bwl4dyu1] When I drag this message I[b:bwl4dyu1] MUST NOT SAVE ALL ATTACKS OF ALL ATTACKS THERE ARE IN OUTLOOK OF ALL MESSAGES[/b:bwl4dyu1] [b:bwl4dyu1]BUT ONLY THE ATTACKS OF THE MESSAGE I DRAG AND INSERT ON FWH APPLICATION[/b:bwl4dyu1]
save Attachments from outllook application object
I try with : function dropread() local oDlg LOCAL oOutlook := TOleAuto():New( "Outlook.Application" ) local myOlExp := oOutlook:ActiveExplorer local oMail local oGet local cKategorie := space(50) local cStichwort := space(50) local oK := .f. local dDatum := date() local dNachfassen := date()+14 local cScanner := GetPvProfString( "SCANNER","MODELL","N",".\INI\WINHOTEL.INI" ) local ziel := "" local oDatei local I := 0 local cNotiz := "cNotiz" local oInhalt local cDatei := "" Local oAttach := 1 *-------------------------------------------------------------------------- oMail := myOlExp:Selection:Item(1) oMail:SaveAs ( "c:\temp\" + "testdemo.msg" ) cNotiz := left(ALLTRIM(oMail:body),1000) cStichwort := oMail:subject + space(50) * for each oItem In oInbox:Items for each oAttach In oMail:Attachments if valtype( oMail:ReceivedTime) == 'D' MsgInfo( oMail:ReceivedTime) else MsgInfo(valtype( oMail:ReceivedTime)) endif oMail:SaveAsFile('c:\temp\' + oAttach:filename) next *next [b:16qrnkjw]but it make error !![/b:16qrnkjw] Application =========== Path and name: C:\work\ERRORI\outlook\xTRich.Exe (32 bits) Size: 1,915,392 bytes Time from start: 0 hours 0 mins 8 secs Error occurred at: 01/27/2010, 10:13:20 Error description: Error Outlook.Application:ACTIVEEXPLORER:SELECTION:ITEM/0 S_OK: SAVEAS Args: [ 1] = C c:\temp\testdemo.msg Stack Calls =========== Called from: source\rtl\win32ole.prg => TOLEAUTO:SAVEAS(0) Called from: testdrop.prg => DROPREAD(47) Called from: testdrop.prg => (b)MAIN(15) Called from: .\source\classes\WINDOW.PRG => TRICHEDIT:MBUTTONDOWN(1887) Called from: xTRich.prg => XTRICH:MBUTTONDOWN(89) Called from: xTRich.prg => XTRICH:HANDLEEVENT(49) Called from: .\source\classes\WINDOW.PRG => _FWH(3333) Called from: => DIALOGBOX(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: testdrop.prg => MAIN(17) [b:16qrnkjw]Any Help ?[/b:16qrnkjw]
save a Png from resource
I have many resource as Png on the resource rc I compile with the exe For not have a folder of all images I wish simulate a small library where insert all these images when the user need an image I can select it from a dialog as this : [img:3jh16d58]https&#58;//i&#46;postimg&#46;cc/qBj9RHq6/fff&#46;png[/img:3jh16d58] I wish save the resource selected on a folder sample " .\images\nameofpngselected.png" because for my application the user need only 3 type of Umbrella and I can insert on library many tyoe of umbrellas How I Can make it ?
save a Png from resource
Reading an image from resource and saving as png file. [code=fw:drkuk7ca]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FW_SaveImage<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"resourcename"</span>, <span style="color: #ff0000;">"filename.png"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp;</div>[/code:drkuk7ca]
save a Png from resource
uauuuuuu !!! thanks