Amigos del foro, tengo el siguiente codigo :
Do While .T.
Select H
zap
mNumero := SPACE(7)
mCod := space(3)
mDesc1 := space(60)
mFecha := ctod("")
mMts := 0
mConcep1 := Space(80)
mConcep2 := Space(80)
store 0 to mTotalReg,mTotaligv,mTotalcos
mCancelar := .F.
Select H
DEFINE DIALOG oDlg RESOURCE 143 BRUSH oBrush TRANSPARENT FONT oFont1
REDEFINE INFOBAR oInfoBar ID 100 GRADIENT;
BITMAP "Notes.BMP" LEFT PROMPT "Registro de Cosumo de Telas " CENTER ;
COLOR CLR_WHITE TEXT "" LEFT COLOR CLR_YELLOW ;
OF oDlg UPDATE BORDER
REDEFINE GET oNumero VAR mNumero ID 121 OF oDlg VALID(BUS_CON2(@mnumero,@oNumero))
REDEFINE GET oCod Var mCod ID 101 of oDlg VALID(BUS_GRUPO(@mCod,@oCod,@mDesc1,@oDesc1))
REDEFINE GET oDesc1 Var mDesc1 ID 103 of oDlg WHEN .F.
REDEFINE GET oFecha Var mFecha ID 109 of oDlg PICTURE "99/99/9999"
REDEFINE GET mMts Var mMts ID 116 of oDlg PICTURE "999.99"
REDEFINE GET oConcep1 Var mConcep1 ID 114 of oDlg when mEditar
REDEFINE GET oConcep2 Var mConcep2 ID 115 of oDlg when mEditar
REDEFINE LISTBOX oBrw FIELDS H->PROF, ALLTRIM(H->NOM_CLI),TRANSFORM(H->PLAN_MT,"999.99"),TRANSFORM(H->REAL_MT,"999.99") ;
HEADERS "Proforma","Cliente al Que pertenece ","Plan Mts", "Real Mts" ;
FIELDSIZES 80,250,100,100 ;
ID 102 OF oDlg
oBrw:nClrForeFocus:= {|| CLR_YELLOW }
oBrw:nClrBackFocus:= {|| CLR_GREEN }
oBrw:bRClicked = { || oLbx:ShowSizes() }
oBrw:aJustify := {.F.,.F.,.F.,.F.}
oBrw:NCLRPANE:={||IIF((ORDKEYNO())%2==0,RGB(230,230,230),RGB(190,215,190))}
REDEFINE GET oTotalReg Var mTotalReg ID 119 of oDlg picture "999,999.99" when .F.
REDEFINE GET oTotaligv Var mTotaligv ID 120 of oDlg picture "999,999.99" when .F.
REDEFINE GET oTotalcos Var mTotalcos ID 104 of oDlg picture "999,999.99" when .F.
REDEFINE BUTTON ID 133 OF oDlg ;
ACTION ( mGrabar:=.T.,mBorrar:=.F.,GrabaSal2() ) WHEN mEDITAR
REDEFINE BUTTON ID 107 OF oDlg ACTION( mCancelar:=.T., oDlg:End())
REDEFINE BUTTON oBtagre ID 110 OF oDlg ACTION ( ModiSal2(.T.) ) WHEN mEDITAR
REDEFINE BUTTON oBtmodi ID 112 OF oDlg ACTION ( ModiSal2(.F.) ) When mEditar
REDEFINE BUTTON oBtborra ID 132 OF oDlg ACTION ( BorraS1() ) when mEditar
ACTIVATE DIALOG oDlg CENTERED
If mCancelar
Exit
Endif
ENDDO
CLOSE DATA
oFont1:End()
oBrush:End()
Return Nil
El asunto es que el codigo compila perfectamente pero cuando lo ejecuto en el menu de la aplicacion me envia un error un tanto extraño, ni idea tengo a que se deba, me direcciona a la linea tget.prg (1743) que ni existe, el error es el siguiente :
==========
Path and name: C:\sistemas\MONGALO2\MONGALO.exe (32 bits)
Size: 3,194,880 bytes
Time from start: 0 hours 0 mins 6 secs
Error occurred at: 03/10/2009, 12:23:26
Error description: Error BASE/1122 Argument error: TRANSFORM
Args:
[ 1] = O Object
[ 2] = C 999.99
Stack Calls
===========
Called from: => TRANSFORM(0)
Called from: tget.prg => TCLIPGET:PUTMASK(1743)
Called from: tget.prg => TCLIPGET:SETFOCUS(806)
Called from: TGET.PRG => TGET:INITIATE(0)
Called from: => __OBJSENDMSG(0)
Called from: HARBOUR.PRG => OSEND(0)
Called from: HARBOUR.PRG => ASEND(0)
Called from: DIALOG.PRG => TDIALOG:INITIATE(0)
Called from: DIALOG.PRG => TDIALOG:HANDLEEVENT(0)
Called from: => DIALOGBOX(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: fisico.prg => FISICO3(136)
Called from: mongalo.prg => (b)BUILDMENU(232)
Called from: MENU.PRG => TMENU:COMMAND(0)
Called from: WINDOW.PRG => TWINDOW:COMMAND(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)
Called from: mongalo.prg => MAIN(145)
System
======
CPU type: Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz 1733 Mhz
Hardware memory: 1015 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Compiler version: xHarbour build 1.1.0 Intl. (SimpLex)
Windows version: 5.1, Build 2600 Service Pack 3
Windows total applications running: 55
1
2 SysFader
3 M
4 Default IME
5 Menú Inicio
6 CiceroUIWndFrame
7 TF_FloatingLangBar_WndTitle
8 S/PDIF IN/OUT Settings
9 Set Device Type
10 Mixer ToolBox
11 Connector Settings
12 CL RC Engine3 Dummy Winidow
13 SISTEMA INTEGRADO DE CONTROLES ADMINISTRATIVOS - Mongalo Publicidad
14 Símbolo del sistema
15 HideForm
16 Mongalo
17 http://www.FiveTechSoft.com • Post a new topic - Windows Internet Explorer
18 MED - unregistered - [C:\sistemas\MONGALO2\fisico.prg]
19 MCI command handling window
20 Acrobat IEHelper
21 DDE Server Window
22 WOWExec
23 AD760EEA-46D4-4e12-BAF5-58E2E3D1D0B2_rp ... otmail.com
24 B1E4D14A-F6D0-457d-8F12-711BF924E011_rp ... otmail.com
25 D897EE71-E263-449d-9241-5E918A81AF41_rp ... otmail.com
26 0C6C1D2B-CA92-49a1-B5F5-A9BBF3D2921A_rp ... otmail.com
27 CTicketManagerWnd
28 RTCMediaMessageWindow
29 CRTCMediaController
30 CRTCClient
31 TaskSwitchXP Pro 2.0
32 DTS Connect
33 Dolby Home Threater
34 Advance Setting
35 TOOLBOX
36 Load EQ Preset
37 DeleteEQ
38 Save EQ
39 Realtek HD Audio Manager
40 BackMain_Form
41 Notification Wnd for RNAdmin
42 Connections Tray
43 avast! UI Control Window
44 avast! Antivirus
45 Medidor de energía
46 HkWndName
47 PersistWndName
48 igfxtrayWindow
49 MS_WebcheckMonitor
50 aswServ helper window
51 GDI+ Window
52 Mi PC
53 Windows Live Messenger
54 Resource Workshop - DIALOG : DIALOG_137
55 Program Manager
Variables in use
================
Procedure Type Value
==========================
TRANSFORM
Param 1: O Class: TGET
Param 2: C "999.99"
Local 1: U
Local 2: N 0
TCLIPGET:PUTMASK
Param 1: O Class: TGET
Param 2: L .F.
Local 1: O Class: TCLIPGET
Local 2: U
Local 3: U
Local 4: C ""
Local 5: C "999.99"
Local 6: U
Local 7: U
Local 8: U
Local 9: N 0
TCLIPGET:SETFOCUS
Local 1: O Class: TCLIPGET
Local 2: O Class: TGET
Local 3: U
Local 4: O Class: TCLIPGET
TGET:INITIATE
Param 1: N 1377674
Local 1: O Class: TGET
__OBJSENDMSG
Param 1: O Class: TGET
Param 2: C "INITIATE"
Param 3: N 1377674
OSEND
Param 1: O Class: TGET
Param 2: C "INITIATE"
Param 3: N 1377674
Local 1: U
Local 2: U
Local 3: U
Local 4: U
Local 5: U
Local 6: U
Local 7: U
Local 8: U
Local 9: U
Local 10: N 1
Local 11: U
ASEND
Param 1: A Len: 17
Param 2: C "INITIATE()"
Param 3: N 1377674
Local 1: U
Local 2: U
Local 3: U
Local 4: U
Local 5: U
Local 6: U
Local 7: U
Local 8: U
Local 9: U
Local 10: N 6
Local 11: N 1
TDIALOG:INITIATE
Param 1: N 1771018
Param 2: N 1377674
Local 1: O Class: TDIALOG
Local 2: L .T.
Local 3: U
Local 4: U
Local 5: L .F.
Local 6: U
TDIALOG:HANDLEEVENT
Param 1: N 272
Param 2: N 1771018
Param 3: N 1377674
Local 1: O Class: TDIALOG
DIALOGBOX
Param 1: N 4194304
Param 2: N 143
Param 3: N 132642
Param 4: O Class: TDIALOG
TDIALOG:ACTIVATE
Param 1: U
Param 2: U
Param 3: U
Param 4: L .T.
Param 5: U
Param 6: L .T.
Param 7: U
Param 8: U
Param 9: U
Param 10: L .F.
Local 1: O Class: TDIALOG
Local 2: N 132642
Local 3: U
Local 4: U
Local 5: U
Local 6: O Class: TDIALOG
FISICO3
Local 1: O Class: TDIALOG
Local 2: O Class: TBRUSH
Local 3: O Class: TVIAINFOBAR
Local 4: O Class: TFONT
Local 5: A Len: 16
(b)BUILDMENU
Param 1: O Class: TMENUITEM
TMENU:COMMAND
Param 1: N 20052
Local 1: O Class: TMENU
Local 2: O Class: TMENUITEM
TWINDOW:COMMAND
Param 1: N 20052
Param 2: N 0
Local 1: O Class: TWINDOW
Local 2: N 0
Local 3: N 20052
Local 4: N 0
TWINDOW:HANDLEEVENT
Param 1: N 273
Param 2: N 20052
Param 3: N 0
_FWH
Param 1: N 0
Param 2: N 273
Param 3: N 20052
Param 4: N 0
Param 5: N 1
Local 1: O Class: TWINDOW
WINRUN
Param 1: N 132642
TWINDOW:ACTIVATE
Param 1: C "MAXIMIZED"
Param 2: U
Param 3: U
Param 4: U
Param 5: U
Param 6: U
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
MAIN
Local 1: O Class: TBAR
Local 2: U
Local 3: U
Local 4: O Class: TIMAGE
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFCDX
DBFNTX
DataBases in use
================
1: CONS_E RddName: DBFCDX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
=> NUMERO CONS_E1
Relations in use
2: CONS_D RddName: DBFCDX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
=> NUMERO CONS_D1
Relations in use
3: GRUPOS RddName: DBFCDX
==============================
RecNo RecCount BOF EOF
1 534 .F. .F.
Indexes in use TagName
=> CODIGO GRUPOS1
DESC1 GRUPOS2
UPPER(DESC1) GRUPOS3
Relations in use
4: F2A RddName: DBFCDX
==============================
RecNo RecCount BOF EOF
3923 8839 .F. .F.
Indexes in use TagName
=> TIPO_DOC + NUMFACT F2A1
NUM_OI F2A2
NUM_FAC F2A3
MAQUINA F2A6
NUMFACT + SUBSTR(CODPROD,1,3) F2ACONS
Relations in use
8: => MOV_CONS RddName: DBFCDX
==============================
RecNo RecCount BOF EOF
1 0 .T. .T.
Indexes in use TagName
Relations in use
Classes in use:
===============
1 HASHENTRY
2 HBCLASS
3 HBOBJECT
4 FRREPORTMANAGER
5 FRPRINTOPTIONS
6 FRPREVIEWOPTIONS
7 FRENGINEOPTIONS
8 FRREPORTOPTIONS
9 TWINDOW
10 TDIALOG
11 TBRUSH
12 TCONTROL
13 TGET
14 GET
15 TCLIPGET
16 TBITMAP
17 TBUTTON
18 TFONT
19 TMENU
20 TMENUITEM
21 TBAR
22 TRECT
23 TBTNBMP
24 TMSGBAR
25 TMSGITEM
26 TTIMER
27 TIMAGE
28 TVIAINFOBAR
29 TVIABITMAP
30 TWBROWSE
31 ERROR
32 TREG32
Memory Analysis
===============
1947 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
De antemano muy agradecido de cualquier orientacion al respecto, que estoy por tirar la toalla,
Saludes desde Managua, Nicaragua
Ramon Paredes