Pongo un pequeño ejemplo para los Guru, a ver si existe alguna posibilidad de corregir el Error.
El ejemplo es simple, un recurso RES, realizado el Pelles c, con solo un Dialog el cual tiene un Combobox y un Boton de Salida.
El Problema es que al se selecciona un dato del combobox emite un mensaje de prueba al Usuario y luego doy Boton Salir y arroja el error que se detalla.
Saludos
Antonio
Codigo:
Code: Select all
#include "FiveWin.ch"
Function Consu()
Local oDlg1,oSay2
Static cCod_pro1:="",nCod_pro1
Static aProfe:= {},oPaci,oCod_pro1
aProfe:= {{"BUST","ARTURO BUSTIOS"},{"AREL","ARNALDO ARELLANO"},{"OLMO","JORGE OLMO"}}
ASORT( aProfe,,, { |x,y| x[2] < y[2] } )
nCod_pro1=1
DEFINE DIALOG oDlg1 RESOURCE "#10"
REDEFINE COMBOBOX oCod_pro1 VAR nCod_pro1 ITEMS ArrTranspose(aProfe)[2] ID 12 OF oDlg1 ;
ON CHANGE (cCod_pro1:=ArrTranspose(aProfe)[1][oCod_pro1:nAt],Car())
REDEFINE BUTTON ID 15 OF oDlg1 ;
ACTION (oDlg1:END())
ACTIVATE DIALOG oDlg1 CENTERED <---- Aqui Error Linea 25
Return nil
Static Function Car()
MsgStop("No ha Seleccionado Profesional Medico")
Return nil
Code: Select all
Time from start: 0 hours 0 mins 10 secs
Error occurred at: 11/20/18, 22:34:26
Error description: Error BASE/1072 Argument error: <>
Args:
[ 1] = N 2
[ 2] = C ARTURO BUSTIOS
Stack Calls
===========
Called from: .\source\classes\TGET.PRG => TGET:LOSTFOCUS( 1223 )
Called from: .\source\classes\CONTROL.PRG => TGET:KILLFOCUS( 1083 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1696 )
Called from: .\source\classes\TGET.PRG => TGET:HANDLEEVENT( 592 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3544 )
Called from: => DIALOGBOX( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 289 )
Called from: teste.prg => CONSU( 25 )
System
======
CPU type: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz 2600 Mhz
Hardware memory: 8085 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Windows total applications running: 3
1 ,
2 , C:\Util\fwh1709\samples\teste.exe
3 G, C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.17134.407_none_73dcc71f9f7234b
Variables in use
================
Procedure Type Value
==========================
TGET:LOSTFOCUS
Param 1: O Class: ERROR
TGET:KILLFOCUS
Param 1: N 1769592
Local 1: N 2
Local 2: C "ARTURO BUSTIOS"
Local 3: U
Local 4: U
TCONTROL:HANDLEEVENT
Param 1: N 1769592
Local 1: U
TGET:HANDLEEVENT
Param 1: N 8
Param 2: N 1769592
Param 3: N 0
Local 1: U
_FWH
Param 1: N 8
Param 2: N 1769592
Param 3: N 0
Local 1: U
DIALOGBOX
Param 1: N 0
Param 2: N 8
Param 3: N 1769592
Param 4: N 0
Param 5: N 2
Local 1: O Class: TGET
TDIALOG:ACTIVATE
Param 1: N 4194304
Param 2: C "#10"
Param 3: N 0
Param 4: O Class: TDIALOG
CONSU
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: U
Param 11: U
Local 1: N 0
Local 2: S
Local 3: O Class: TDIALOG
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFNTX
DataBases in use
================
Classes in use:
===============
1 ERROR
2 HBCLASS
3 HBOBJECT
4 TWINDOW
5 TDIALOG
6 TBRUSH
7 TCONTROL
8 TCOMBOBOX
9 TGET
10 GET
11 TCLIPGET
12 TBUTTON
13 TFONT
14 TRECT
15 TREG32
Memory Analysis
===============
325 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes