Hola,
la funcion inputwindow arroja un error:
Date:08/27/09 Time: 10:56:01
Error BASE/1003 Variable does not exist: __INPUTWINDOW_CONTROL_1
Called from GETCONTROLHANDLE(964)
Called from _SETFOCUS(1075)
Called from INPUTWINDOW(3115)
Called from EJECUTA(23)
Called from (b)MAIN(9)
Called from _DOCONTROLEVENTPROCEDURE(4735)
Called from EVENTS(1360)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4377)
Called from MAIN(13)
luisvasquezcl wrote:Hola,
la funcion inputwindow arroja un error:
Date:08/27/09 Time: 10:56:01
Error BASE/1003 Variable does not exist: __INPUTWINDOW_CONTROL_1
Called from GETCONTROLHANDLE(964)
Called from _SETFOCUS(1075)
Called from INPUTWINDOW(3115)
Called from EJECUTA(23)
Called from (b)MAIN(9)
Called from _DOCONTROLEVENTPROCEDURE(4735)
Called from EVENTS(1360)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4377)
Called from MAIN(13)
Estimado Roberto,
muchas gracias por tu pronta respuesta.
Creo que sería conveniente corregir la documentación y especificar que tipo de datos se debe especificar en el array aformat para asi evitar futuros avisos de error como este.
También poner un ejemplo en los Samples ya que ayuda muchisimo como consulta y en la comprensión de la libreria.
saludos cordiales,
Luis Vasquez
luisvasquezcl wrote:Estimado Roberto,
muchas gracias por tu pronta respuesta.
Creo que sería conveniente corregir la documentación y especificar que tipo de datos se debe especificar en el array aformat para asi evitar futuros avisos de error como este.
También poner un ejemplo en los Samples ya que ayuda muchisimo como consulta y en la comprensión de la libreria.
saludos cordiales,
Luis Vasquez
luisvasquezcl wrote:Hola,
la funcion inputwindow arroja un error:
Date:08/27/09 Time: 10:56:01
Error BASE/1003 Variable does not exist: __INPUTWINDOW_CONTROL_1
Called from GETCONTROLHANDLE(964)
Called from _SETFOCUS(1075)
Called from INPUTWINDOW(3115)
Called from EJECUTA(23)
Called from (b)MAIN(9)
Called from _DOCONTROLEVENTPROCEDURE(4735)
Called from EVENTS(1360)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4377)
Called from MAIN(13)
For an initial character value you must specify a number in format indicating maxlength.
Now in this new release in HMG 3.4.0, InputWindow has improved. This kind of posible mistake is treated internally by InputWindow() to prevent this error.
So you can take this same code, build it with HMG 3.4.0 and will see is going to work without runtime error.
Screen2.png (43.57 KiB) Viewed 3396 times
The example was executed but without the first field. Because InputWindow interpreted as a LABEL by the reason aFormats value is NIL.
This running will show clearly to the user when wrong parameter be passed on.
In order to let it registered all improvements on new InputWindow in this last release (3.4.0):
[tr][td]Control to be created[/td][td]aInitValues[/b][/td][td] [/td][td]aFormats[/b][/td][/tr]
[tr][td]Label[/td][td]""[/td][td][/td][td]Nil[/td][/tr]
[tr][td]TextBox "C"[/td][td]""[/td][td][/td][td]>= 32[/td][/tr]
[tr][td]TextBox "C" (PassWord)[/td][td]""[/td][td][/td][td]"PASSWORD"[/td][/tr]
[tr][td]TextBox "N" (New)[/td][td]9[/td][td][/td][td]9[/td][/tr]
[tr][td]TextBox "N"(INPUTMASK)[/td][td]9[/td][td][/td][td]Ex: "99.99"[/td][/tr]
[tr][td]ComboBox[/td][td]9[/td][td][/td][td]{}[/td][/tr]
[tr][td]CheckBox[/td][td].T. or .F.[/td][td][/td][td][/td][/tr]
[tr][td]DatePicker[/td][td]CtoD() or Date()[/td][td][/td][td][/td][/tr]
[tr][td]EditBox[/td][td]""[/td][td][/td][td]> 32[/td][/tr]
[tr][td]EditBox[/td][td]Dbf Memo field[/td][td][/td][td][/td][/tr]
[tr][td]Grid[/td][td]{{}}[/td][td][/td][td]{{headers},{Widths}}[/td][/tr][/table]
Further examples and descriptions about new resources, you can find in this topic. Probably more some two controls is expecting to be added like as: TimePicker and Spinner. As InputWindow been considered an alternative to in-place-edit feature of Grid, just to be compatible with Grid's ColumnControls.
Indicanting bugs and new ideas and welcome. I hope you enjoy !
This is a very practical tool for simple edition. It's incredible what ARRAYS can do for us !
All the credits to the great master, Roberto Lopez !
HMGing a better world "Matter tells space how to curve, space tells matter how to move." Albert Einstein
Hola Pablo,
muchas gracias por la información.
he estado siguiendo las novedades de tu aplicación inputwindow, la considero muy buena, muy bien implementada y con todo el mérito para incluirla en reemplazo del inputwindow original, sin desconocer el mérito que tiene nuestro maestro Roberto Lopez.
saludos cordiales,
Luis Vásquez.