topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
programa colgado en memoria | He utilizado esta function desde hace tiempo, y hasta el momento no he tenido problemas.
//--------------------------------
Function CrlProceso(cCadena)
local cFile := (cPathDef)+"\Bitaco.txt", nHand
local cCad:=Dtoc(date())+" "+time()+": "+cCadena
local FO_READWRITE:=2, FO_SHARED:=64 , FS_END:=2 //Fileio.ch
if !file(cFile)
nHand := FCreate( cFile ) // creamos el archivo
FWrite(nHand, cCad + CRLF+"") // escribimos en el archivo
FClose(nHand) // cerramos el fichero
else
nHand := FOpen( cFile, FO_READWRITE + FO_SHARED ) // abrimos el fichero lect-escrit-compartido
FSeek(nHand, 0, FS_END) // nos colocamos al final del fichero
FWrite(nHand, cCad + CRLF+"") // escribimos en el fichero
FClose(nHand) // cerramos el fichero
endif
//WinExec("NotePad.exe "+cFile)
SysRefresh()
Return nil
Saludos. |
programa colgado en memoria | Antonio,
probando el
SetResDebug( .T. )
y justo antes de salir de tu aplicación llamar a:
CheckRes()
revisando el .txt se quedaban abiertos como 6 fonts y 14 bitmaps de unos menus, corregi el programa, volvi a ejecutar y parece que todo vuelve a la normalidad, esto me arroja el checkres.txt
20/02/2012 12:31:35: ====================================================================================================
de cualquier forma a hmpaquito y mi tocayo, por ahi me parece buena su sugerencia del fope,fwrite y fclose, voy a probar, por lo pronto el programa ya no se queda cogado en memoria, seguire haciendo pruebas
gracias
saludos
paco |
programa colgado en memoria | Antonio,
por ahi detecte algunos bmps al salir que no se finalizan, son de un menu,
[code=fw:30t86v0f]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">MENU</span> ::<span style="color: #000000;">oMenu</span><span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Catálogo"</span> FILE ::<span style="color: #000000;">cDirBmps</span>+<span style="color: #ff0000;">"Blancos16.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> VerificaPermisos<span style="color: #000000;">(</span><span style="color: #000000;">4</span>,<span style="color: #000000;">3</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"con acceso"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Entregas"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Entrega16"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> VerificaPermisos<span style="color: #000000;">(</span><span style="color: #000000;">4</span>,<span style="color: #000000;">4</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"con acceso"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Devoluciones"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Devuelve16"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> VerificaPermisos<span style="color: #000000;">(</span><span style="color: #000000;">4</span>,<span style="color: #000000;">5</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"con acceso"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">SEPARATOR</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Fórmulas"</span> FILE ::<span style="color: #000000;">cDirBmps</span>+<span style="color: #ff0000;">"Formula16.bmp"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> VerificaPermisos<span style="color: #000000;">(</span><span style="color: #000000;">4</span>,<span style="color: #000000;">6</span><span style="color: #000000;">)</span>,;<br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"con acceso"</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> </div>[/code:30t86v0f]
este es el .txt
[code=fw:30t86v0f]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">20</span>/<span style="color: #000000;">02</span>/<span style="color: #000000;">2012</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">59</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">369760081</span>,TAPPLICATION:<span style="color: #00C800;">NEW</span><span style="color: #000000;">(</span><span style="color: #000000;">241</span><span style="color: #000000;">)</span>->MAIN<span style="color: #000000;">(</span><span style="color: #000000;">47</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #000000;">20</span>/<span style="color: #000000;">02</span>/<span style="color: #000000;">2012</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">59</span>: <span style="color: #000000;">BMP</span>,<span style="color: #000000;">1812270401</span>,MENUADDITEM<span style="color: #000000;">(</span><span style="color: #000000;">42</span><span style="color: #000000;">)</span>->TAPPLICATION:<span style="color: #000000;">MENUS</span><span style="color: #000000;">(</span><span style="color: #000000;">301</span><span style="color: #000000;">)</span>->MAIN<span style="color: #000000;">(</span><span style="color: #000000;">81</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #000000;">20</span>/<span style="color: #000000;">02</span>/<span style="color: #000000;">2012</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">59</span>: <span style="color: #000000;">BMP</span>,<span style="color: #000000;">486874086</span>,MENUADDITEM<span style="color: #000000;">(</span><span style="color: #000000;">42</span><span style="color: #000000;">)</span>->TAPPLICATION:<span style="color: #000000;">MENUS</span><span style="color: #000000;">(</span><span style="color: #000000;">304</span><span style="color: #000000;">)</span>->MAIN<span style="color: #000000;">(</span><span style="color: #000000;">81</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #000000;">20</span>/<span style="color: #000000;">02</span>/<span style="color: #000000;">2012</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">59</span>: <span style="color: #000000;">BMP</span>,<span style="color: #000000;">-1794830974</span>,MENUADDITEM<span style="color: #000000;">(</span><span style="color: #000000;">42</span><span style="color: #000000;">)</span>->TAPPLICATION:<span style="color: #000000;">MENUS</span><span style="color: #000000;">(</span><span style="color: #000000;">306</span><span style="color: #000000;">)</span>->MAIN<span style="color: #000000;">(</span><span style="color: #000000;">81</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #000000;">20</span>/<span style="color: #000000;">02</span>/<span style="color: #000000;">2012</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">59</span>: <span style="color: #000000;">BMP</span>,<span style="color: #000000;">50662747</span>,MENUADDITEM<span style="color: #000000;">(</span><span style="color: #000000;">42</span><span style="color: #000000;">)</span>->TAPPLICATION:<span style="color: #000000;">MENUS</span><span style="color: #000000;">(</span><span style="color: #000000;">309</span><span style="color: #000000;">)</span>->MAIN<span style="color: #000000;">(</span><span style="color: #000000;">81</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #000000;">20</span>/<span style="color: #000000;">02</span>/<span style="color: #000000;">2012</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">06</span>:<span style="color: #000000;">59</span>: <span style="color: #0000ff;">FONT</span>,<span style="color: #000000;">-754313320</span>,TRESERVA:<span style="color: #00C800;">NEW</span><span style="color: #000000;">(</span><span style="color: #000000;">156</span><span style="color: #000000;">)</span>-><span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TAPPLICATION:<span style="color: #000000;">MENUGACC</span><span style="color: #000000;">(</span><span style="color: #000000;">827</span><span style="color: #000000;">)</span>->TRBTN:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span><span style="color: #000000;">579</span><span style="color: #000000;">)</span>->TRBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">(</span><span style="color: #000000;">754</span><span style="color: #000000;">)</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1489</span><span style="color: #000000;">)</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">1406</span><span style="color: #000000;">)</span>->_FWH<span style="color: #000000;">(</span><span style="color: #000000;">3409</span><span style="color: #000000;">)</span>->WINRUN<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">992</span><span style="color: #000000;">)</span>->TAPPLICATION:<span style="color: #000000;">SHOWWINDOW</span><span style="color: #000000;">(</span><span style="color: #000000;">641</span><span style="color: #000000;">)</span>->MAIN<span style="color: #000000;">(</span><span style="color: #000000;">85</span><span style="color: #000000;">)</span><br /> </div>[/code:30t86v0f]
y una font aplicada a un RBBTN...
como finalizarlos al cerrar el sistema?
salu2
paco |
programa colgado en memoria | sorry, error mio, omiti el menu desde el programa, corregido...
pero detecte que el xbrowse cuando le pones una imagen de fondo y cierras el xbrowse normal, la imagen se queda en memoria
gracias
paco |
programa colgado en memoria | se me paso adjuntar el resultado del checkres.txt
20/02/2012 14:13:58: ====================================================================================================
20/02/2012 14:13:58: BRUSH,-317714850,TXBROWSE:INITIATE(862)->__OBJSENDMSG(0)->HB_EXECFROMARRAY(0)->OSEND(219)->HB_EXECFROMARRAY(0)->ASEND(197)->TDIALOG:INITIATE(657)->TDIALOG:HANDLEEVENT(917)->DIALOGBOX(0)->TDIALOG:ACTIVATE(273)->TAPPLICATION:VALCOD(1446)->TAPPLICATION:VALIDUSERS(1314)->(b)ACCESSCONTROL(1253)->(b)TAPPLICATION:ACCESSCONTROL(1253)->(b)TGET:CREATEBUTTON(492)->TBUTTONBMP:CLICK(176)->TBUTTON:HANDLEEVENT(1447)->TBUTTONBMP:HANDLEEVENT(189)->_FWH(3409)->SENDMESSAGE(0)->TGET:COMMAND(1051)->TWINDOW:HANDLEEVENT(0)->TCONTROL:HANDLEEVENT(1499)->TGET:HANDLEEVENT(598)->_FWH(3409)->DIALOGBOX(0)->TDIALOG:ACTIVATE(273)->TAPPLICATION:ACCESSCONTROL(1296)->MAIN(66)
y asi lo defino en el xbrowse
oBrw:SetBackGround( oApp:cDirBmps+"Logo1.jpg", BCK_STRETCH )
saludos
paco |
programa compilado con framework 10.10 | Pues he compilado las librerías con el framework 10.10 de yosemite y sin problemas ... se aprecia que ya tienen las muevas trasparencias y poco mas .
[img:1zm8oezm]http://i62.tinypic.com/34ih0yc.png[/img:1zm8oezm] |
programa compilado con framework 10.10 | Manuel,
Muy bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
gracias por compartirlo! |
programa compilado con framework 10.10 | Olá Antonio e Manuel (mastintin),
Tenho um aplicação simples em Fivewin For Harbour. Meu cliente quer que ela seja usada também no iMAC. Não conheço nada de iMAC. Gostaria, antes de adquirir o produto FIVEMAC, dirimir algumas dúvidas, vocês poderiam me ajudar?
1) A mudanças são muitas?
2) RC criado no workshop pode ser compilado com o FIVEMAC?
4) Pode ser compilado com o RMake e Borland?
3) No pacote vem exemplos como no FWH?
4) Qual biblioteca MySQL pode ser usada com o FIVEMAC?
Desde já agradeço a atenção de vocês e de outros que puderem ajudar.
Att.,
Oliveiros Junior |
programa compilado con framework 10.10 | Junior,
Antes de plantearte usar FiveMac, puedes considerar el usar un programa como WinBottler:
[url:355hcwdo]http://winebottler.kronenberg.org/[/url:355hcwdo]
Que te permitiría usar tu programa desarrollado con FWH en un Mac directamente. No tendrá la apariencia "nativa" de OSX (el sistema operativo de Mac) pero si funciona bien y si tu cliente queda satisfecho, pues ya lo tienes solucionado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Si por el contrario tu cliente quiere que sea una aplicación nativa para OSX entonces si tendrías que usar Harbour y FiveMac y con mucho gusto responderé a tus preguntas, y te ayudaremos a que escribas tu aplicación nativa para OSX. |
programa compilado con framework 10.10 | Olá Antonio,
Muito obrigado pela resposta. Vou tentar junto ao cliente implementar sua sugestão. Qualquer problema entrou e contato.
Att.,
Oliveiros Junior |
programa ejecutable EXE | Hola Antonio, he creado un ejecutable(EXE), utilizando FWH6.12 - xHarbour 0.99.71 - BCC32 - xEdit2; todo el proceso paso sin ningun problema, al darle doble click al ejecutable no pasa nada, que puede estar pasando, me puedes dar alguna idea?
Saludos,
Edgar |
programa ejecutable EXE | Edgar,
Pon un MsgInfo( "aqui" ) despues del Main() principal a ver si te aparece |
programa ejecutable EXE | Mira a ver si se te crea algún fichero log en el disco |
programa ejecutable EXE | lo primero es ver si fwh+xharbour te funciona correctamente, para eso prueba cualquiera de los ejemplos de la carpeta samples de fwh, modificando los path del bat buildx.bat, por ejemplo puedes probar
[quote:2ov7bhkf]buildx tutor04[/quote:2ov7bhkf]
si el ejecutable es creado correctamente, entonces tu entorno de programación es correcto, ahora continuaríamos con xedit.
existen algunas cosas que verificar, que el programa principal, sea el primero en la lista, ademas que el modulo principal se llame main.
el orden de las lib debe ser similar al del buildx.bat.
con eso se inicia.
no cuentas como te fue.
salu2 |
programa ejecutable EXE | Hola Antonio, otra vez aqui, hice lo que me digiste de colocar un MsgInfo( "aqui") despues del main(), lo compile y ejecute y no hay ninguna señal del mensaje que aparezca, que podra ser.
Estas son las sentencias iniciales del programa principal:
#include "FiveWin.ch"
#define SRCPAINT 15597702 // 0xEE0086 // Para Mensajes
#define SRCAND 8913094
STATIC oWndMain // Objeto Ventana principal
STATIC hBorland
// -----------------------------------------------------------------------
// Funci¢n ...: Main()
// Descripci¢n: Funci¢n principal, que inicia el programa.
// Par metros : Ninguno.
// Devuelve ..: Nada.
// -----------------------------------------------------------------------
FUNCTION Main()
LOCAL oBrush, oBar, oBtn, oBmp // Objeto Brush
MsgInfo( "aqui" )
MEMVAR pANY // Variable Global
pANY := Year( Date() ) // A¤o de trabajo actua
// ====================================================================
// ====================================================================
SET EPOCH TO 1990 // Para impedir que el a¤o 00,
// se interprete como 2000
SET CENTURY ON // 4 d¡gitos a¤o
SET DATE ITALIAN // formato dd-mm-yyyy
SET DELETED ON // Impedir ver registros marcados borrar
SetCancel( .F. ) // Inutiliza ALT + C para abortar programa
SetHandleCount( 100 ) // M ximo n§ ficheros abiertos
REQUEST DBFCDX
RDDSETDEFAULT( "DBFCDX" )
//SET _3DLOOK ON
SET 3DLOOK ON
//SET RESOURCES TO "WBANKS.DLL", "BWCC.DLL"
SET RESOURCES TO ".\System\FoScr001.Dll"
hBorland := LoadLibrary( ".\System\BWCC32.DLL" )
// VENTANA PRINCIPAL --------------------------------------------------
DEFINE BRUSH oBrush STYLE BORLAND
DEFINE ICON oIcon RESOURCE "OI"
DEFINE WINDOW oWndMain FROM 00,00 TO 30,75 ;
TITLE CompName() ;
MENU MenuMain() ;
BRUSH oBrush ;
ICON oIcon ;
MDI
DEFINE BUTTONBAR oBar SIZE 25,25 3DLOOK OF oWndMain
DEFINE BUTTON OF oBar RESOURCE "CLIENT" ACTION Clientes() ;
TOOLTIP "Adiciona/Edita Productos" ;
NOBORDER
DEFINE BUTTON OF oBar RESOURCE "PENCIL8" ACTION Peso1(.T.) ;
TOOLTIP "Registro de pesos" ;
NOBORDER
DEFINE BUTTON OF oBar RESOURCE "MNUREINDEX" ACTION CreaDbfPeso() ;
TOOLTIP "Reorganizar Ficheros Indice" ;
NOBORDER
DEFINE BUTTON OF oBar RESOURCE "INTERROG" ACTION Copyright() ;
TOOLTIP OemToAnsi( "Acerca de.." ) ;
NOBORDER
DEFINE BUTTON OF oBar RESOURCE "EXIT1" ACTION( NetCloseAll(), ;
oWndMain:End() ) ;
TOOLTIP "Salir del Programa" ;
NOBORDER
IF File( "CAMION22.BMP" )
@ 00,00 BITMAP FILE "CAMION22.BMP" OF oWndMain:oWndClient SIZE 1050,700 ADJUST
ENDIF
SET MESSAGE OF oWndMain TO OemToAnsi( "TW-Pesos v.1.0 - (c) E.Flores, 2003-2007"+" SISTEMA DE PESOS * A¤o: " )+ AllTrim( Str( pANY ) ) ;
CLOCK ;
DATE ;
KEYBOARD
ACTIVATE WINDOW oWndMain MAXIMIZED ON INIT DlgInicial()
DbCloseAll()
FreeLibrary( hBorland )
SET RESOURCES TO
RETURN NIL
Saludos,
Edgar Flores |
programa ejecutable EXE | Antonio, si me genera un archivo error.log, y este es lo que muestra.
Application
===========
Path and name: C:\xedit2\PROYECTOS\WPESOS\WPESOS.exe (32 bits)
Size: 2,208,768 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 11/28/14, 11:43:09
Error description: (DOS Error 2) DBFCDX/1003 Open error: EMPRESAX.cdx
Stack Calls
===========
Called from: => ORDLISTADD(0)
Called from: company.prg => COMPNAME(44)
System
======
CPU type: Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz 2400 Mhz
Hardware memory: 2048 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Compiler version: xHarbour build 0.99.71 Intl. (SimpLex)
Windows version: 6.1, Build 7601 Service Pack 1
Windows total applications running: 0
Variables in use
================
Procedure Type Value
==========================
ORDLISTADD
Param 1: C "EMPRESAX"
Param 2: C "EMPRESAX"
Local 1: U
Local 2: N 2
COMPNAME
Local 1: C ""
Local 2: C ""
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFCDX
DBFNTX
DataBases in use
================
1: => EMPRESAX0001 RddName: DBFCDX
==============================
RecNo RecCount BOF EOF
1 1 .F. .F.
Indexes in use TagName
Relations in use
Classes in use:
===============
1 HASHENTRY
2 HBCLASS
3 ERROR
4 HBOBJECT
5 TREG32
Memory Analysis
===============
211 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
|
programa ejecutable EXE | hola Carlos, gracias por ayudar; si fwh+xharbour funciona correctamente,lo probe con buildx tutor04 que mensionas. El asunto es que probando con xEdit2, he logrado compilar y me genera el EXE, pero cuando lo ejecuto es que no da ninguna señal.
Como dices probablemente el problema este en xEdit. El programa principal si empieza con Main(), revise el orden de los PRG que entran a compilar, los pone en orden alfabetico y el programa principal lo pone al ultimo(wper.prg), pero en propiedades del proyecto, Main Module: le pongo el nombre del prg principal(wper.prg).no se donde estara el problema de que no ejecute.
Saludos
Edgar Flores |
programa ejecutable EXE | Edgar,
Borra el fichero log y asegurate nuevamente que es tu EXE el que lo crea.
De ser tu EXE está llegando hasta la línea 44:
Called from: company.prg => COMPNAME(44)
Estas llamando a Harbour con el parámetro /n ? |
programa ejecutable EXE | Saludos
El problema que se me presento con xEdit, es que al agregar nuevos prgs al proyecto, el primero siempre debe ser el prgs principal en agregarse.
Solucion:
1.
edita el archivo "PROYECTO.XPJ" con notepad (PROYECTO es el nombre de tu proyecto, segun donde lo tengas guardado), y cambia la linea:
<MainModule Value="PRINCIPAL.PRG"/>
donde PRINCIPAL,PRG es tu programa principal o main()
2.
En la seccion <files> es donde se tienen todos los prgs que integran tu sistema, el la primera linea del esta seccion pon el PRINCIPAL.PRG
<Files>
<File Filename="..\..\FUN\PRINCIPAL.PRG"/>
<File Filename="..\..\FUN\calc.rc"/>
<File Filename="..\..\FUN\autosys.rc"/>
</Files>
guarda tu archivo y entra al xEdit y debe funcionarte. |
programa ejecutable EXE | Hola Antonio, ya quedo solucionado el problema, no ejecutaba el sistema porque el programa principal(Main(), no era el primero en la lista de los prg's que compilaba. Muchas gracias por la ayuda,el soporte que Uds. brindan es realmente de primera.
Saludos,
Edgar Flores |
programa ejecutable EXE | Hola Carlos, muchas gracias por tu ayuda, efectivamente el problema estaba en xEdit, hice lo que me indicaste y funciona de maravila. A pesar que ahora el sistema funciona, tengo algunos inconvenientes con mis formularios que tienen controles de tipo borlan, asi que estoy quitando esos controles y generando de nuevo mi DLL, espero q todo vaya bien, si tengo algun inconveniento volvere a molestarte.
Saludos,
Edgar Flores |
programa ejecutable EXE | a la orden <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
programa para Android | Buenas tardes
Maestro Antonio
Requiero que me ayude con unas interrogantes que tengo
Me han pedido cotizar un programa que trabaje nativamente en android y que haga lo siguente
- Trabaje con tablas dbf de forma local ( no se como se hace en android si alguien lo sabe gracias )
- que tome los datos del GPS para grabar en ciertas tablas la ubicación de la tablet en la que este corriendo el programa ( esto es la pregunta se puede tomar esos datos ? existe una funcion de fivetouch que lo haga ? yo si no la hay se podria desarrollarla, lo pregunto porque yo no me siento en capacidad de hacerlo por mi solo sino dependeria de los desarrolladores de fivetouch ( en este caso de Master Antonio )
- Posteriormente conectarse via internet ( las tablets tienen plan de datos ) y cargar esas tablas al server ( esto pienso hacerlo con hbnetio)
- interfaz grafica compatible con las tablets ( para eso es el fivetouch que trabaja con QT)
ahora se que puedo usar Fivetouch yo compre la primera parte supongo debo comprar la segunda parte que es para que el programa funcione en android
Gracias por su ayuda
saludos
Wilson |
programa para Android | Wilson,
> Trabaje con tablas dbf de forma local ( no se como se hace en android si alguien lo sabe gracias )
FiveTouch hace esto sin problemas. De hecho lo comentamos en estos foros.
> que tome los datos del GPS para grabar en ciertas tablas la ubicación de la tablet en la que este corriendo el programa ( esto es la pregunta se puede tomar esos datos ?
Se supone que eso tiene que dárnoslo QT. No recuerdo ahora si se ha publicado algún código en el foro para esto.
Habría que buscar ese código en google y ver si las clases que necesitemos esten soportadas en Harbour (hbQT).
> Posteriormente conectarse via internet ( las tablets tienen plan de datos ) y cargar esas tablas al server ( esto pienso hacerlo con hbnetio)
buena idea
> interfaz grafica compatible con las tablets ( para eso es el fivetouch que trabaja con QT)
Si
> ahora se que puedo usar Fivetouch yo compre la primera parte supongo debo comprar la segunda parte que es para que el programa funcione en android
Si quieres construir un EXE tuyo, si te haría falta. Si te sirve el modo intérprete, entonces puedes usar el que tienes. |
programa para Android | Master Antonio
muchas gracias
voy a proceder a cotizarlo cualquier cosa estamos en contacto
saludos cordiales
Wilson |
programa para encriptar el Disco Duro | Amigos,
Tengo temor a que me roben o pierda el laptop y estoy buscando un programa para encriptar el Disco Duro y evitar que tengan acceso a su contenido.
Por favor, ¿cuál me recomiendan?.
Muchas gracias.
Un saludo y feliz navidad!! |
programa para encriptar el Disco Duro | Hola, en mi experiencia personal, con las herramientas que trabajamos es posible no tener instaladas las aplicaciones con las que desarrollamos ( FWH, xHarbour, Editores de Texto, editores de Recursos, etc. ) en el equipo de computo, te explico...
En mi caso uso un disco Passport de Western Digital, el cual esta encriptado de fabrica, y la garantia es tal que si tu olvidas tu contraseña, ni siquiera el fabricante puede recuperarlo, entonces en el equipo portatil, yo instalo solo: OurXdbu, Pelles, y ya...
Todas las demas herramientas como MultiEdit, xMate, y lo demas lo tengo en el dichoso disco, asi que siempre que quiero trabajar lo coneccto y uso todo desde el disco, y obvio ese disco se respalda periodicamente en otro medio diferente y siempre lo cargo conmigo asi si se pierde o roban el equipo de computo pues no estarias perdiendo nada importente salvo el equipo...
Si gustas te paso la rutina de convertir un directorio de tu disco duro ejem: g:\desarrollo\ en una unidad virtual y todo lo que tienes dentro de la carpeta se muestra en unidad virtual...
Saludos |
programa para encriptar el Disco Duro | Buenos días,
Feliz Navidad !!!
Lucas yo te recomiendo los siguientes programas:
- TrueCrypt [url:1imwxxeo]http://www.truecrypt.org/[/url:1imwxxeo] Para encriptar todo el disco, una partición o lo que necesites.
- Prey [url:1imwxxeo]http://preyproject.com/es[/url:1imwxxeo] Solución anti-robo para el portátil.
Saludos,
Félix |
programfiles en windows vista | Tengo un programa que entodos los windows funciona perfecto, exepto en vista, el programa tiene una proteccion de copia el cual utiliza el directorio que retorna el GETENV("PROGRAMFILES"), pero aca viene lo curioso en windows vista, el directorio existe dentro del disco duro c:\archivos de programas\ pero la instruccion programfiles, me devuelve "PROGRAM FILES" como si el sistema operativo estuviera en ingles, y no me reconoce el directorio, el SO esta en español, las configuraciones todas en español, no he podido solucionareste problema, a ver si me pueden ayudar con esto.Otra cosa cuando entro al directorio en la barra de tarea me coloca que el nombre del directorio tambien en ingles, pero no se que pueda sergracias |
programfiles en windows vista | [quote="elmoiquique":1rpppao9]Tengo un programa que entodos los windows funciona perfecto, exepto en vista, el programa tiene una proteccion de copia el cual utiliza el directorio que retorna el GETENV("PROGRAMFILES"), pero aca viene lo curioso en windows vista, el directorio existe dentro del disco duro c:\archivos de programas\ pero la instruccion programfiles, me devuelve "PROGRAM FILES" como si el sistema operativo estuviera en ingles, y no me reconoce el directorio, el SO esta en español, las configuraciones todas en español, no he podido solucionareste problema, a ver si me pueden ayudar con esto.
Otra cosa cuando entro al directorio en la barra de tarea me coloca que el nombre del directorio tambien en ingles, pero no se que pueda ser
gracias[/quote:1rpppao9]Has probado usando Pendrive en USB?Estoy desarrollando unas funciones que podré lincar con cualquier aplicación de FiveWin que se basan en Pendrive.La idea es lanzar una función concreta en cualquier punto o puntos de la aplicación y esta decidirá lo que queramos, en mi caso le voy mostrando un mensaje de aviso que le dice que está en modo demostración.Me parece que es una opción muy buena y muy fácil de implementar en cualquier aplicación.Desde aquí no puedo enviarlas, si acaso dentro de unas horas desde casa las puedo subir a algún lugar.SaludosCarlos G. |
programfiles en windows vista | A nadie le ha pasado mi caso, aun no puedo resolver este problema, de los directorios que al visualizarlo desde el explorador de windows aparece en español y al buscalor por funciones de winfive, aparece en ingles, alguna ayudita
Papa Noel Ayudame para esta navidad... |
progress bar | Hi,
Currently I am building a .dbf of filenames from a Windows folder and its subfolders.
I wish to have a progress bar to display "while" the .dbf is being populated.
I have inserted a progress bar from the testmex.prg sample into my code.
Problem is the progress bar dialog is only displayed upon completion, not while the .dbf is building.
I am unsure how to accomplish the task.
At the risk of leaving something out , I include the entire function.
Any help appreciated,
Bruce S.
FWH 12.06 June 2012
Harbour 3.1.0 Rev.17222
bcc582
Clipper - 5.3b
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Func heat_update() // Date : 10/11/12
// Use : Assemble Q:\data folder and file information
// for millcerts
local aFolders
local nFol_len
local nOffset := 3 // set at 3 to bypass . & .. parent <dir>
local nIndex := 1
local cFol_nam
local nFol_max
local aSub_Fldr
local nSub_max := 0
local nSub_index := 3 // set at 3 to bypass . & .. parent <dir>
local nRec_ctr := 0
local cSto
local cStart := time()
local cStop
local cElapsed
local oPrg
local oProg1
local oDlg
local nActual := 0
local oMeter
local nTotal
local nTimes := 0
// stats dialog
local oStat
local fntArial
local oSay
local cStat_msg
Local hFile
Local aInfo
local cCert_seg := "q:\data\millcert\"
local cFile := "m_cert.dbf"
local times
local nActual3 := 10 //6000
local ometer3
USE ( cCert_seg + cFile) alias MC
DELE ALL
PACK
//msginfo( cCert_seg,"Cert" )
// build array of millcert folder names
aFolders := directory( cCert_seg, "D" )
nFol_len := len(aFolders) // count all folders
nFol_len ++ // add one to cover the one we are starting on
If lIsDir( cCert_seg ) // does folder exist
//MTR
DEFINE FONT fntArial NAME "Arial" SIZE 0, -12 //BOLD
DEFINE DIALOG oDlg FROM 14,65 TO 21, 93 ;
TITLE " Record total " //+ trans(lastrec(),'999,999')
// meter 3 from testmex.prg w h
@ 5, 5 METEREX oMeter3 VAR nActual3 SIZE 100, 10 TOTAL 100 PIXEL;
GRADIENT CHUNK { { 1/2, nRGB( 255, 251, 229 ), nRGB( 250, 223, 143 ) } ,;
{ 1/2, nRGB( 244, 194, 51 ), nRGB( 252, 235, 173 ) } };
GRADIENT TRACK { { 1/2, nRGB( 198, 203, 213 ), nRGB( 219, 224, 233 ) } ,;
{ 1/2, nRGB( 224, 238, 237 ), nRGB( 224, 238, 237 ) } };
ROUND LINECOLORS CLR_BLACK, CLR_WHITE
Do while nOffset < nFol_len
cFol_nam := aFolders[nOffset][1] // current folder name
// Sub folder info
// directory of sub folder
aSub_Fldr := directory( cCert_seg + cFol_nam + "\*.*","D")
nSub_max := len(aSub_Fldr) // # of files
// ?minus . & ..
// will I need when sub folders are involved
Do while nSub_index <= nSub_max // store sub folder contents
APPEND BLANK
cSto := iif(upper(right(aSub_Fldr[nSub_index][1],3)) = "PDF" ,"FL","FD")
Repl;
MC->heat with aSub_Fldr[nSub_index][1],;
MC->sto with cSto ,;
MC->pri_supl with left(cFol_nam,8)
Automatic( oMeter3, @nActual3 )
nRec_ctr++ // may be out by . & .. ??
nSub_index++
Enddo //sub_max
nSub_index := 3 // set to 3 to bypass . & ..
nOffset++
Enddo //nFol_len
dbcommit()
else
// notify if no folder available
msginfo( "Q:\data\millcert does not exist","Info" )
return nil
endif
////////////////////////////////////////////
// display processing stats
cStop := time()
cElapsed := cStop - cStart
@ 1.00 , 1.0 say trans(lastrec(),'999,999') + " records " ;
FONT fntArial SIZE 180,80
@ 1.75 , 1.0 say trans(nRec_ctr ,'999,999') + " processed " ;
FONT fntArial SIZE 180,80
@ 2.50 , 1.5 say substr(cElapsed,1,5) + " seconds " ;
FONT fntArial SIZE 180,80
ACTIVATE DIALOG oDlg
fntArial:End()
DBCLOSEALL()
return nil // heat_update
//----------------------------------------------------------------------------//
FUNC Automatic( oMeter, nActual )
LOCAL n
LOCAL nFrom := nActual
FOR n = nFrom TO oMeter:nTotal step 0.001
nActual = n
oMeter:Set( nActual )
NEXT
nActual = oMeter:nTotal
oMeter:Set( nActual )
RETURN NIL
//--------------------------------------------------------
<<<<<<<<<<<<<<<< |
progress bar | Bruce, you can start with this example
[code=fw:35b265ha]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/* SAMPLES\PROGTIME.PRG modified */</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg, oProg, aFiles:=directory<span style="color: #000000;">(</span><span style="color: #ff0000;">".<span style="color: #000000;">\"</span>), oSy, cFile:="</span><span style="color: #ff0000;">"<br /> DEFINE DIALOG oDlg TITLE HB_Curdrive()+"</span>:\<span style="color: #ff0000;">"+Curdir()+"</span> Directory Scan<span style="color: #ff0000;">"<br /> @ 1, 1 PROGRESS oProg POSITION 0 SIZE 150, 10<br /> @ 2, 10 say oSy VAR cFile size 100, 12 <br /> @ 2.5, 6 BUTTON "</span>Scan<span style="color: #ff0000;">" ACTION DoScan(aFiles, oProg, oSy, @cFile)<br /> @ 2.5, 14 BUTTON "</span>End<span style="color: #ff0000;">" ACTION oDlg:End()<br /> ACTIVATE DIALOG oDlg CENTER<br />return nil <br />*<br />Function DoScan(aFiles, oProg, oSy, cFile)<br />local nI<br /> oProg:nPosition=0<br /> oProg:SetRange( 0, len(aFiles))<br />for nI=1 to len(aFiles)<br /> oProg:nPosition += 1<br /> cFile=upper(aFiles[nI, 1])<br /> oSy:refresh() <br /> syswait()<br />next<br />return nil<br /></span></div>[/code:35b265ha]
the "syswait()" is only there to slower the operation.
Regards, Euclides |
progress bar | Euclides,
Thank you, I will pursue
Bruce |
progress bar | Hi. all !
I need to show that you are running a process. The standard progress bar does not fit. I want to use the progress bar in the form of rotating gears(a la web). Most convenient to do a parallel process, but how to implement it in xHarbour I don't know |
progress bar | I think you have 2 possibilities.
[list=1:3jm3ozqd]
[*:3jm3ozqd]Show a gif or an AVI file, there are the TGif control and the TAnimate control for this[/*:m:3jm3ozqd]
[*:3jm3ozqd]Use the progress in marquee mode.[/*:m:3jm3ozqd][/list:o:3jm3ozqd]
Look that both solution needs that you call to SysUpdate regurarly... |
progress bar | Thanks for the help !
what is "progress in marquee mode" ?
but it would be interesting to do it in another thread |
progress bar | Here how the marquee is shown on windows 7:
[img:2t3zsb5d]http://4.bp.blogspot.com/_B28NJpJ61hA/TRM3UqzUqrI/AAAAAAAAATA/2nOxEwJaAfY/s1600/CropperCapture%255B47%255D.Gif[/img:2t3zsb5d] |
progress bar | Antonino,
What tool do you use to make these screen captures ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
progress bar | This one is from a google search <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
The other one is made with [url:201imaxq]https://www.cockos.com/licecap/[/url:201imaxq] <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> |
progress bar during the start of an application | Is there a possibility to show a progress bar during the start of an application.
If not do you think it could be done with a starter.exe with a timer which is in the foreground and kills itself after a certain time.
Thanks in advance,
Otto |
progress bar during the start of an application | Hello Otto:
[quote="Otto":6c14dp6r]Is there a possibility to show a progress bar during the start of an application.[/quote:6c14dp6r]
Try TestProg.prg in \FWPPC\Samples.
Best regards.
Manuel Mercado |
progress bar during the start of an application | Hello Manuel,
thank you for your answer. You are right.
But I don’t find a way to integrate the DIALOG.
If I use the NOWAIT clause the Dialog is not correctly painted.
Do you suggest to integrate a button into the dialog “Start program” or enter password and then jump into a function
which loads all the necessary values?
[code=fw:13xjw9jb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlgSome<br /> *----------------------------------------------------------<br /><br /> <span style="color: #00C800;">if</span> IsExeRunning<span style="color: #000000;">(</span> cFileName<span style="color: #000000;">(</span> HB_ArgV<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> MsgInfo1<span style="color: #000000;">(</span> <span style="color: #ff0000;">"The application is already running"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgSome <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Programmstart: WHBiene"</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgSome <span style="color: #0000ff;">CENTERED</span> <span style="color: #B900B9;">//NOWAIT</span><br />….<br /> </div>[/code:13xjw9jb]
Best regards,
Otto |
progress de color... | hay alguna forma de cambiar el color de los botones de la clase progress y poner esta de forma vertical?
salu2
Pako |
progress de color... | [quote="Francisco Horta":146n2tpf]hay alguna forma de cambiar el color de los botones de la clase progress y poner esta de forma vertical?
salu2
Pako[/quote:146n2tpf]
Con respecto al color NO lo se, pero para ponerlo vertical solo
decláralo en las propiedades de tu editor de recursos.
( yo uso Microsoft Visual C++ 6.0 )
Saludos |
progress en archivo | El título no es muy claro. Lo que quiero hacer cuando hago un zip de un directorio, aparte de seguir el progreso de la compresión del total de los archivos , como puedo hacer otra barra con el seguimiento del progreso de cada archivo. Similar a lo que hacía con fw en 16 bits.
Hay forma de hacerlo.
Luis |
progress on msgitem | I have a msgitem
DEFINE MSGITEM ::oMsgItem4;
OF ::oWndMain:oMsgBar;
PROMPT "";
SIZE 400;
BITMAPS "MSG_EOEO", "MSG_EOEO";
TOOLTIP " "
and I wish show a Meter
@ 02, 11 PROGRESS oApp:oProgressDlg POSITION 1 of oApp:oMsgItem4;
SIZE 200,18 pixel
[b:1l296ha2]make error [/b:1l296ha2]
Error description: Error BASE/1004 Message not found: TMSGITEM:HWND
Args:
[ 1] = O TMSGITEM
Stack Calls
===========
Called from: => __ERRRT_SBASE( 0 )
Called from: ../../../tobject.prg => TMSGITEM:ERROR( 0 )
Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )
Called from: ../../../tobject.prg => TMSGITEM:MSGNOTFOUND( 0 )
Called from: ../../../tobject.prg => TMSGITEM:HWND( 0 )
Called from: .\source\classes\TPROGRES.PRG => TPROGRESS:NEW( 122 )
before it run ok on Msgbar with
@ 02, 11 PROGRESS oApp:oProgressDlg POSITION 1 of oApp:oWndMain:oMsgBar;
*SIZE 200,18 pixel
How I can make to move the progress on oApp:oMsgItem4 ? |
progress on msgitem | Dear Silvio,
Class TMsgItem does not inherit from Class TControl
You have to use ... OF oApp:oWndMain:oMsgBar
Maybe you could change the bitmap of the MsgItem with a timer, simulating a progress bar |
progressive web app - Nautical Chart | Dear friends,
mod harbour -[b:2629zzzi] Nautical Chart[/b:2629zzzi][i:2629zzzi][/i:2629zzzi]
It is a fascinating product to manage your websites on your smartphone.
The pages are arranged according to categories and can be selected rapidly.
Simply select category and then within the category the page.
Nautical Chart is programmed as a progressive web app. You can start the web page from an Icon, and then it opens in full screen with no adressbar, etc.
Language mod harbour/ database DBF
[img:2629zzzi]https://mybergland.com/fwforum/nauticalchart2.gif[/img:2629zzzi] |
progressive web app - Nautical Chart | Dear friends,
mod harbour -[b:31eojxnt] Nautical Chart[/b:31eojxnt]
It is a fascinating product to manage your websites on your smartphone.
The pages are arranged according to categories and can be selected rapidly.
Simply select category and then within the category the page.
Nautical Chart is programmed as a progressive web app. You can start the web page from an Icon, and then it opens in full screen with no adressbar, etc.
Language mod harbour/ database DBF
[img:31eojxnt]https://mybergland.com/fwforum/nauticalchart2.gif[/img:31eojxnt] |
progressive web app - Nautical Chart | Administration of the links
I use Bootstrap Tables.
This is a full CRUD sample for DBF files.
One of the advantage of DBF for RAD is that you can copy the directory to other servers or directories without any setup.
[img:1wm5eouv]https://mybergland.com/fwforum/nauticalchart2crud.gif[/img:1wm5eouv] |
progressive web app - Nautical Chart | Administration of the links
I use Bootstrap Tables.
This is a full CRUD sample for DBF files.
One of the advantage of DBF for RAD is that you can copy the directory to other servers or directories without any setup.
[img:34gtvr9r]https://mybergland.com/fwforum/nauticalchart2crud.gif[/img:34gtvr9r] |
progressive web app - Nautical Chart | Dear Otto, very good
I've been researching the fascinating world of PWAs for a long time too. |
progressive web app - Nautical Chart | Dear Cristobal,
Yes, you helped me a lot back then, when the mod harbour SLACK group was still really active.
It is actually a shame that we no longer meet in the SLACK group.
Best regards,
Otto |
progressive web app - Nautical Chart | Dear Otto,
great work! |
progressive web app - Nautical Chart | Wow!! impressive your work dear Otto
can you please provide an example or prg that we can learn ?
best regards |
progressive web app - Nautical Chart | Hello Wilson,
I have emailed you the download link.
Best regards,
Otto |
progressive web app - Nautical Chart | Many Thanks Dear Otto it Works !!
we study the code and return with questions
MUCHAS GRACIAS !!
excuseme my bad english |
progressive web app - Nautical Chart | Wislon,
Check out <!-- m --><a class="postlink" href="https://winhotel.space/harbourino/harbourino.pdf">https://winhotel.space/harbourino/harbourino.pdf</a><!-- m -->.
This can greatly simplify the complexity of a program.
Regards,
Otto
[img:86f2xft8]https://mybergland.com/fwforum/harbourino1.png[/img:86f2xft8] |
project file for VFW | Where do I find a prj file to build VFW for UEStudio.
Thanks in advance
Otto |
project file for VFW | Otto,
You can easily create it using UEStudio:
just create a new project, then start opening the visual files and add them to the project. |
project start document management system | project start document management system
[url:vujr7apz]https://mybergland.com/fwforum/dms.mp4[/url:vujr7apz]
[img:vujr7apz]https://mybergland.com/fwforum/dms.jpg[/img:vujr7apz] |
project start document management system | project start document management system
[url:19tixbgk]https://mybergland.com/fwforum/dms.mp4[/url:19tixbgk]
[img:19tixbgk]https://mybergland.com/fwforum/dms.jpg[/img:19tixbgk] |
project start document management system | Best regards,
Otto
[url:t682vore]https://mybergland.com/fwforum/dms2.mp4[/url:t682vore] |
project start document management system | Best regards,
Otto
[url:3f5ii96n]https://mybergland.com/fwforum/dms2.mp4[/url:3f5ii96n] |
project start document management system | document management system
Part 3
After fancytree is very well-structured, and the examples are well documented, we start without reading the manuals.
Now we split up the fancytree JavaScript functions that are in the head block.
We add an event handler to the functionality that reacts to on click.
In the json file, which we use from the examples to initialize the tree structure, we fill in a few test words to check the function.
In the event handler we add an alert().
[url:3gn0eops]https://mybergland.com/fwforum/dmsfancytree.mp4[/url:3gn0eops] |
project start document management system | document management system
Part 3
After fancytree is very well-structured, and the examples are well documented, we start without reading the manuals.
Now we split up the fancytree JavaScript functions that are in the head block.
We add an event handler to the functionality that reacts to on click.
In the json file, which we use from the examples to initialize the tree structure, we fill in a few test words to check the function.
In the event handler we add an alert().
[url:3lw07vb9]https://mybergland.com/fwforum/dmsfancytree.mp4[/url:3lw07vb9] |
project start document management system | document management system
Part 4
We are moving the links, scripts and styles into their own blocks.
[url:2w27plci]https://mybergland.com/fwforum/headlinksscripts.mp4[/url:2w27plci]
Here is a screenshot of the program:
[img:2w27plci]https://mybergland.com/fwforum/dmsmain.jpg[/img:2w27plci]
[img:2w27plci]https://mybergland.com/fwforum/dmshead.jpg[/img:2w27plci] |
project start document management system | document management system
Part 4
We are moving the links, scripts and styles into their own blocks.
[url:1s8f6g4a]https://mybergland.com/fwforum/headlinksscripts.mp4[/url:1s8f6g4a]
Here is a screenshot of the program:
[img:1s8f6g4a]https://mybergland.com/fwforum/dmsmain.jpg[/img:1s8f6g4a]
[img:1s8f6g4a]https://mybergland.com/fwforum/dmshead.jpg[/img:1s8f6g4a] |
project start document management system | TreeView and TINYMCE
[img:17m15cik]https://mybergland.com/fwforum/treeviewtinymc.jpg[/img:17m15cik] |
project start document management system | TreeView and TINYMCE
[img:2wuug8m9]https://mybergland.com/fwforum/treeviewtinymc.jpg[/img:2wuug8m9] |
prompt-editor | Hello friends,
We have released a new program called "prompt-editor."
It is a simple editor that stores standard prompts for ChatGPT, making it easier to edit the questions.
Now, we need to update the DBF file that contains the standard questions over the internet.
What is the simplest way to do this?
Best regards,
Otto
[img:139si1bp]https://mybergland.com/fwforum/prompt_editor.jpg[/img:139si1bp] |
prompt-editor | Now, we need to update the DBF file that contains the standard questions over the internet.
Ahora, necesitamos actualizar el archivo DBF que contiene las preguntas estándar a través de Internet.
Master Otto, explain better.
Maestro Otto, explíquese mejor.
Thanks.
Regards, saludos. |
prompt-editor | Hello Joao,
It is a simple program. Standard tasks are stored in the DBF file, as you can see in the second screenshot.
The quality of the prompt is important for the results provided by ChatGPT.
We offer a service where we store standard questions, such as a list of allergens according to Austrian regulations or many others.
We would like to distribute the updates over the internet. I also need a solution for the executable file.
Regards,
Otto
[img:wc55ltt2]https://mybergland.com/fwforum/prompteditorclip7.jpg[/img:wc55ltt2]
[img:wc55ltt2]https://mybergland.com/fwforum/prompteditorclip8.jpg[/img:wc55ltt2] |
prompt-editor | ... BTW, this is the answer to the shown question:
[code=fw:21vsiulq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Sure, here are the posts <span style="color: #0000ff;">from</span> May <span style="color: #000000;">31</span>, <span style="color: #000000;">2023</span>, that I found <span style="color: #0000ff;">on</span> the FiveTech forum:<br /><br /><span style="color: #ff0000;">"prompt-editor"</span> by Otto. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">49</span> PM.<br /><span style="color: #ff0000;">"hb_CDPSELECT() crash ?"</span> by Jimmy. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">32</span> PM.<br /><span style="color: #ff0000;">"CLASS modification"</span> by Otto. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">7</span>:<span style="color: #000000;">09</span> AM.<br /><span style="color: #ff0000;">"Problem with xBrowse"</span> by Armando. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">4</span>:<span style="color: #000000;">23</span> AM.<br /><span style="color: #ff0000;">"Fastreport de Cristobal"</span> by mgsoft. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">06</span> PM.<br /><span style="color: #ff0000;">"Como evitar warnings"</span> by JoseAlvarez. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">02</span> PM.<br /><span style="color: #ff0000;">"HBSSL CON FUNCIONES DE DIEGO FAZIO INCLUIDAS"</span> by rterraz. Last post <span style="color: #00C800;">at</span> <span style="color: #000000;">7</span>:<span style="color: #000000;">23</span> AM?<span style="color: #000000;">1</span>??<span style="color: #000000;">2</span>?.<br />As <span style="color: #00C800;">for</span> the xBase forum, I<span style="color: #ff0000;">'ve checked several sub-forums but did not find any posts from May 31, 2023. It seems the forum isn'</span>t as active as the FiveTech one, or it could be due <span style="color: #0000ff;">to</span> the time difference and posts might appear later in the day. It would be a good idea <span style="color: #0000ff;">to</span> check the forum again later in the day.<br /><br /> </div>[/code:21vsiulq] |
prompt-editor | Fastreport de Cristobal ??????? |
prompt-editor | Hello friends,
I start testing with these functions:
[code=fw:3968kw01]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> jsonerzeugen<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cDbf :=<span style="color: #ff0000;">"INIfiles.dbf"</span><br /> <span style="color: #00C800;">LOCAL</span> aData := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">LOCAL</span> cJson, nHandle<br /> <br /> USE <span style="color: #000000;">(</span>cDbf<span style="color: #000000;">)</span> <span style="color: #0000ff;">ALIAS</span> MyTable <span style="color: #00C800;">NEW</span><br /><br /> DBGOTOP<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !EOF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> AADD<span style="color: #000000;">(</span>aData, GetRecordData<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> DBSKIP<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDDO</span><br /><br /> USE<br /><br /> cJson := hb_jsonEncode<span style="color: #000000;">(</span>aData<span style="color: #000000;">)</span><br /> <br /> ? cJson<br /><br /> nHandle := FCreate<span style="color: #000000;">(</span><span style="color: #ff0000;">"output.json"</span>, <span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> <br /> FWrite<span style="color: #000000;">(</span>nHandle, cJson, LEN<span style="color: #000000;">(</span>cJson<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <br /> FClose<span style="color: #000000;">(</span>nHandle<span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">RETURN</span></div>[/code:3968kw01]
And to read the json fill from the web:
[code=fw:3968kw01]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /> <span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cURL := <span style="color: #ff0000;">"https://w...1/output.json"</span><br /> <span style="color: #00C800;">local</span> cDownload := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> h<br /> cDownload := WebPageContents<span style="color: #000000;">(</span> cURL <span style="color: #000000;">)</span> <br /> <br /> <br /> hb_JsonDecode<span style="color: #000000;">(</span> StrTran<span style="color: #000000;">(</span> cDownload, <span style="color: #ff0000;">"=>"</span>, <span style="color: #ff0000;">":"</span> <span style="color: #000000;">)</span>, @h <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">(</span> h <span style="color: #000000;">)</span> <br /><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> <br /><br /> </div>[/code:3968kw01] |
proofing value | I need to show a value(var_cAcNb) that prove that my program is running well :
[code=fw:2fff8l3q]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Dlg32Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />*------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2<br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + ;<br /> <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">Action</span> fillDB<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span>oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />..<br />PROCEDURE FillDB<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br />*----------------------<br />..<br /> test-><span style="color: #000000;">(</span> dbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> test->ACNB := cAcNb<br /> @<span style="color: #000000;">30</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">say</span> var_cAcNb <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br />.....<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2fff8l3q]
How can I how show the var_cAcNb variable in dynamic way ? |
proofing value | [code=fw:swic9snz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Dlg32Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />*------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2<br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + ;<br /> <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">Action</span> fillDB<span style="color: #000000;">(</span> oSay <span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">30</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">say</span> oSay <span style="color: #0000ff;">PROMPT</span> Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span>oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />..<br />PROCEDURE FillDB<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span><br />*----------------------<br />..<br /> test-><span style="color: #000000;">(</span> dbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> test->ACNB := cAcNb<br /> oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> var_cAcNb <span style="color: #000000;">)</span><br />.....<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:swic9snz] |
proofing value | That is not working . Here is the full code :
[code=fw:1m8rbh45]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> oSay<br /><span style="color: #00C800;">function</span> Dlg32Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />*------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2 <br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + ;<br /> <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">Action</span> fillDB<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">90</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">say</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Account number :"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /> @ <span style="color: #000000;">90</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">say</span> oSay <span style="color: #0000ff;">PROMPT</span> Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span>oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">// @ 2.5,4 BUTTON "Get Application" Action Msginfo(cGetDir32("Select Folder")) SIZE 75,15</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br />PROCEDURE FillDB<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span><br />*----------------------<br /><br /><span style="color: #00C800;">LOCAL</span> oFile := TFileRead<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> cTemp := <span style="color: #ff0000;">""</span>,cTemp1:= <span style="color: #ff0000;">""</span>,cTemp2:= <span style="color: #ff0000;">""</span>,cTemp3:= <span style="color: #ff0000;">""</span>,cTemp4:= <span style="color: #ff0000;">""</span>,cTemp_var:= <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> cAcNb := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> nRecNo:=<span style="color: #000000;">0</span>,old_nRecNo:=<span style="color: #000000;">0</span><br /><span style="color: #B900B9;">//msginfo(cFile,0)</span><br /><span style="color: #B900B9;">//? cFile</span><br />CreateDBF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oFile:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> oFile:<span style="color: #000000;">Error</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> msgStop<span style="color: #000000;">(</span> oFile:<span style="color: #000000;">ErrorMsg</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FileRead: "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> <span style="color: #00C800;">WHILE</span> oFile:<span style="color: #000000;">MoreToRead</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <br /> <br /> cTemp1:=cTemp:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">IF</span> cTemp1 $ <span style="color: #ff0000;">"BANK OF ALEXANDRIA"</span> <br /> <br /> cTemp1:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp2:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp3:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cAcNb := padL<span style="color: #000000;">(</span> allTrim<span style="color: #000000;">(</span> <span style="color: #0000ff;">subStr</span><span style="color: #000000;">(</span> cTemp3, <span style="color: #000000;">30</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /> test-><span style="color: #000000;">(</span> dbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> test->ACNB := cAcNb<br /> oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cAcNb <span style="color: #000000;">)</span><br /> oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> cTemp_var := cTemp1 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp2 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp3 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span><br /> test->TEXT += cTemp_var<br /> <br /> <span style="color: #00C800;">endif</span> <br /> test->TEXT += <span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span> + allTrim<span style="color: #000000;">(</span> cTemp <span style="color: #000000;">)</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">ENDDO</span><br /> oFile:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br />test-><span style="color: #000000;">(</span> dbCloseArea<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span><br /><br /> </div>[/code:1m8rbh45] |
proofing value | From the WHILE ... END loop, please call Sysrefresh() so the dialog controls can refresh |
proofing value | Within the while ..Enddo loop , that is not working .
[code=fw:3o6eg2or]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Dlg32Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />*------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2 <br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + ;<br /> <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">Action</span> fillDB<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span><br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Account Number"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> <span style="color: #0000ff;">say</span> oSay <span style="color: #0000ff;">PROMPT</span> Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">(</span>oDlg:<span style="color: #0000ff;">Refresh</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>,sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">// @ 2.5,4 BUTTON "Get Application" Action Msginfo(cGetDir32("Select Folder")) SIZE 75,15</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br />PROCEDURE FillDB<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span><br />*----------------------<br /><br /><span style="color: #00C800;">LOCAL</span> oFile := TFileRead<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> cTemp := <span style="color: #ff0000;">""</span>,cTemp1:= <span style="color: #ff0000;">""</span>,cTemp2:= <span style="color: #ff0000;">""</span>,cTemp3:= <span style="color: #ff0000;">""</span>,cTemp4:= <span style="color: #ff0000;">""</span>,cTemp_var:= <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> cAcNb := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> nRecNo:=<span style="color: #000000;">0</span>,old_nRecNo:=<span style="color: #000000;">0</span><br /><span style="color: #B900B9;">//msginfo(cFile,0)</span><br /><span style="color: #B900B9;">//? cFile</span><br />CreateDBF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oFile:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> oFile:<span style="color: #000000;">Error</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> msgStop<span style="color: #000000;">(</span> oFile:<span style="color: #000000;">ErrorMsg</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FileRead: "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> <span style="color: #00C800;">WHILE</span> oFile:<span style="color: #000000;">MoreToRead</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <br /> <br /> cTemp1:=cTemp:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">IF</span> cTemp1 $ <span style="color: #ff0000;">"BANK OF ALEXANDRIA"</span> <br /> <br /> cTemp1:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp2:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp3:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cAcNb := padL<span style="color: #000000;">(</span> allTrim<span style="color: #000000;">(</span> <span style="color: #0000ff;">subStr</span><span style="color: #000000;">(</span> cTemp3, <span style="color: #000000;">30</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /> test-><span style="color: #000000;">(</span> dbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> test->ACNB := cAcNb<br /> oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cAcNb <span style="color: #000000;">)</span><br /> oSay:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//MsgInfo(cAcNb,0)</span><br /> cTemp_var := cTemp1 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp2 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp3 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span><br /> test->TEXT += cTemp_var<br /> <br /> <span style="color: #00C800;">endif</span> <br /> test->TEXT += <span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span> + allTrim<span style="color: #000000;">(</span> cTemp <span style="color: #000000;">)</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">ENDDO</span><br /> oFile:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br />test-><span style="color: #000000;">(</span> dbCloseArea<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span><br /><br /><br /> </div>[/code:3o6eg2or] |
proofing value | Ehab,
I am not sure what you are trying to do, but here is an example of changing a SAY and redisplying it. You must use the UPDATE clause in the SAY and oDlg:refresh() to get it to redisplay. Also, change the text in a SAY like this:
oSay:setText( cText )
Regards,
James
[code=fw:30pc1hok]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />external ordkeyno, ordkeycount, ordKeygoto<br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//Dlg32Test()</span><br /> *------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2, oSay<br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + ;<br /> <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"XXXXXXXXXXX"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">update</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span> ;<br /> <span style="color: #0000ff;">Action</span> <span style="color: #000000;">(</span> oSay:<span style="color: #000000;">setText</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"YYY"</span><span style="color: #000000;">)</span>, oDlg:<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: #B900B9;">//@ 80, 30 say "Account Number" of oDlg pixel</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> ;<br /> <span style="color: #000000;">(</span>oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,sysrefresh<span style="color: #000000;">(</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 /> </div>[/code:30pc1hok] |
proofing value | The calling of oSay:setText( cText ) should be done from outside procedure called : fillDB(oSay) likr this : oSay:SetText( cAcNb )
@ 2.5,4 BUTTON "Process Application" Action fillDB(oSay) SIZE 75,15
[code=fw:1v8n31dy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />PROCEDURE FillDB<span style="color: #000000;">(</span>oSay<span style="color: #000000;">)</span><br />*----------------------<br /><br /><span style="color: #00C800;">LOCAL</span> oFile := TFileRead<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> cTemp := <span style="color: #ff0000;">""</span>,cTemp1:= <span style="color: #ff0000;">""</span>,cTemp2:= <span style="color: #ff0000;">""</span>,cTemp3:= <span style="color: #ff0000;">""</span>,cTemp4:= <span style="color: #ff0000;">""</span>,cTemp_var:= <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> cAcNb := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> nRecNo:=<span style="color: #000000;">0</span>,old_nRecNo:=<span style="color: #000000;">0</span><br /><span style="color: #B900B9;">//msginfo(cFile,0)</span><br /><span style="color: #B900B9;">//? cFile</span><br />CreateDBF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oFile:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> oFile:<span style="color: #000000;">Error</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> msgStop<span style="color: #000000;">(</span> oFile:<span style="color: #000000;">ErrorMsg</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FileRead: "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> <span style="color: #00C800;">WHILE</span> oFile:<span style="color: #000000;">MoreToRead</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <br /> <br /> cTemp1:=cTemp:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">IF</span> cTemp1 $ <span style="color: #ff0000;">"BANK OF ALEXANDRIA"</span> <br /> <br /> cTemp1:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp2:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp3:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cAcNb := padL<span style="color: #000000;">(</span> allTrim<span style="color: #000000;">(</span> <span style="color: #0000ff;">subStr</span><span style="color: #000000;">(</span> cTemp3, <span style="color: #000000;">30</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /> test-><span style="color: #000000;">(</span> dbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> test->ACNB := cAcNb<br /> oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cAcNb <span style="color: #000000;">)</span><br /> oSay:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//MsgInfo(cAcNb,0)</span><br /> cTemp_var := cTemp1 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp2 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp3 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span><br /> test->TEXT += cTemp_var<br /> <br /> <span style="color: #00C800;">endif</span> <br /> test->TEXT += <span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span> + allTrim<span style="color: #000000;">(</span> cTemp <span style="color: #000000;">)</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">ENDDO</span><br /> oFile:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br />test-><span style="color: #000000;">(</span> dbCloseArea<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span><br /><br /> </div>[/code:1v8n31dy] |
proofing value | Ehab
[quote:iyr580g2]The calling of oSay:setText( cText ) should be done from outside procedure called : fillDB(oSay) likr this : oSay:SetText( cAcNb )
@ 2.5,4 BUTTON "Process Application" Action fillDB(oSay) SIZE 75,15[/quote:iyr580g2]
OK, but you can't refresh using oSay:refresh() you must refresh the dialog (oDlg:refresh()) so you will have to also pass oDlg.
fillDB( oSay, oDlg)
Or, better yet, just return cText from fillDB() then you can do oSay:setText( cText ), oDlg:refresh() in the original routine.
@ 2.5,4 BUTTON "Process Application" Action (oSay:setText( fillDB() ), oDlg:refresh()) SIZE 75,15
Sample Code:
[code=fw:iyr580g2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />external ordkeyno, ordkeycount, ordKeygoto<br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//Dlg32Test()</span><br /> *------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2, oSay<br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + ;<br /> <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">80</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"XXXXXXXXXXX"</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">update</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span> ;<br /> <span style="color: #0000ff;">Action</span> <span style="color: #000000;">(</span> oSay:<span style="color: #000000;">setText</span><span style="color: #000000;">(</span> fillDB<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, oDlg:<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: #B900B9;">//@ 80, 30 say "Account Number" of oDlg pixel</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> ;<br /> <span style="color: #000000;">(</span>oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,sysrefresh<span style="color: #000000;">(</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> fillDB<span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #ff0000;">"YYY"</span></div>[/code:iyr580g2]
Regards,
James |
proofing value | Mr Ehab Samir Aziz
While there are several ways of doing it, here is one, with least changes from your original code.
[code=fw:1r7ayw09]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />*------------------------<br /> <span style="color: #00C800;">local</span> oDlg, oBtn1, oBtn2<br /> <span style="color: #00C800;">local</span> cFilter := <span style="color: #ff0000;">"Text files (*.txt)|*.txt|"</span> + <span style="color: #ff0000;">"All files (*.*)|*.*|"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Choose File"</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>,<span style="color: #000000;">70</span><br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Get File"</span> <span style="color: #0000ff;">Action</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">(</span>cGetFile32<span style="color: #000000;">(</span>cFilter, <span style="color: #ff0000;">"Select File"</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">2.5</span>,<span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Process Application"</span> <span style="color: #0000ff;">Action</span> fillDB<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">of</span> OdLG<br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">SAY</span> <span style="color: #000000;">0</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@Z 999,999"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>,10OF oDlg<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />PROCEDURE FillDB<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br />*----------------------<br /><br /> <span style="color: #00C800;">local</span> n<br /><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1000</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">2000</span><br /> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span> <span style="color: #000000;">0.01</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// just for delay</span><br /> <span style="color: #00C800;">next</span><br /> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span><br /> </div>[/code:1r7ayw09]
Compile and test |
proofing value | This error appears for the lines :
oDlg:aControls[3]:SetText(cAcNb)
Application
===========
Path and name: F:\programs\clipper\FWH\DocuCollect\DocuCollect.exe (32 bits)
Size: 1,397,248 bytes
Time from start: 0 hours 0 mins 10 secs
Error occurred at: 16/05/2013, 19:18:52
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 3
Stack Calls
===========
Called from: DocuCollect.prg => FILLDB(241)
Called from: DocuCollect.prg => (b)DLG32TEST(200) |
proofing value | I did not use acdb
There is no error in my program. Please compile my program as it is first. It works without any errors.
Then study why and how it works and then adapt to your situation. The error is in your adaptation. |
proofing value | What is this array standing for please ?
oDlg:aControls
Why it is indexed by three oDlg:aControls[ 3 ] ? |
proofing value | [quote="Ehab Samir Aziz":2l5lu5nu]What is this array standing for please ?
oDlg:aControls
Why it is indexed by three oDlg:aControls[ 3 ] ?[/quote:2l5lu5nu]
I shall explain everything.
But first thing can you tell me did you compile and test the program I posted as it is without any changes? What is the result? |
proofing value | [code=fw:8ed8a79z]<div class="fw" id="{CB}" style="font-family: monospace;"><br />procedure FillDB<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br />*--------------------------<br /><span style="color: #00C800;">LOCAL</span> n<br /><span style="color: #00C800;">LOCAL</span> oFile := TFileRead<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> cTemp := <span style="color: #ff0000;">""</span>,cTemp1:= <span style="color: #ff0000;">""</span>,cTemp2:= <span style="color: #ff0000;">""</span>,cTemp3:= <span style="color: #ff0000;">""</span>,cTemp4:= <span style="color: #ff0000;">""</span>,cTemp_var:= <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> cAcNb := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Local</span> nRecNo:=<span style="color: #000000;">0</span>,old_nRecNo:=<span style="color: #000000;">0</span><br />CreateDBF<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oFile:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> oFile:<span style="color: #000000;">Error</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> msgStop<span style="color: #000000;">(</span> oFile:<span style="color: #000000;">ErrorMsg</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"FileRead: "</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> <span style="color: #00C800;">WHILE</span> oFile:<span style="color: #000000;">MoreToRead</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <br /> <br /> cTemp1:=cTemp:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">IF</span> <span style="color: #ff0000;">"BANK OF ALEXANDRIA"</span> $ cTemp1<br /> <br /> cTemp1:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp2:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cTemp3:= oFile:<span style="color: #000000;">ReadLine</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cAcNb := padL<span style="color: #000000;">(</span> allTrim<span style="color: #000000;">(</span> <span style="color: #0000ff;">subStr</span><span style="color: #000000;">(</span> cTemp3, <span style="color: #000000;">30</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">)</span><br /> test-><span style="color: #000000;">(</span> dbAppend<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> test->ACNB := cAcNb<br /> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cAcNb <span style="color: #000000;">)</span><br /> SysWait<span style="color: #000000;">(</span> <span style="color: #000000;">0.01</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// just for delay</span><br /> ? cAcNb<br /> cTemp_var := cTemp1 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp2 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> +;<br /> cTemp3 + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span><br /> test->TEXT += cTemp_var<br /> <br /> <span style="color: #00C800;">endif</span> <br /> test->TEXT += <span style="color: #000000;">(</span> <span style="color: #ff0000;">" "</span> + allTrim<span style="color: #000000;">(</span> cTemp <span style="color: #000000;">)</span> + chr<span style="color: #000000;">(</span><span style="color: #000000;">013</span><span style="color: #000000;">)</span> + chr <span style="color: #000000;">(</span><span style="color: #000000;">010</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">ENDDO</span><br /> <span style="color: #B900B9;">//for n := 1000 to 2000</span><br /> <br /> <span style="color: #B900B9;">//next</span><br /> oDlg:<span style="color: #000000;">aControls</span><span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> oFile:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br />test-><span style="color: #000000;">(</span> dbCloseArea<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span><br /><br /> </div>[/code:8ed8a79z]
Application
===========
Path and name: F:\programs\clipper\FWH\DocuCollect\DocuCollect.exe (32 bits)
Size: 1,397,248 bytes
Time from start: 0 hours 0 mins 8 secs
Error occurred at: 18/05/2013, 18:21:18
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 3
Stack Calls
===========
Called from: DocuCollect.prg => FILLDB(239)
Called from: DocuCollect.prg => (b)DLG32TEST(200)
Called from: => TBUTTON:CLICK(0)
Called from: => TBUTTON:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => SENDMESSAGE(0)
Called from: => TDIALOG:COMMAND(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: => TDIALOG:HANDLEEVENT(0)
Called from: => DIALOGBOXINDIRECT(0)
Called from: => TDIALOG:ACTIVATE(0)
Called from: DocuCollect.prg => DLG32TEST(203)
Called from: DocuCollect.prg => (b)BUILDMENU(129)
Called from: => TMENU:COMMAND(0)
Called from: => TWINDOW:COMMAND(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: => TWINDOW:ACTIVATE(0)
Called from: DocuCollect.prg => MAIN(80)
System
======
CPU type: Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz 1533 Mhz
Hardware memory: 1600 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Compiler version: Harbour 1.0.0 Intl. (Rev. 9201)
Windows version: 5.1, Build 2600 Service Pack 3
Windows total applications running: 23
1
2 M
3 Default IME
4 Start Menu
5 CiceroUIWndFrame
6 SysFader
7 TF_FloatingLangBar_WndTitle
8 VBoxSharedClipboardClass
9 VBoxTrayToolWnd
10 Choose File
11 XMS Data Manager
12 C:\WINDOWS\system32\cmd.exe
13 DocuCollect
14 F:\programs\clipper\FWH\DocuCollect\DocuCollect.prg - Notepad++
15 {A7E495BF-9589-4a6e-8479-DDA2D8D3C05F}
16 MCI command handling window
17 Acrobat IEHelper
18 Connections Tray
19 Power Meter
20 MS_WebcheckMonitor
21 DDE Server Window
22 AcrobatTrayIcon
23 Program Manager
Variables in use
================
Procedure Type Value
==========================
FILLDB
Param 1: O Class: ERROR
(b)DLG32TEST
Param 1: O Class: TDIALOG
Local 1: U
Local 2: O Class: TFILEREAD
Local 3: C "** BANK OF ALEXANDRIA"
Local 4: C "A ?§?„?‚?§?‡?±?©"
Local 5: C " ?†?ˆ?¹ ??³?§?¨ RETAIL???ˆ?????± ?°?ˆ ?…?²?§???§ ?ˆ?¬?ˆ?§ 12-07-2012 ?§?„???§?±???®"
Local 6: C " ??³?§?¨ ?±?‚?… 101000963001 P SEND BY POST 1 ?µ????© ?±?‚?…"
Local 7: C ""
Local 8: C ""
Local 9: C "101000963001"
Local 10: N 0
Local 11: N 0
Local 12: S
Local 13: A Len: 2
Local 14: N 3
Local 15: U
Local 16: N 0
TBUTTON:CLICK
TBUTTON:HANDLEEVENT
Local 1: O Class: TBUTTON
_FWH
Param 1: N 2048
Param 2: N 0
Param 3: N 0
Local 1: O Class: TBUTTON
Local 2: U
SENDMESSAGE
Param 1: N 0
Param 2: N 2048
Param 3: N 0
Param 4: N 0
Param 5: N 4
Local 1: O Class: TBUTTON
TDIALOG:COMMAND
Param 1: N 66236
Param 2: N 2048
Param 3: N 0
Param 4: N 0
TWINDOW:HANDLEEVENT
Param 1: N 102
Param 2: N 66236
Local 1: O Class: TDIALOG
Local 2: O Class: TBUTTON
Local 3: N 0
Local 4: N 102
Local 5: N 66236
TDIALOG:HANDLEEVENT
Param 1: N 273
Param 2: N 102
Param 3: N 66236
DIALOGBOXINDIRECT
Param 1: N 273
Param 2: N 102
Param 3: N 66236
Local 1: O Class: TDIALOG
TDIALOG:ACTIVATE
Param 1: N 4194304
Param 2: C "€ ?€ ? C h o o s e F i l e P L e B U T T O N G e t F i l e P - L f B U T T O N P r o c e s s A p p l i c a t i o n "
Param 3: N 131760
Param 4: O Class: TDIALOG
DLG32TEST
Param 1: U
Param 2: U
Param 3: U
Param 4: L .T.
Param 5: U
Param 6: L .T.
Param 7: B {|| ... }
Param 8: U
Param 9: U
Param 10: L .F.
Local 1: O Class: TDIALOG
Local 2: N 131760
Local 3: U
Local 4: U
Local 5: S
Local 6: O Class: TDIALOG
(b)BUILDMENU
Local 1: O Class: TDIALOG
Local 2: U
Local 3: U
Local 4: C "Text files (*.txt)|*.txt|All files (*.*)|*.*|"
TMENU:COMMAND
Param 1: O Class: TMENUITEM
TWINDOW:COMMAND
Param 1: N 20023
Local 1: O Class: TMENU
Local 2: O Class: TMENUITEM
TWINDOW:HANDLEEVENT
Param 1: N 20023
Param 2: N 0
Local 1: O Class: TWINDOW
Local 2: N 0
Local 3: N 20023
Local 4: N 0
_FWH
Param 1: N 273
Param 2: N 20023
Param 3: N 0
WINRUN
Param 1: N 0
Param 2: N 273
Param 3: N 20023
Param 4: N 0
Param 5: N 1
Local 1: O Class: TWINDOW
TWINDOW:ACTIVATE
Param 1: N 131760
MAIN
Param 1: C "MAXIMIZED"
Param 2: U
Param 3: U
Param 4: U
Param 5: U
Param 6: B {|| ... }
Param 7: U
Param 8: U
Param 9: U
Param 10: U
Param 11: U
Param 12: U
Param 13: U
Param 14: U
Param 15: U
Param 16: U
Param 17: U
Param 18: U
Param 19: U
Local 1: O Class: TWINDOW
Local 2: U
Local 3: U
Linked RDDs
===========
ADS
ADT
ADSVFP
ADSCDX
ADSNTX
DBF
DBFFPT
DBFBLOB
DBFNTX
DataBases in use
================
1: => TEST RddName: ADSCDX
==============================
RecNo RecCount BOF EOF
1 1 .F. .F.
Indexes in use TagName
Relations in use
Classes in use:
===============
1 ERROR
2 HBCLASS
3 HBOBJECT
4 HBDEBUGGER
5 HBDBMENU
6 HBDBMENUITEM
7 HBDBWINDOW
8 GET
9 HBGETLIST
10 HBDBBROWSER
11 TBCOLUMN
12 TWINDOW
13 TMENU
14 TMENUITEM
15 TBRUSH
16 TFONT
17 TCONTROL
18 TBITMAP
19 TMSGBAR
20 TRECT
21 TMSGITEM
22 TTIMER
23 TDIALOG
24 TBUTTON
25 TFILEREAD
26 TREG32
Memory Analysis
===============
180 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
|
propiedades oexcel:= TOleAuto():New(""Excel.Application"") | Estimados:
pues eso, [u:1ro61bjl]donde encuentro un manual[/u:1ro61bjl] con las propiedades del objeto devuelto al hacer oexcel:= TOleAuto():New("Excel.Application"), ya que específicamente quiero colocar los títulos en color pero no encuentro la propiedad para realizar la acción.
ej:
oSheet:Rows( 1 ):Font:Bold := .T. , cambia el font de la fila 1 a Negrita
cual sería la propiedad de oSheet:Rows( 1 ):????? para cambiar el color???
espero que me entiendan, saludos y gracias |
propiedades oexcel:= TOleAuto():New(""Excel.Application"") | [code=fw:1haq4d2b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// To change the background color of a cell</span><br />oExcel:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Interior</span>:<span style="color: #000000;">ColorIndex</span> = nColorIndex<br /><br /><span style="color: #B900B9;">// To change the text color of a cell</span><br />oExcel:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">ColorIndex</span> = nColorIndex</div>[/code:1haq4d2b]
The nColorIndex must be set to a numeric value between 1 and 56, with each number representing a different color.
You can try the following code to understand the numbers representing the color
[code=fw:1haq4d2b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">For</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">56</span><br /> oExcel:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span>i, <span style="color: #000000;">1</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> = i<br /> oExcel:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span>i, <span style="color: #000000;">2</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Interior</span>:<span style="color: #000000;">ColorIndex</span> = i<br /><span style="color: #00C800;">Next</span></div>[/code:1haq4d2b]
Regards
Anser |
propiedades oexcel:= TOleAuto():New(""Excel.Application"") | Hola,
Todas las propiedades y metodos del objeto Excel los tienes en el propio Excel. Entras en el Editor de Visual Basic y luego en el Examinador de Objetos (Abres Excel, pulsas Alt+F11 y luego F2). Seleccionas la clase Application y a la derecha te aparecen los metodos y propiedades, algunas de las propiedades son a su vez clases, etc. Excel trae una excelente ayuda (con el botón de la derecha sobre cualquier metodo o propiedad).
Si no conoces bien Excel, una manera sencilla de saber que metodos o propiedades tienes que utilizar para hacer tal cosa, es grabar una macro que lo haga y luego mirar el código de esa macro.
Saludos |
proporcionalidad entre PELLESC y aplicación en ejecución | Hola.
Gente, alguno tiene solución para este problema? les paso el recurso generado cpon pellesC
[url:3d0myyu4]https://drive.google.com/file/d/1C2DG0hj0A6sG0I2kQc_4zi0MEceQXmVs/view?usp=sharing[/url:3d0myyu4]
y nada que ver el tamaño cuando se ejecuta el programa, de hecho necesito poner muchos GETs, en el pellesc me deja pero al ejecuarlo muchos de esos gets no
entran en la pantalla.
[url:3d0myyu4]https://drive.google.com/file/d/1hsNVZSf5j7j9xgOOQYDBsJQg6RxObXcJ/view?usp=sharing[/url:3d0myyu4]
Gracias! |
proporcionalidad entre PELLESC y aplicación en ejecución | A alguien le paso lo mismo? |
proporcionalidad entre PELLESC y aplicación en ejecución | Goofancito
Es por el font
Hay que mantenerlo en MS Sans Serif
Tamaño 8 |
proporcionalidad entre PELLESC y aplicación en ejecución | perfecto. gracias |
proposal / request | Dear friends,
In my opinion it would be very useful to change the file name error that actually is a constant "error.log"
At the moment I declare
PUBLIC cErrorFile := "myerror.log"
modify errsysw.prg
// Generates a file with an Error Log
BEGIN SEQUENCE
oOldError = ErrorBlock( { || DoBreak() } )
// MemoWrit( "error.log", cErrorLog )
MemoWrit( M->cErrorFile, cErrorLog )
END SEQUENCE
ErrorBlock( oOldError )
In a multi user scenario I obtain an error file for every user instead of an unique error.log that contains the latest error.
Best regards
marco |
proposal / request | Call it "myerror.txt" then you can see it from a cell phone. My cell doesn't know what to do with "log". |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.