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;">(</span>ValidaCodigo<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, .T.<span style="color: #000000;">)</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;">(</span>ValidarCantidad<span style="color: #000000;">(</span> opn54QTY, opsCodept <span style="color: #000000;">)</span>, .T.<span style="color: #000000;">)</span><br /><br />...<br /><br /><span style="color: #00C800;">function</span> ValidarCantidad<span style="color: #000000;">(</span> oGet2, oGet1 <span style="color: #000000;">)</span><br /><br /> ... tu codigo<br /><br /> oGet2:<span style="color: #000000;">oJump</span> = oGet1<br /><br /><span style="color: #00C800;">return</span> .T.<br /> </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;">(</span><span style="color: #000000;">)</span><br /><br /> <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 /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Colores parpadeando"</span><br /><br /> @ <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 /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CreaTimer<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> oTimer:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">static</span> lOnOff := .F.<br /><br /> <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 /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> lOnOff := ! lOnOff, oSay:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> lOnOff, <span style="color: #ff0000;">"W+/B"</span>, <span style="color: #ff0000;">"GR+/G"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <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 /> </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()
blblb
return
procedure RddInit()
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 <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">"1.- Efectivo"</span>,<span style="color: #ff0000;">"2.- Visa "</span>,<span style="color: #ff0000;">"3.- Master "</span>,<span style="color: #ff0000;">"4.- AmEx "</span>,<span style="color: #ff0000;">"5.- Diners "</span>,<span style="color: #ff0000;">" "</span><span style="color: #000000;">}</span><br /><span style="color: #00C800;">DATA</span> oBmpFPago <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">{</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;">}</span><br /><span style="color: #00C800;">DATA</span> aModPag <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"EFECTIVO"</span>, <span style="color: #ff0000;">"CREDITO"</span> <span style="color: #000000;">}</span><br /><br />..<br />..<br />..<br />..<br />..<br /><br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> oFPago ;<br /> <span style="color: #0000ff;">VAR</span> cTVenta ;<br /> <span style="color: #0000ff;">ITEMS</span> oApp:<span style="color: #000000;">aForPago</span> ;<br /> <span style="color: #0000ff;">BITMAPS</span> oApp:<span style="color: #000000;">oBmpFPago</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span>oAcept:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ActivaFPagos<span style="color: #000000;">(</span>cTVenta, oSay<span style="color: #000000;">)</span>, oSay<span style="color: #000000;">[</span><span style="color: #000000;">10</span><span style="color: #000000;">]</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">122</span> <span style="color: #0000ff;">OF</span> oDlg<br /> oFPago:<span style="color: #000000;">SetFont</span><span style="color: #000000;">(</span>oFont1<span style="color: #000000;">)</span><br /><br /> </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://www.atzwanger.com/fw/calculator.jpg[/img:6ntjgyns]
[code:6ntjgyns]
/*********************************************************************/
/* */
/* ProcName......: MsgCalc.prg */
/* Author........: Lorenzo Gadaleta */
/* Note..........: Usage Sample : */
/* If you want e ret value in your get : */
/* oGet:VarPut( MsgCalc([nValue]) ) */
/* oGet:Refresh() */
/* Else */
/* MsgCalc() */
/* */
/*********************************************************************/
#include "FiveWin.ch"
#include "InKey.ch"
#include "xbrowse.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:={}
STATIC oBrw
FUNCTION MsgCalc(nVal)
// Here for languages pesonalization
LOCAL cTitle := "Calculator "
LOCAL cPastMsg := "&Einfügen"
LOCAL cConfirmMsg := " B&estätigen "
LOCAL cAbortMsg := " &End "
LOCAL cPict := "@E 999,999,999,999,999.99"
// End languages personalization
LOCAL n := 100
LOCAL nInit := 0
LOCAL oDlg, oFont, oCursor, oRes, cRes := ""
LOCAL nMemo:=0, nOpe
LOCAL oGet, cGet := Space(100), oBtnOk, oBtnAb, oBtn
LOCAL cLastOpe := "+"
LOCAL oBt1,oBt2,oBt3,oBt4,oBt5,oBt6,oBt7,oBt8,oBt9,oBt0,oBtC
LOCAL oBSum, oBMin, oBMol, oBDiv, oBPer, oBCan, oBRes
LOCAL lRet := .F.
local oClearEntryKey
aadd(aStruc,{"",0,0})
DEFAULT nVal := 0
nInit := 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 := TXBrowse():New( oDlg )
oBrw:nTop := 5
oBrw:nLeft := 5
oBrw:nBottom := 90
oBrw:nRight := 180
oBrw:SetArray( aStruc)
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:lColDividerComplete := .t.
oBrw:aCols[1]:cHeader := 'Key'
oBrw:aCols[1]:nWidth := 60
oBrw:aCols[1]:nDataStrAlign := AL_CENTER
oBrw:aCols[1]:nEditType := EDIT_GET_LISTBOX
oBrw:aCols[1]:aEditListTxt := {"+", "-", "*", "/"}
oBrw:aCols[1]:bOnPostEdit := {|o,x| aStruc[ oBrw:nArrayAt, 1 ] := x, update_total(oRes,oGet) }
oBrw:aCols[1]:aEditListBound := {"+", "-", "*", "/"}
oBrw:aCols[1]:bClrEdit := oBrw:bClrStd
oBrw:aCols[2]:cHeader := 'Value'
oBrw:aCols[2]:nWidth := 80
oBrw:aCols[2]:nDataStrAlign := AL_RIGHT
oBrw:aCols[2]:bEditvalue := { || aStruc[ oBrw:nArrayAt, 2 ] }
oBrw:aCols[2]:cEditPicture := "@Z 999 999 999.99"
oBrw:aCols[2]:nEditType := EDIT_GET
oBrw:aCols[2]:bOnPostEdit := {|o,x| aStruc[ oBrw:nArrayAt, 2 ] := x, update_total(oRes,oGet) }
oBrw:aCols[2]:bStrData := { || Transform( aStruc[oBrw:nArrayAt][2], "@Z 999 999 999.99" )}
oBrw:aCols[2]:nEditType := EDIT_GET_BUTTON
oBrw:aCols[2]:bEditBlock := {|| Del_line(), update_total(oRes,oGet) }
oBrw:aCols[3]:cHeader := 'Total'
oBrw:aCols[3]:nWidth := 80
oBrw:aCols[3]:nDataStrAlign := AL_RIGHT
oBrw:aCols[3]:bStrData := { || Transform( aStruc[oBrw:nArrayAt][3], "@Z 999 999 999.99" )}
oBrw:CreateFromCode()
@ 100,0.5 GET oGet VAR cGet OF oDlg PIXEL SIZE 95,10
oGet:bChange := {|nKey,nFlag,oB|(Chr(nKey)$"0123456789.,")} // Logical
oGet:bKeyDown := { | nKey | VerKey(nKey,oBSum,oBMin,oBMol,oBDiv,oBPer,oBCan,oBRes,oGet) }
@ 120,5.6 GET oRes VAR cRes OF oDlg PIXEL SIZE 55,10 RIGHT COLOR CLR_RED,CLR_WHITE READONLY
*@ 1.3,1 BUTTON oBtn PROMPT cPastMsg OF oDlg ACTION (oBCan:Click(),SayNum(oGet,nVal)) FONT oFont SIZE 38,10
// Numbers
@ 140 , 1 BUTTON oBt1 PROMPT "1" OF oDlg ACTION SayNum(oGet,1) FONT oFont PIXEL SIZE 30,10
@ 140 , 36 BUTTON oBt2 PROMPT "2" OF oDlg ACTION SayNum(oGet,2) FONT oFont PIXEL SIZE 30,10
@ 140 , 70 BUTTON oBt3 PROMPT "3" OF oDlg ACTION SayNum(oGet,3) FONT oFont PIXEL SIZE 30,10
@ 155 , 1 BUTTON oBt4 PROMPT "4" OF oDlg ACTION SayNum(oGet,4) FONT oFont PIXEL SIZE 30,10
@ 155 , 36 BUTTON oBt5 PROMPT "5" OF oDlg ACTION SayNum(oGet,5) FONT oFont PIXEL SIZE 30,10
@ 155 , 70 BUTTON oBt6 PROMPT "6" OF oDlg ACTION SayNum(oGet,6) FONT oFont PIXEL SIZE 30,10
@ 170 , 1 BUTTON oBt7 PROMPT "7" OF oDlg ACTION SayNum(oGet,7) FONT oFont PIXEL SIZE 30,10
@ 170 , 36 BUTTON oBt8 PROMPT "8" OF oDlg ACTION SayNum(oGet,8) FONT oFont PIXEL SIZE 30,10
@ 170 , 70 BUTTON oBt9 PROMPT "9" OF oDlg ACTION SayNum(oGet,9) FONT oFont PIXEL SIZE 30,10
@ 185 , 1 BUTTON oBt0 PROMPT " 0 " OF oDlg ACTION SayNum(oGet,0) FONT oFont PIXEL SIZE 30,10
@ 185 , 70 BUTTON oBtC PROMPT "." OF oDlg ACTION SayNum(oGet,".") FONT oFont PIXEL SIZE 30,10
// Operators
n:=3
@ 95,120 BUTTON oBSum PROMPT " + " OF oDlg ACTION (CalcRes(cLastOpe,@nMemo,oGet,oRes,cPict),cLastOpe:="+") FONT oFont PIXEL SIZE 30,10
@ 95,160 BUTTON oBMin PROMPT " - " OF oDlg ACTION (CalcRes(cLastOpe,@nMemo,oGet,oRes,cPict),cLastOpe:="-") FONT oFont PIXEL SIZE 30,10
@ 110,120 BUTTON oBMol PROMPT " * " OF oDlg ACTION (CalcRes(cLastOpe,@nMemo,oGet,oRes,cPict),cLastOpe:="*") FONT oFont PIXEL SIZE 30,10
@ 110,160 BUTTON oBDiv PROMPT " / " OF oDlg ACTION (CalcRes(cLastOpe,@nMemo,oGet,oRes,cPict),cLastOpe:="/") FONT oFont PIXEL SIZE 30,10
// @ 125,130 BUTTON oBPer PROMPT " % " OF oDlg ACTION (CalcRes(cLastOpe,@nMemo,oGet,oRes,cPict),cLastOpe:="%") FONT oFont PIXEL SIZE 30,10
@ 125,160 BUTTON oBCan PROMPT "&C " OF oDlg ACTION ;
(;
ASIZE(aStruc,0),;
oBrw:refresh(),;
cLastOpe:="+",;
nMemo:=0,;
oRes:cText(""),;
oGet:cText(Space(100)),;
oGet:SetFocus());
FONT oFont PIXEL SIZE 30,10
@ 140,160 BUTTON oClearEntryKey PROMPT " C&E " OF oDlg ACTION ClearEntryKey(oGet) FONT oFont PIXEL SIZE 30,10
@ 140,120 BUTTON oBRes PROMPT " = " OF oDlg ACTION (CalcRes(cLastOpe,@nMemo,oGet,oRes,cPict),cLastOpe:="") FONT oFont PIXEL SIZE 30,10 DEFAULT
// Exit
*@ n+7.3,1 BUTTON oBtnOk PROMPT cConfirmMsg OF oDlg ACTION (lRet:=.T.,oDlg:End()) FONT oFont SIZE 46,13
@155,120 BUTTON oBtnAb PROMPT cAbortMsg OF oDlg ACTION (lRet:=.F.,oDlg:End()) FONT oFont PIXEL SIZE 46,13 CANCEL
@185,120 BUTTON " Print" OF oDlg ACTION Prn_Calculation(aStruc) FONT oFont PIXEL SIZE 46,13
// Cursors
aEval(oDlg:aControls,{|oC|iif(oC:ClassName()="TBUTTON",oC:oCursor:=oCursor,)})
ACTIVATE DIALOG oDlg CENTER;
ON INIT (ASIZE(aStruc,0), oBrw:refresh());
ON PAINT (oGet:SetFocus());
VALID (oCursor:End(),oFont:End(),.T.)
RETURN iif(lRet,nMemo,nInit)
STATIC FUNCTION SayNum(oGet,xNum)
LOCAL cText := StrTran( Alltrim(oGet:cText()), ",", ".")
if ValType(xNum) == "C"
if !"."$cText
oGet:cText( padR(cText+".",100) )
else
Tone(300)
end
else
oGet:cText( padR(cText+cValToChar(xNum),100) )
end
oGet:SetFocus()
RETURN NIL
STATIC FUNCTION CalcRes(cOpe,nMemo,oGet,oRes,cPict)
LOCAL cVal := StrTran( Alltrim(oGet:cText()), ",", ".")
LOCAL nVal := Val(cVal)
if !left(cVal,1) $ "0123456789."
cVal := Substr(cVal,2)
nVal := Val(cVal)
end
if !right(cVal,1) $ "0123456789."
cVal := Left(cVal,Len(cVal)-1)
nVal := Val(cVal)
end
if cOpe == "+"
nMemo += nVal
elseif cOpe == "-"
nMemo -= nVal
elseif cOpe == "*"
nMemo *= nVal
elseif cOpe == "/"
nMemo /= nVal
elseif cOpe == "%"
nMemo := nMemo*nVal/100
end
oGet:cText( Space(100) )
oRes:cText( Tran(nMemo,"@E 999,999,999,999,999.99") )
//xBrowser
IF len(ALLTRIM(cVal))=0
else
aadd(aStruc,{cOpe,VAL(cVal),nMemo})
ENDIF
oBrw:GoBottom()
oBrw:Refresh()
oGet:SetFocus()
RETURN NIL
STATIC FUNCTION VerKey(nKey,oBSum, oBMin, oBMol, oBDiv, oBPer, oBCan, oBRes,oGet)
local nPos
if nKey == 107 // "+"
oBSum:Click()
elseif nKey == 8 // "<-"
BackSpace(oGet)
nPos := (len(ALLTRIM(oGet:cText())))
oGet:SetPos( nPos+1 )
elseif nKey == 109 // "-"
oBMin:Click()
elseif nKey == 106 // "*"
oBMol:Click()
elseif nKey == 111 // "/"
oBDiv:Click()
end
RETURN 0
func ClearEntryKey(oGet)
oGet:cText := space(100)
oGet:SetFocus()
return nil
func BackSpace(oGet)
local cGetTemp
cGetTemp := left(ALLTRIM(oGet:cText()),(len(ALLTRIM(oGet:cText()))-1))
oGet:cText := cGetTemp + space(100)
oGet:SetFocus()
return nil
function Prn_Calculation(aStruc)
local oPrn, oFont, oPen
Local nLinI, nColI, nLinF, nColF
LOCAL I , nRow
LOCAL cVal
LOCAL cTotal
nRow:=2
PRINT oPrn NAME "Impresión en Vertical.." PREVIEW
DEFINE FONT oFont NAME "Arial" SIZE 0, -10 BOLD OF oPrn
DEFINE PEN oPen WIDTH 2 OF oPrn
oPrn:SetPage(9) // A4
oPrn:SetPortrait() //Vertical
PAGE
nLinI := 0.90
nColI := 0.90
nLinF := 28.6
nColF := 20.0
oPrn:Cmtr2Pix(@nLinI, @nColI)
oPrn:cmtr2Pix(@nLinF, @nColF)
oPrn:Box(nLinI, nColI, nLinF, nColF, oPen )
oPrn:cmSay( 1.0, 1.0, dtoc(date())+ " " + time(), oFont,,CLR_BLACK,,PAD_LEFT )
oPrn:cmSay( 1.0, 10.5, "Berechnung", oFont,,CLR_BLACK,,PAD_CENTER )
FOR I := 1 TO len(aStruc)
cVal := Transform( aStruc[I][2], "@Z 999 999 999.99" )
cTotal := Transform( aStruc[I][3], "@Z 999 999 999.99" )
oPrn:cmSay( nRow + I*0.6, 3.0, aStruc[I][1] , oFont,,CLR_BLACK,,PAD_LEFT )
oPrn:cmSay( nRow + I*0.6, 4.0, cVal , oFont,,CLR_BLACK,,PAD_LEFT )
IF I > 1
IF aStruc[I][1] = "*" .OR. aStruc[I][1]="/" .OR. aStruc[I][1]="%"
oPrn:cmSay( nRow + (I-1) *0.6, 7.0, "= "+ str(aStruc[I-1][3]) , oFont,,CLR_BLACK,,PAD_LEFT )
oPrn:Line( nRow + (I-1) *0.6, 0, nRow + (I-1) *0.6, 15)
ENDIF
ENDIF
NEXT
oPrn:cmSay( nRow + (I+2)*0.6, 7.0, cTotal , oFont,,CLR_BLACK,,PAD_LEFT )
ENDPAGE
ENDPRINT
return nil
func update_total(oRes,oGet)
local I,nTotal:=0
FOR I := 1 TO len(aStruc)
if aStruc[I][1] == "+"
nTotal += aStruc[I][2]
elseif aStruc[I][1] == "-"
nTotal -= aStruc[I][2]
elseif aStruc[I][1] == "*"
nTotal *= aStruc[I][2]
elseif aStruc[I][1] == "/"
nTotal /= aStruc[I][2]
elseif aStruc[I][1] == "%"
nTotal := nTotal*aStruc[I][2]/100
end
aStruc[I][3]:= nTotal
NEXT
oRes:cText( Tran(nTotal,"@E 999,999,999,999,999.99") )
oBrw:GoBottom()
oBrw:Refresh()
oGet:SetFocus()
return nil
func Del_line()
IF len(aStruc)>0
ADel( aStruc, oBrw:nArrayAt )
ASize( aStruc, Len( aStruc ) - 1 )
oBrw:Refresh()
oBrw:GoBottom()
oBrw:Refresh()
else
ASIZE(aStruc,0)
oBrw:refresh()
endif
return NIL
[/code:6ntjgyns]
Changes in cBrowser-class (by NageswaraRao suggested)
[code:6ntjgyns]METHOD Refresh( lComplete ) CLASS TXBrowse
DEFAULT lComplete := .F.
::KeyCount()
if lComplete
::nRowSel = 1
::nArrayAt = 1
else
::nRowSel = Max( 1, Min( ::nRowSel, ::nLen ) )
::nArrayAt = Min( ::nArrayAt, ::nLen )
if ::nArrayAt == 0 .and. ::nLen > 0
::nArrayAt := 1
endif
endif
::GetDisplayCols()
return Super:Refresh( .T. )
[/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://www.atzwanger.com/fw/calculator2.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://img299.imageshack.us/img299/1908/gpfemfse3.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> [,<cProcNameN>] => ;
proc <cProcName1> [; proc <cProcNameN> ]
IMPORT MsgInfo, ChooseColor
function Func1()
MsgInfo( "Hello world from a Harbour pcode DLL" )
MsgInfo( ChooseColor(), "Your choosed color was..." )
Test( "using the Extend API", "From a pcode DLL" )
return nil
function Func2( cParam1, cParam2 ) // passing parameters sample from the EXE
MsgInfo( cParam1, cParam2 )
return "returned from the DLL" // returning something to the EXE
#pragma BEGINDUMP
#include <extend.api>
#include <windows.h>
HB_FUNC( TEST )
{
MessageBox( 0, hb_parc( 1 ), hb_parc( 2 ), 0 );
}
#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:SetArray( aMat )
....
action (oBRW:Report("prova di stampa", .t. ) )
[/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://wiki.fivetechsoft.com/doku.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://www.pflegeplus.com/pictures/xbrw10.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;">(</span><span style="color: #000000;">)</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;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">140</span>, <span style="color: #000000;">56</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">234</span>, <span style="color: #000000;">109</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">237</span>, <span style="color: #000000;">234</span>, <span style="color: #000000;">109</span> <span style="color: #000000;">)</span>, RGB<span style="color: #000000;">(</span> <span style="color: #000000;">85</span>, <span style="color: #000000;">62</span>, <span style="color: #000000;">84</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush1 <span style="color: #0000ff;">COLOR</span> <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;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br />USE CUSTOMER <span style="color: #0000ff;">ALIAS</span> CUST<br /><br />DBSELECTAREA<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br />USE STATES <span style="color: #0000ff;">ALIAS</span> STA<br /><br />DBSELECTAREA<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</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 /> <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;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</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> = MARQSTYLE_HIGHLROW<br /><br />AEval<span style="color: #000000;">(</span> oBrw1:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> | oCol | oCol:<span style="color: #000000;">bPaintText</span> := <span style="color: #000000;">{</span> | oCol, hDC, cData, aRect | ;<br />PaintCol<span style="color: #000000;">(</span> oCol, hDC, cData, aRect <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br />oBrw1:<span style="color: #000000;">SetBackGround</span><span style="color: #000000;">(</span> oBrush1, <span style="color: #000000;">)</span><br />oBrw1:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// ----------</span><br /><br />DBSELECTAREA<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br /><br />DBSELECTAREA<span style="color: #000000;">(</span><span style="color: #000000;">3</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span><br />oBrush1:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oBrush2:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ------------ Selected Row = Red / White ---------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PAINTCOL<span style="color: #000000;">(</span> oCol, hDC, cData, aRect <span style="color: #000000;">)</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;">(</span><span style="color: #000000;">)</span> == Cust-><span style="color: #000000;">(</span> OrdKeyNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> GradientFill<span style="color: #000000;">(</span> hDC, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">3</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">5</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> <span style="color: #000000;">0.5</span>, <span style="color: #000000;">16777215</span>, <span style="color: #000000;">15589562</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span>, .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Blue on White</span><br /><br /> RoundBox<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">2</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">1</span>, WndWidth<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">22</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>,;<br /> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">235</span>, <span style="color: #000000;">244</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <br /> RoundBox<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">1</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> - <span style="color: #000000;">2</span>, WndWidth<span style="color: #000000;">(</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span> - <span style="color: #000000;">21</span>, aRect<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> + <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>,;<br /> RGB<span style="color: #000000;">(</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">162</span>, <span style="color: #000000;">206</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">endif</span><br /><br />SetTextColor<span style="color: #000000;">(</span> hDC, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Yellow Text</span><br />DrawTextEx<span style="color: #000000;">(</span> hDC, cData, aRect, oCol:<span style="color: #000000;">nDataStyle</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> <br /> </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> = 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://img167.imageshack.us/my.php?image=timeclickvs4.png:ukx1j9j1][img:ukx1j9j1]http://img167.imageshack.us/img167/4804/timeclickvs4.th.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;">(</span> DToS<span style="color: #000000;">(</span> FIELD-><your_date_field> <span style="color: #000000;">)</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">)</span> ;<br /> HEADER <span style="color: #0000ff;">Left</span><span style="color: #000000;">(</span> CMonth<span style="color: #000000;">(</span> FIELD-><your_date_field> <span style="color: #000000;">)</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /><br /> </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( cData ) == "C" .and. IsRtf( cData )
cData := "<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://forums.fivetechsupport.com/viewtopic.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://i.postimg.cc/qBj9RHq6/fff.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;">(</span> <span style="color: #ff0000;">"resourcename"</span>, <span style="color: #ff0000;">"filename.png"</span> <span style="color: #000000;">)</span> <br /> </div>[/code:drkuk7ca]
|
save a Png from resource
|
uauuuuuu !!! thanks
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.