topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
me envian un archivo ZIP pero no puedo descoprimirlo.. | Hola.
Necesito hacer una app que descomprima un archivo, lo unico que se es que es un .zip que con el 7zip puedo descomprimirlo,
pero al querer hacerlo con xharbour utilizando zlib y hzlib no me lo descomprime, solo dice que no pudo descomprimirlo.
no tiene contraseña el zip.
gracias. |
me estoy volviendo loco | Hola compañeros:
Tengo una aplicación compilada en FWH 2.7 (versión muy antigua) y funcionando perfectamente desde hace años. Quiero actualizarla y para ello la compilo con FWH 8.07 (con esta versión tengo varios app funcionando perfectamente). Compila perfectamente, pero al ejecutar el EXE en el primer Dialog se bloquea, solo muestra el marco y no muestra ni los buttons. Simplemente se bloquea y aborta el EXE
Un dialog tan simple como este:
[code=fw:1ohio21v]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oprueba <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">'prueba'</span><br /> <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oprueba <span style="color: #0000ff;">action</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'continuar'</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oprueba <span style="color: #0000ff;">center</span></div>[/code:1ohio21v]
Además, NO genera el error.log
El archivo RES (creado con Pelles C) no lo he modificado.
¿Qué puede estar pasando?
Mil gracias.
Saludos.
LORENZO. |
me estoy volviendo loco | [quote="Loren":1rrko6sg]Hola compañeros:
Tengo una aplicación compilada en FWH 2.7 (versión muy antigua) y funcionando perfectamente desde hace años. Quiero actualizarla y para ello la compilo con FWH 8.07 (con esta versión tengo varios app funcionando perfectamente). Compila perfectamente, pero al ejecutar el EXE en el primer Dialog se bloquea, solo muestra el marco y no muestra ni los buttons. Simplemente se bloquea y aborta el EXE
Un dialog tan simple como este:
[code=fw:1rrko6sg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oprueba <span style="color: #0000ff;">resource</span> <span style="color: #ff0000;">'prueba'</span><br /> <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oprueba <span style="color: #0000ff;">action</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'continuar'</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oprueba <span style="color: #0000ff;">center</span></div>[/code:1rrko6sg]
Además, NO genera el error.log
El archivo RES (creado con Pelles C) no lo he modificado.
¿Qué puede estar pasando?
Mil gracias.
Saludos.
LORENZO.[/quote:1rrko6sg]Hola Loren
Yo borraría todos los. Obj compilaria y generaría el exe de cero.
Saludos.
Enviado desde mi POCOPHONE F1 mediante Tapatalk |
me estoy volviendo loco | En FWH 8.07 que BCC y xHarbour usas? E como compilas? usas classes de terceiros ó algo de la versión anterior?
Saludos. |
me estoy volviendo loco | Es probable que tengas algun control de borland?
Postea el RC
Enviado desde mi LM-K410 mediante Tapatalk |
me estoy volviendo loco | [quote="admsoporte":1cvdn9jw]Es probable que tengas algun control de borland?
Postea el RC
Enviado desde mi LM-K410 mediante Tapatalk[/quote:1cvdn9jw]
Hola, lo siento, pero los controles de BORLAND no bloquean el programa. Usando correctamente, la perfección funciona. Saludos. |
me estoy volviendo loco ;-( | Compañeros:Tengo un aplicativo funcionando perfectamente con varias DBF y utilizando la clase TWBROWSE para mostrar datos mediantes listbox. Hasta aquí todo perfecto.Ahora le he añadido un nuevo PRG (ix.prg) muy simple:funct ix msginfo('modulo en construccion')returnCompila perfecto pero ahora los listbox no me los muestra bien, ocultando todos los registros excepto donde está el foco. Quito el PRG y vuelve a funcionar perfecto.Revise las DBF y regeneré los NTX... el problema está en el nuevo PRG que añado. ¿ Como es posible ? ¿ Que relación guarda un nuevo PRG con los listbox ?Mil gracias.LORENZO. |
me estoy volviendo loco ;-( | <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Loren....quizas este link te sirva me.. yo tenia problemas.. con la TDBCombo...[url:gfxspd1l]http://www.fivetechsoft.com/forums/viewtopic.php?t=11919&highlight=relacion[/url:gfxspd1l]prueba cambiando el nombre y/o el orden de compilado de los archivos de código fuente <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->Saludos.....y suerte <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->Ricardo Ramírez! |
me estoy volviendo loco ;-( | Las brujas no existen, pero que las hay, las hay.Yo una vez tuve problemas con algo similar y con el nombre de una dbf y te entiendo, uno se vuelve loco por que no tiene lógica al final haciendo un par de cambios en los nombres, todo volvio a funcionar ok.Creer o reventar!Saludos! |
me estoy volviendo loco ;-( | Holas.Copia tus datos a otra dbf que sea nueva..Salu2 |
me estoy volviendo loco ;-( | [quote="Loren":2644xg6a]Compañeros:
Tengo un aplicativo funcionando perfectamente con varias DBF y utilizando la clase TWBROWSE para mostrar datos mediantes listbox. Hasta aquí todo perfecto.
Ahora le he añadido un nuevo PRG (ix.prg) muy simple:
funct ix
msginfo('modulo en construccion')
return
Compila perfecto pero ahora los listbox no me los muestra bien, ocultando todos los registros excepto donde está el foco. Quito el PRG y vuelve a funcionar perfecto. Revise las DBF y regeneré los NTX... el problema está en el nuevo PRG que añado.
¿ Como es posible ? ¿ Que relación guarda un nuevo PRG con los listbox ?
Mil gracias.
LORENZO.[/quote:2644xg6a]Lo unico raro que observo es que tu ejemplo de la Funct ix no retorna ningun valor, y por lo tanto al compilar debería mostrarse el error. Prueba asi: Return Msginfo("modulo en construccion"), ademas de encerrar entre paréntesis asi Function ix()Loren: Probé tu código exactamente como lo muestras, agregando un prg con el nombre ix y la funcion ix desde una ventana twibrowse, y funciona perfectamente en mi equipo. Claro que al compiar muestra la advertencia de que la funcion no retorna ningun valor. Como dicen por ahí: ¿brujería? |
me estoy volviendo loco ;-( | Lorenzo,Si usas xHarbour, prueba a compilar con Harbour, ó viceversa. Si se trata de un bug del compilador, probar con el otro es una manera de comprobarlo.Normalmente este tipo de errores esta relacionado con la tabla de símbolos general que tanto Harbour como xHarbour construyen, mantienen y usan internamente, al ejecutar un EXE. Dicha tabla de símbolos se maneja con un algoritmo de búsqueda dicotómica (la mitad de la mitad de la mitad de la mitad, etc... hasta encontrarlo. Es un sistema muy rápido y efectivo. Como ejercicio, prueba a doblar un papel por su mitad, una y otra vez, y verás como solo puedes hacerlo unas pocas veces)<!-- m --><a class="postlink" href="http://es.wikipedia.org/wiki/B%C3%BAsqueda_dicot%C3%B3mica">http://es.wikipedia.org/wiki/B%C3%BAsqu ... %C3%B3mica</a><!-- m -->Cuando el EXE arranca, una de las primeras cosas que la maquina virtual hace, es construir dicha tabla (usando la búsqueda dicotómica), usando las tablas locales de cada OBJ, y asi tener una única y global para todo el EXE. Un sólo PRG que aporte un nuevo símbolo puede ser suficiente para evidenciar un posible bug. |
me estoy volviendo loco ;-( | Sres, la informática cada día me sorprende más.He detectado el error!!! despues de casi 4 dias.Recordé que para hacer las modificaciones migré hace 4 dias el proyecto a otra carpeta con nombre superior a 8 digitos ("ALQUIWIN1"). Haciendo miles de cambios y modificaciones sugeridas por vosotros, se me ocurre de renombrar la carpeta con nombre inferior a 8 digitos ("ALQUI") y "et voilá".Todo perfecto.... los listbox y los dbcombo se muestran perfectamente se le añada o nó más funciones. ¿ Como es posible ? ¿ Que relacion guarda una cosa con otra ? Son misterios de la informática... pero al menos salí del paso.Mil gracias a todos por todoUn saludo. |
me estoy volviendo loco ;-( | Loren,Revisa en que partes de tu aplicación usas "ALQUI...". Alguna relación tiene que haber... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
me estoy volviendo loco ;-( | HolaPues creo que eso es un "misterio sin resolver"Tenias esos problemas ya hace mucho tiempo.Una de las cosas que revise primero es el fichero MAP que se crear al linkar la aplicacion.. es aqui que ten indica como se construye tu exe, y de que fuentes esta a recoger las funciones.Te recomiendo compara el fichero MAPe de antes con el misterio.y el de ahora con la solucion.Se encuentras diferencias, deves revisar tu proceso de linkeo.Hay algunos que no le alcanza "el buffer de la memoria" <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> es decir que existe diferencia entrec:\miproyecto\con nombre grande\y mas nombres\programa.objyc:\obj\programa.objte imaginas si tienes 100 prgs... y sus objs. cual es la diferencia.Vuelvo a repetir eso depende de como "linkeas" tu exe.Saludos. |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | Hola me sale este error <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> y no le comprendo que puede ser <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[code=fw:2cd247z2]<div class="fw" id="{CB}" style="font-family: monospace;">Enlazando model.exe...<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_MEMOREAD'</span> referenced <span style="color: #0000ff;">from</span> C:\FWH\LIB\FIVEHX.LIB|OLDFUNC<br />Error: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> perform link<br /><span style="color: #000000;">0</span> Files, <span style="color: #000000;">0</span> Warnings, <span style="color: #000000;">2</span> Errors<br />Tiempo de compilación: <span style="color: #000000;">0</span>.00s Tiempo de enlazado: <span style="color: #000000;">0</span>.79s Tiempo total: <span style="color: #000000;">0</span>.89s<br /> </div>[/code:2cd247z2]
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | Aida,
Cual Vérsion: Harbour, xHarbour, BCC, FiveWin?
[url:1jh9dyrh]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40678&sid=fcb067817c47dd922317f327b5401d6b[/url:1jh9dyrh]
Harbour:
[code=fw:1jh9dyrh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> HB_MEMOREAD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:1jh9dyrh]
xHarbour:
[code=fw:1jh9dyrh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> MEMOREAD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:1jh9dyrh]
Library is rtl / hbrtl.
Saludos. |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | Aida me ganaste de mano <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> , estoy obteniendo el mismo error.
[code=fw:3kuf30oe]<div class="fw" id="{CB}" style="font-family: monospace;">Turbo Incremental Link <span style="color: #000000;">6.80</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2017</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_MEMOREAD'</span> referenced <span style="color: #0000ff;">from</span> C:\FWH2106\LIB\FIVEHX.LIB|OLDFUNC<br />Error: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> perform link<br />Link Error</div>[/code:3kuf30oe]
xHarbour 1.2.3 Intl.(Simplex Build 20201212) |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | ups <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
[quote="leandro":30u1d10r]Aida me ganaste de mano <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> , estoy obteniendo el mismo error.
[code=fw:30u1d10r]<div class="fw" id="{CB}" style="font-family: monospace;">Turbo Incremental Link <span style="color: #000000;">6.80</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2017</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_MEMOREAD'</span> referenced <span style="color: #0000ff;">from</span> C:\FWH2106\LIB\FIVEHX.LIB|OLDFUNC<br />Error: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> perform link<br />Link Error</div>[/code:30u1d10r]
xHarbour 1.2.3 Intl.(Simplex Build 20201212)[/quote:30u1d10r] |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | Probad a añadir esta función en vuestro PRG principal:
function hb_MemoRead( cFileName )
return MemoRead( cFileName ) |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | [url:1lldllmf]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40678&sid=9ded099dcdca0af1eed970b04a2ba618[/url:1lldllmf]
Saludos. |
me sale este error Unresolved external '_HB_FUN_HB_MEMOREAD | Ya hay disponible un nuevo FWH 21.06 build 2 que soluciona este error.
Por favor descargadlo de nuevo, gracias |
mechanism for locking records in a DBF file | Good morning
I would like to have clarifications regarding the mechanism for locking records in a DBF file.
Based on the lock scheme
DBFLOCK_DEFAULT 0
DBFLOCK_CLIP 1
DBFLOCK_CL53 2
DBFLOCK_VFP 3
DBFLOCK_CL53EXT 4
DBFLOCK_XHB64 5
are seen as different Loked records,
is the list of locked records memorized in the file header?
How can you reset the list of locked records?
It happens that due to network disconnections I still have files
with record locked while closing and reopening the file.
Thanks all. |
mechanism for locking records in a DBF file | I have always understood record locking was stored in memory on the server. So I simply have clients re-boot the server and all is well.
I keep intending to explore a better solution to this. |
mechanism for locking records in a DBF file | +1 |
meeting xBaseforum | [url:1kz2695i]https://www.xbaseforum.de/viewtopic.php?f=93&t=9714&start=50#p113971[/url:1kz2695i]
English version soon.
Best regards,
Otto |
mega menu from DBF file | Hello friends,
I am working on DBF support for mega menu.
As a first step, I make HARBOURINO blocks from the gven source.
With the HARBORINO preprocessor, the source code can be simplified very much
Best regards,
Otto
[url:1aw9ha52]https://mybergland.com/fwforum/megamenu.html[/url:1aw9ha52] |
mejora para la clase REPORT | Hola Antonio:Ya que has hecho que xBrowse exporte a Excel, debería hacerse lo mismo con la clase REPORT y, en ambos casos, exportar también a ASCII, HTML y XML.Igualmente, en el PREVIEW, añadir una opción del tipo:if llamadodesde REPORTMENUITEM Exportar ExcelMENUITEM Exportar HTMLMENUITEM Exportar XMLMENUITUEM Exportar ASCIIMuchas gracias. Un saludo, |
mejoras en la clase REPORT | Hola:
Creo que sería bueno que la clase REPORT pudiera generar ficheros Html, excel y word:
REPORT [ <oReport> ] ;
TO FILE <toFile> TXT HTML EXCEL WORD
En el foro hay varias modificaciones separadas en este sentido, sería cuestion de juntarlas todas.
Salu2 |
melhoria na classe TBTNFLAT | Sr. Antonio,
METHOD KeyDown( nKey, nFlags )
...
//----------------------------------------------------------------------------//
METHOD KeyDown( nKey, nFlags ) CLASS TBtnFlat
do case
case nKey == VK_UP .or. nKey == VK_LEFT
::oWnd:GoPrevCtrl( ::hWnd )
case nKey == VK_DOWN .or. nKey == VK_RIGHT
::oWnd:GoNextCtrl( ::hWnd )
endcase
return ::Super:KeyDown( nKey, nFlags ) |
melhoria na classe TBTNFLAT | Implemented for next FWH build, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
memberlist | Link to [url:2g63r7ir]http://fivetechsoft.com/forums/memberlist.php[/url:2g63r7ir] does not work anymore. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Roman |
memberlist | Roman,
We keep that info as private to avoid spam. |
memo with when .f. | hi, i need move the cursor using scroolbar in memo with when False, theres any way? thanks |
memo with when .f. | Use READONLY clause instead.
EMG |
memo with when .f. | Enrico, thanks, but sometimes i need edit the memo, if i use an var , i can change to .f. or .t. , and edit or not the memo....
i need an way to change the scrollbar using when .f. |
memo with when .f. | Try
[code:3cedmk0t]oGet:lReadOnly = .T.[/code:3cedmk0t]
and
[code:3cedmk0t]oGet:lReadOnly = .F.[/code:3cedmk0t]
EMG |
memoedit() need some help. | When a user activates memoedit() the entire get is highlighted. I want to turn the highlight off. If it is not off 1 key stroke blows the data out. How can turn the highlight off? |
memoedit() need some help. | [code=fw:8es9w66t]<div class="fw" id="{CB}" style="font-family: monospace;">oDlg:<span style="color: #000000;">bStart</span> = <span style="color: #000000;">{</span> || oGet:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:8es9w66t]
EMG |
memoedit() need some help. | Hi Harvey,
[quote="hag":1di2gi4k] How can turn the highlight off?[/quote:1di2gi4k]
Maybe this helps:
[code=fw:1di2gi4k]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00D7D7;">#define</span> EM_SETSEL <span style="color: #000000;">177</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg;<br /> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> PostMessage<span style="color: #000000;">(</span>oMemo:<span style="color: #000000;">hWnd</span>, EM_SETSEL, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> </div>[/code:1di2gi4k] |
memoedit() need some help. | Thank you both for the info. Worked: oDlg:bStart = { || oGet:GoBottom() }
BTW is there any place to search for solutions etc. I often wonder where many of you come up with this info?
This forum sure does help. |
memoedit() need some help. | [quote="hag":3arn5g8n]I often wonder where many of you come up with this info?[/quote:3arn5g8n]
Hard to say. For this specific problem that was the natural solution. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
EMG |
memowrit() file type DOS or UNIX | Dear Crsitobal,
sometimes when I save text with memowrite() the files are stored as UNIX Type files.
I do not find out where I can change that the files are always DOS Type files.
I think I saw inside your fivedit this possibility. Can you please show me where you can change type format with FW source code?
Best regards,
Otto |
memowrit() file type DOS or UNIX | Dear Otto,
From google:
The main difference is in the line endings for each. Windows uses CR-LF as the line ending in a text file, while linux uses LF and MacOS uses (used?) CR. The upshot of this is that if you save a script file on Windows it will default to CR-LF which will make the script unable to be executed in Linux. |
memowrit() file type DOS or UNIX | Dear Otto
PREFERENCES - GENERAL - Convert and Settings - Set EOL CRLF ( or LF or CR ) |
memowrit() file type DOS or UNIX | Dear Antonio, dear Cristobal,
Thank you for your help.
As I need this inside my code, do you think strTans() could work?
>Windows uses CR-LF as the line ending in a text file, while linux uses LF
Best regards,
Otto |
memowrit() file type DOS or UNIX | Dear Otto,
You can use StrTran( cText, Chr( 13 ) + Chr( 10 ), Chr( 10 ) ) to go from Windows to Linux
but to go from Linux to Windows I think you can not use StrTran() or you will go into an endless loop as it will never stop:
StrTran( cText, Chr( 10 ), Chr( 13 ) + Chr( 10 ) )
So from Linux to Windows you may do:
local aLines := hb_ATokens( cText, LF )
and then create the text:
cText := ""
AEval( aLines, { | cLine | cText += cLine + CRLF } ) |
memowrit() file type DOS or UNIX | Dear Antonio,
Thank you.
As these files are only a few lines, maybe I can
STRTRAN() CRLF to something
then STRTRAN() LF to CRLF
and then something to CRLF.
I will try when I face the next time, a wrong file type.
Best regards,
Otto |
memowrit() file type DOS or UNIX | hi,
i have a "Old" which need CRLF else all is "one line"
i have this working Source which work under Xbase++
[code=fw:63l149eh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Directry.ch"</span><br />PROCEDURE MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> aDir<br /><span style="color: #00C800;">LOCAL</span> cFile<br /><span style="color: #00C800;">LOCAL</span> cMemo<br /><span style="color: #00C800;">LOCAL</span> cOut<br /><span style="color: #00C800;">LOCAL</span> i,iMax<br /><br /> aDir := Directory<span style="color: #000000;">(</span><span style="color: #ff0000;">"*.PRG"</span><span style="color: #000000;">)</span><br /> iMax := LEN<span style="color: #000000;">(</span>aDir<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> iMax<br /> cFile := aDir<span style="color: #000000;">[</span>i<span style="color: #000000;">]</span><span style="color: #000000;">[</span>F_NAME<span style="color: #000000;">]</span><br /> cMemo := MEMOREAD<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> cMemo := StrTran<span style="color: #000000;">(</span>cMemo,CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span>,CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span>+CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> cOut := UPPER<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> cOut := StrTran<span style="color: #000000;">(</span>cOut,<span style="color: #ff0000;">".PRG"</span>,<span style="color: #ff0000;">".PPG"</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// just to have other Extension</span><br /> MemoWrit<span style="color: #000000;">(</span>cOut, cMemo<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:63l149eh]
it should also run under harbour |
memvar | How can I use the name of a memory variable as a fieldname? |
memvar | How to convert the name of a memory variable into the name of a field and use the variable name as a field name? |
memvar | FIELD-> |
memvar | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=39190&p=233815#p233815">viewtopic.php?f=3&t=39190&p=233815#p233815</a><!-- l --> |
memvar | Interesting test:
[code=fw:2tt00346]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">PRIVATE</span> Salary := <span style="color: #000000;">30</span><br /><br /> USE CUSTOMER<br /><br /> subfunc<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------</span><br /><br /><span style="color: #00C800;">function</span> subfunc<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> salary := <span style="color: #000000;">10</span><br /><br /> ? salary, field->salary, memvar->salary<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2tt00346] |
memvar | The question is f.e.
select sales
goto top
cproduct:=sales->name
select products
locate for products->cproduct="smart" |
memvar | I highly recommend using data objects instead. Go here: [url:38lnp1rm]http://gointellitech.com/program.html[/url:38lnp1rm]
Look for the two articles on Introduction to Object Oriented Programming, Part I and Part II.
You can also search the forum for "database objects"
James |
memvar | [code=fw:15yscmw5]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">PRIVATE</span> cproduct<br /><br /> <span style="color: #0000ff;">select</span> sales<br /> goto top<br /> cproduct:=sales->name<br /><br /> <span style="color: #0000ff;">select</span> products<br /> locate <span style="color: #00C800;">for</span> products->&cproduct=<span style="color: #ff0000;">"smart"</span><br /> </div>[/code:15yscmw5]
OR
[code=fw:15yscmw5]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> cproduct<br /><br /> <span style="color: #0000ff;">select</span> sales<br /> goto top<br /> cproduct:=sales->name<br /><br /> <span style="color: #0000ff;">select</span> products<br /> locate <span style="color: #00C800;">for</span> products->&<span style="color: #000000;">(</span>cproduct<span style="color: #000000;">)</span>=<span style="color: #ff0000;">"smart"</span><br /> </div>[/code:15yscmw5]
OR
[code=fw:15yscmw5]<div class="fw" id="{CB}" style="font-family: monospace;"> sales-><span style="color: #000000;">(</span> dbgotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">select</span> products<br /> locate <span style="color: #00C800;">for</span> products->&<span style="color: #000000;">(</span>sales->name<span style="color: #000000;">)</span>=<span style="color: #ff0000;">"smart"</span><br /> <span style="color: #B900B9;">// or</span><br /> locate <span style="color: #00C800;">for</span> &<span style="color: #000000;">(</span>sales->name<span style="color: #000000;">)</span>=<span style="color: #ff0000;">"smart"</span><br /> </div>[/code:15yscmw5] |
memvar | Thank you India but it does not work with the macro ampersand. I tried that already yesterday and I tried it again today but it gives errors by compiling
the real source code is as follows:
select temp2
goto top
calias:=temp2->alias
select temp1
sum all temp1->calias to ntotalias |
memvar | [code=fw:7b4f9tus]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">sum</span> all temp1->&<span style="color: #000000;">(</span>calias<span style="color: #000000;">)</span> <span style="color: #0000ff;">to</span> ntotalias<br /> </div>[/code:7b4f9tus]
All the snippets I posted were after testing. If you adopt them correctly, they [b:7b4f9tus][u:7b4f9tus]should[/u:7b4f9tus] [/b:7b4f9tus]work. |
memvar | By compiling no problem but while calling the procedure I got the error message:
"error base/1449 syntax error : &" (ampersand)
PS: I am a non professional programmer working for free at the food bank of my home town |
memvar | Please try this program as it is in your fwh\samples folder
[code=fw:3cax6cvl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cfield, nTotSal<br /><br /> DBCREATE<span style="color: #000000;">(</span> <span style="color: #ff0000;">"TMP.DBF"</span>, <span style="color: #000000;">{</span><span style="color: #000000;">{</span> <span style="color: #ff0000;">"FLD"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">}</span><span style="color: #000000;">}</span>, <span style="color: #00C800;">NIL</span>, .T., <span style="color: #ff0000;">"TMP"</span> <span style="color: #000000;">)</span><br /> APPEND BLANK<br /> FIELD->FLD := <span style="color: #ff0000;">"SALARY"</span><br /> CLOSE <span style="color: #00C800;">DATA</span><br /><br /> USE TMP <span style="color: #00C800;">NEW</span><br /> cField := TMP->FLD<br /><br /> USE CUSTOMER <span style="color: #00C800;">NEW</span><br /><br /> <span style="color: #0000ff;">SUM</span> ALL CUSTOMER->&<span style="color: #000000;">(</span> cField <span style="color: #000000;">)</span> <span style="color: #0000ff;">TO</span> ntotsal<br /><br /> ? ntotsal<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3cax6cvl] |
memvar | Hallo,
The customer.dbf file that is within the fwh/samples map does not contain a fld field??
By compiling and launching the program that you suggest, I become an alert saying "Alert 38836300.00"?? |
memvar | [quote:1ktgo13y]"Alert 38836300.00"?[/quote:1ktgo13y]
This alert box show the total as 38836300.00.
That means the program worked correctly.
Now, apply the same logic to your situation. |
memvar | hallo,
Can you try my situation? The compiling is OK but when launching I got an error message
.....
select temp2
goto top
do while .NOT. eof()
calias:=temp2->alias
cnaam:=temp2->naam
select temp1
sum all temp1->&( calias ) to ntotalias
oPrn:say(nRow, 10*fntArial2:nWidth, cnaam, fntArial3)
oPrn:say(nRow, 50*fntArial2:nWidth, STR(ntotalias,3), fntArial1)
nRow += 1.3 * fntArial1:nHeight
select temp2
skip 1
enddo
...... |
memvar | JDS,
I am not exactly sure what you are trying to do, but if you use database objects you don't need to use local variables for fields--that is built into the database object.
oCustomer:Name
Is actually a buffer that contains a copy of the data in the NAME field.
Also you never need to use workareas or aliases with database objects.
Here is an example of how to build a database object for a customer database:
[code=fw:33e3v1l0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">CLASS</span> TCustomers <span style="color: #0000ff;">from</span> TDatabase<br /> <span style="color: #00C800;">Method</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">Method</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> lShared <span style="color: #000000;">)</span> <span style="color: #00C800;">Class</span> TCustomers<br /> <span style="color: #00C800;">Default</span> lShared:= .T.<br /> ::<span style="color: #00C800;">Super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,<span style="color: #ff0000;">"cust"</span>,,lShared<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">If</span> ::<span style="color: #000000;">Use</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">SetOrder</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"CUSTNO"</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// Primary key</span><br /> ::<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">self</span><br /><span style="color: #B900B9;">// Note that this assumes you have set your databases to automatically open thier indexes when you open a database.</span></div>[/code:33e3v1l0]
Now you can do:
[code=fw:33e3v1l0]<div class="fw" id="{CB}" style="font-family: monospace;">oCustomer:= TCustomer<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">msgInfo</span><span style="color: #000000;">(</span> oCustomer:<span style="color: #0000ff;">name</span> <span style="color: #000000;">)</span></div>[/code:33e3v1l0]
Have you read the articles that I provided the links to in your other message thread with the same title as this one? If not, please do.
James |
mensaje | Hola Foro , alguien tiene alguna solución para cuando se ejecuta un programa quitar el cartel de advertencia de ejecución.
hace un tiempo escuche que había una solución que se agregaba a archivo RC. si alguien la tiene muy agradecido
juan carlos |
mensaje | Hola
no se si entendi, pero eso se hace en el acceso directo del programa
busca el boton desbloquear |
mensaje | No me aparece el cartel de si desea ejecutar cada vez que lo corro |
mensaje para Paco García | Hola Paco,
Tengo el mismo problema que reportaste aquí:
<!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/harbour-users/fUjum_dSEIo">https://groups.google.com/forum/#!topic ... Ujum_dSEIo</a><!-- m -->
Por favor, ¿podrías decir cómo lo solucionaste?. Muchas gracias. |
mensaje para Paco García | Hola
No lo solucioné.
Un saludo |
menu Windows de ventana MDI no muestra los items correctamen | Hola amigos del foro:
Tengo un problema con los menus2007 en una aplicacion MDI. Cuando abro las ventanas MDI, el submenu Windows muestras los items de las ventanas MDI cortados, como si todos los items tuvieran un solo tamaño.
El submenu Windows se actualiza correctamente con cada nueva ventana MDI que abro, pero el nombre de la ventana que deberia aparecer en el menu Windows aparece cortado.
No pasa eso cuando los menus son 3D.
ya busque en le foro y no encontre una respuesta.
de antemano gracias por la respuesta.
Atentamente,
Rolando
FWH802 + xHArbour
email: <!-- e --><a href="mailto:SauroSrl@entelnet.bo">SauroSrl@entelnet.bo</a><!-- e -->
Cochabamba-Bolivia |
menu Windows de ventana MDI no muestra los items correctamen | Hola amigos del foro:
Tengo un problema con los menus2007 en una aplicacion MDI. Cuando abro las ventanas MDI, el submenu Windows muestras los items de las ventanas MDI cortados, como si todos los items tuvieran un solo tamaño.
El submenu Windows se actualiza correctamente con cada nueva ventana MDI que abro, pero el nombre de la ventana que deberia aparecer en el menu Windows aparece cortado.
No pasa eso cuando los menus son 3D.
ya busque en le foro y no encontre una respuesta.
de antemano gracias por la respuesta.
Atentamente,
Rolando
FWH802 + xHArbour
email: <!-- e --><a href="mailto:SauroSrl@entelnet.bo">SauroSrl@entelnet.bo</a><!-- e -->
Cochabamba-Bolivia |
menu and ribbon error | Hi, i use ribbon and menu in same time, sometimes the appl hangs, without error log, to make this error i click in ribbon, after in menu several times, then appl freeze... someone have the same? have a fix? can i use ribbon and menu in aplication? thanks |
menu and ribbon error | Norberto,
Please, post a sample.
I experience problems with ribbon, but not crash. Bmps just vanishes from time to time. |
menu checked same menuitem | I wish create a menu popu having the same item check ( from the same)
static ltipo1:=.f.
static ltipo2:=.f.
then from a btnbmp open a menu popup with 2 option
Function BtnPop()
local oItem1,oItem2
MENU oMenu POPUP
MENUITEM oItem1 "First" ACTION oItem:SetCheck( ltipo1 := ! ltipo1 ) CHECKED
SEPARATOR
MENUITEM oItem2 "Second" ACTION oItem2:SetCheck( ltipo2 := ! ltipo2 ) CHECKED
ENDMENU
return oMenu
why it is not compiled ? |
menu checked same menuitem | what compile error do you get ? |
menu checked same menuitem | [quote="Silvio.Falconi":2bauoq6a]I wish create a menu popu having the same item check ( from the same)
static ltipo1:=.f.
static ltipo2:=.f.
then from a btnbmp open a menu popup with 2 option
Function BtnPop()
local oItem1,oItem2
MENU oMenu POPUP
MENUITEM oItem1 "First" ACTION oItem:SetCheck( ltipo1 := ! ltipo1 ) CHECKED
SEPARATOR
MENUITEM oItem2 "Second" ACTION oItem2:SetCheck( ltipo2 := ! ltipo2 ) CHECKED
ENDMENU
return oMenu
why it is not compiled ?[/quote:2bauoq6a]
Try
[code=fw:2bauoq6a]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> BtnPop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oItem1,oItem2<br /><span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br /><span style="color: #0000ff;">MENUITEM</span> oItem1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"First"</span> <span style="color: #0000ff;">ACTION</span> oItem:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> ltipo1 := ! ltipo1 <span style="color: #000000;">)</span> CHECKED<br /><span style="color: #0000ff;">SEPARATOR</span><br /><span style="color: #0000ff;">MENUITEM</span> oItem2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Second"</span> <span style="color: #0000ff;">ACTION</span> oItem2:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> ltipo2 := ! ltipo2 <span style="color: #000000;">)</span> CHECKED<br /><span style="color: #0000ff;">ENDMENU</span><br /><span style="color: #00C800;">return</span> oMenu<br /> </div>[/code:2bauoq6a] |
menu checked same menuitem | Now I have all items checked
[img:3s4ntyrp]https://i.postimg.cc/tJXG8bbt/rr.png[/img:3s4ntyrp]
I made
static lTipo1:=.f.,ltipo2:=.f.
@ 10, 550 BTNBMP oTipo PROMPT....
oTipo:baction:= {|Self|::ShowPopUp( { |oBtn| BtnPopMenu( oBrw,oMisura,lTipo1,lTipo2 ) } )}
Function BtnPopMenu(oBrw,oDbf,lTipo1,lTipo2)
local oItem1,oItem2
MENU oMenu POPUP
MENUITEM oItem1 PROMPT "First" ACTION (oItem1:SetCheck( ltipo1 := ! ltipo1 ),;
Maketree(oDbf,oBrw)) CHECKED
SEPARATOR
MENUITEM oItem2 PROMPT "Second" ACTION oItem2:SetCheck( ltipo2 := ! ltipo2 ) CHECKED
ENDMENU
return oMenu |
menu con tecla acceso rapido a la derecha(Solucionado) | Hola compañeros.
Como hago para que en el MENUITEM de un menu en el que utilizo combinacion de teclas de acceso rapido me aparezca ajustado al margen derecho
como por ejemplo en el FivEdit de Cristobal.
yo hago esto:
[code=fw:16rtib15]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir Alt-F4"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Exit3"</span> <span style="color: #0000ff;">ACTION</span> oWndMain:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ACCELERATOR ACC_ALT, VK_F4<br /> </div>[/code:16rtib15]
Funcionar , funciona claro pero no se ajusta al margen derecho.
Gracias por vuestra inestimable ayuda.
Saludos.
Jose. |
menu con tecla acceso rapido a la derecha(Solucionado) | Prueba asì:
[code=fw:2lfq0o9z]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span> + CHR<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Alt-F4"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Exit3"</span> <span style="color: #0000ff;">ACTION</span> oWndMain:<span style="color: #000000;">END</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ACCELERATOR ACC_ALT, VK_F4</div>[/code:2lfq0o9z]
EMG |
menu con tecla acceso rapido a la derecha(Solucionado) | Muchas gracias Enrico, funciona perfecto.
Jose. |
menu modo windows funciones modo comando | Hola a todos, tengo un meno con windows fivewin, la idea es para ciertos programas del sistema poder ejecutarlos en modo comando. Esto con el objeto de que convivan hasta dar vuelta por completo los aplicativos.
Como llamo a una función o procedimiento que esta en modo comando desde modo windows, terminado de ejecutarse el aplicativo modo consola, vuelva al menu en modo windows.
Desde ya se agradece vuestra respuesta y ayuda. |
menu modo windows funciones modo comando | jgayoso,
[code=fw:2qmbmf8y]<div class="fw" id="{CB}" style="font-family: monospace;">WaitRun<span style="color: #000000;">(</span> <span style="color: #ff0000;">"misistema.exe"</span> <span style="color: #000000;">)</span></div>[/code:2qmbmf8y] |
menu popup at... | I want to show a popup menu
I made :
[code:6dj3a2ki]
oApp():oGrid:bLDblClick :={|| Disp_Men(oApp():oDlg,90,240)}
....
STAT FUNC Disp_Men(oDlg,nRow,nCol)
LOCAL oMenu
MENU oMenu POPUP 2007
MENUITEM "&Dati Generali "
ENDMENU
ACTIVATE POPUP oMenu OF oApp:oDlg AT nRow,nCol
RETURN (NIL)[/code:6dj3a2ki]
How I can Make to show this menu on the coordinates where I doubleclick with the mouse ...and not on 90,240 ? |
menu popup at... | Hello Silvio
here is the code you need for a popup on mouse cors.
[code:sd9uzrhe]
// don't forget !!!
FUNCTION MAIN()
LOCAL oWnd, hDC ............
DEFINE WINDOW oWnd FROM 0, 0 TO 24, 80
.....
.....
.....
......
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON CLICK SHOWPOPUP(oWnd,nRow,nCOL,hDC,oBrush)
//-- Your menue with Button-Bitmaps --------------//
function SHOWPOPUP(oWnd,nRow,nCOL,hDC,oBrush)
local oMenu1
MENU oMenu1 POPUP
MENUITEM RESOURCE "P_STAMM"
MENU
MENUITEM RESOURCE "Kunden" MESSAGE " ..... " ;
ACTION ( CURSORWAIT(), Patient(), SYSREFRESH() )
SEPARATOR
MENUITEM RESOURCE "Arzt" MESSAGE "....." ;
ACTION ( CURSORWAIT(), Arzt(), SYSREFRESH() )
SEPARATOR
MENUITEM RESOURCE "Kassen" MESSAGE "....." ;
ACTION ( CURSORWAIT(), Kassen(), SYSREFRESH() )
SEPARATOR
MENUITEM RESOURCE "Mitarb" MESSAGE "...." ;
ACTION ( CURSORWAIT(), Mitarbeit1(), SYSREFRESH() )
......
......
ENDMENU
ACTIVATE POPUP oMenu1 AT nRow, nCol OF oWnd
RETURN( NIL )
[/code:sd9uzrhe]
Regards
Uwe
[/code] |
menu popup at... | SORRY,
BUT PERHAPS YOU NOT UNDERSTAND THE QUESTION !!!!!!!!!!
on your code there 's not nrow and ncol variables !! |
menu popup at... | Hello Silvio,
nRow and nCol are not defined, because they come from
the MouseClick-Position inside of a Window or Dialog
where to open the Popup.
[img:2btilebm]http://www.pflegeplus.com/pictures/popup.jpg[/img:2btilebm]
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> [/img] |
menu popup at... | I not must show a popup into a dialog
BUT I must show a popup into grid ( xbrowse) when I click a record
if not set nrow and ncol
it make error
see here :
--------------------------------------------------------------
Application
===========
Path and name: C:\work\prg\VDSWIN\VdsWin.Exe (32 bits)
Size: 2,620,928 bytes
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 06/03/2008, 13:46:07
Error description: Error BASE/1003 Variable does not exist: [b:9jyvym3z]NROW[/b:9jyvym3z]
Stack Calls
===========
Called from: ASS510.prg => (b)CAW510(199)
Called from: WINDOW.PRG => TCONTROL:LDBLCLICK(0)
Called from: XBROWSE.PRG => TXBROWSE:LDBLCLICK(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.PRG => TXBROWSE:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)
Called from: main.prg => TAPPLICATION:ACTIVATE(267)
Called from: main.prg => MAIN(55)
--------------------------------------------------------------
I found now the solution !!!!
oApp():oGrid:bLDblClick :={|| Disp_Men(oApp():oDlg,90,240)}
ACTIVATE POPUP oMenu OF oDlg AT oBrw:nTop+nRow, oBrw:nLeft+nCol+4
bt it not is the good solution |
menu popup at... | Hello Silvio
I'm just busy, to do a nice xBrowse-sample.
( based of a sample from Mr. Linares )
Today, it will be in the forum.
There will some nice buttons as well
for download.
Regards
Uwe |
menu popup at... | Hello Silvio
Here is the promised source
[img:43opkff7]http://www.pflegeplus.com/Pictures/xbrowse2.jpg[/img:43opkff7]
Button download : <!-- m --><a class="postlink" href="http://www.pflegeplus.com/pictures/buttons1.zip">http://www.pflegeplus.com/pictures/buttons1.zip</a><!-- m -->
[code:43opkff7]
// Popup with Bitmaps in xBrowse
oBrw := TXBrowse():New( oDlg )
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:nRowDividerStyle := LINESTYLE_BLACK
oBrw:lColDividerComplete := .t.
oBrw:nHeaderLines := 1
oBrw:nDataLines := 1
oBrw:lAllowColSwapping := .t.
oBrw:SetRDD()
...........
...........
// cAlias1 = Alias of your Database
// cAlias2 = possible, to copy to database 2 with same fields
// otherwise cAlias2 = cAlias1
oBrw:bRClicked := {|nRow,nCol| BRPopup( nRow,nCol,oBrw,cAlias1,cAlias1) } // = Poppup
...........
...........
oBrw:CreateFromResource( 110 )
..........
RETURN( NIL )
// --------- Use your own NET-Functions ----------------------
FUNCTION BRPopup(nRow,nCol,oBrw,cAlias1,cAlias2)
LOCAL oMenu
MENU oMenu POPUP
// New
MENUITEM RESOURCE "BUTT_1" ACTION NET_APPEND()
// Delete
MENUITEM RESOURCE "BUTT_2" ACTION IIF( (cAlias1)->(DELETED()), NIL, NET_DELETE() )
// Recall
MENUITEM RESOURCE "BUTT_3" ACTION NET_RECALL()
// Copy
// cAlias1 = Alias of your database, cAlias2 = mabe copy to another Database
// otherwise same database => cAlias2 = cAlias1
MENUITEM RESOURCE "BUTT_4" ACTION NET_COPY(cAlias1,cAlias1)
ENDMENU
oBrw:Refresh()
ACTIVATE POPUP oMenu WINDOW oBrw AT nRow, nCol
RETURN( NIL )
//----------- Record-Copy ---------------------------------------------//
FUNCTION NET_COPY ( cArea1, cArea2 )
LOCAL FX, DATEN := {}, RECNO := RECNO()
// Possible to copy to another database
// otherwise nArea1 = nArea2
lReturn := .T.
DBSELECTAREA(cArea1)
FOR FX := 1 TO FCOUNT() // Fields --> Arrray
AADD(DATEN, FIELDGET(FX))
NEXT
DBSELECTAREA(cArea2)
IF NET_APPEND()
RECNO := RECNO()
ELSE
lReturn := .F.
ENDIF
IF lReturn = .T.
DBSELECTAREA(cArea2)
NET_RLOCK()
FOR FX := 1 TO FCOUNT() // Array --> Fields
FIELDPUT(FX, DATEN[FX])
NEXT
NET_ULOCK()
ELSE
MsgAlert ( "Copy of Record not possible !!!", "ATTENTION !")
ENDIF
DBSELECTAREA(cArea1)
GOTO RECNO
RETURN lReturn
[/code:43opkff7]
Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> [/img][/code] |
menu popup? | Necesito que al hacer click derecho con el ratón me aparezca un menu con las opciones para editar el registro. ¿Cómo se hace?.
Saludos. |
menu popup? | Revisa el ejemplo samples\TestPop.prg
Funciona con el click izquierdo del ratón, pero facilmente se puede hacer igual con el derecho. |
menu tipo XP | Hola Antonio:
¿Soporta la nueva versión de FWH los menús tipo XP?. ¿Hay algún ejemplo disponible?. Muchas gracias.
Salu2 |
menu tipo XP | Eduardo,
Si te refieres a los menús que fueron publicados por Arturo Tamayo, de momento no se han incluido en FWH |
menu tipo XP | Hola Antonio:
Muchas gracias por la respuesta. ¿Para cuándo tienes previsto hacerlo?. ¿Y hay más controles tipo XP?.
Salu2 |
menu tipo XP | Edu,
Esos menus no son propios de XP sino de Microsoft Office, de versiones anteriores a la actual.
FWH soporta los controles nativos de Win32. Los de Office solo se pueden imitar, pero no implementar nativamente, pues sus APIs no son públicos |
menu tipo XP | Antonio:
Muchas gracias por tu pronta respuesta. Ante todo, felicitarte por la nueva Fivetech y la profesionalidad de los servicios.
Llevo con Fivewin/Fivedos desde los tiempos de Mail Simons. En la actualidad, la pega que veo a Fivewin es que la interface gráfica es sosa. Así, por ejemplo, el Preview sigue siendo el de Windows 3.x que hizo Ignacio.
En definitiva, se echa en falta controles que permitan realzar el look de los programas, que, salvando distancias, se parecen a los de Windows 3.x, y ya ha llovido mucho desde entonces.
Ahora bien, ello no significa que estas prestaciones tengan que necesariamente venir "de serie" en Fivewin. ¿Por qué no creas una libreria adicional, como eran Fiveplus, Fivedos, Objetcs, etc?. Creo que tendría muy buena acogida y yo la compraría encantado, sabiendo que hay un respaldo y continuidad detrás.
Se que existen soluciones comerciales pero, visto lo que pasó con el Preview de René Pilon, me da miedo quedarme colgado. En fin, aquí va mi pequeña sugerencia. Muchas gracias.
Un saludo, |
menu tipo XP | Edu,
El preview se actualizó con las nuevas toolbars de 32 bits, nuevos bitmaps, y usando los temas de XP, en el caso que estés usando temas XP en tu aplicación. De hecho el preview detecta si usas temas ó no y te muestra una apariencia mucho más moderna de ser así.
FWH soporta todos los controles de Win32: Rebars, toolbars, ProgressBars, listviews, headers, statusbars, imagelists, etc.
Posiblemente no estabas al tanto de todas estas mejoras de FWH y sean tus aplicaciones las que deban ser modificadas para usar estos controles nuevos y modernos que ofrece FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
menu tipo XP | Antonio:
Gracias por responder.
Sí, ya se que soporta los controles y van de fábula. Yo me refería algo más vistoso, del tipo [img:jxt6tewu]http://www.canalfive.com/modules/coppermine/albums/userpics/10004/contaplus.jpg[/img:jxt6tewu] y con la seguridad que tales controles van a seguir con su mantenimiento.
Aprovechando el post, ¿qué nuevas incorporaciones se van a implementar en Fivewin?. Muchas gracias.
Un saludo |
menu tipo XP | Edu,
El control izquierdo de esa pantalla imita al control usado en Microsoft outlook. Como te he comentado, no es un control estandard de Windows, sino que es propio de Office y su API no es público, por lo que lo único que se puede hacer es imitarlo.
Novedades: muchas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Y seguir creciendo como hemos ido haciendo todos estos años, con constancia, profesionalidad y muy buen soporte técnico |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.