|
From: Itamar M. L. J. L. <ita...@gm...> - 2015-05-21 15:16:19
|
Error isolated!
#include "hwgui.ch"
Function main
LOCAL oDlg, oBt, oPrint, aPrn := WIN_PRINTERLIST(), oPrn, cNone := ""
INIT DIALOG oDlg CLIPPER NOEXIT AT 600,100 SIZE 600,400
@ 010,10 get oNone var cNone size 100,20
@ 010,50 get ComboBox oPrint ITEMS aPrn Size 280,20 DisplayCount 6
//do not touch anything
@ 010,90 Button oBt Caption 'Exit' Size 70,30 ON CLICK
{||hwg_EndDialog()} //only click on this button here!
ACTIVATE Dialog oDlg Center
oPrn := win_prn():New(rtrim(aPrn[oPrint])) //Here get error!
//End of file bugcombobox.prg
If focus not get in combobox show this error!
Error BASE/1068 Argument error: array access
Called from ->MAIN(15)
HWGUI 2.19 Build 3
Date:05/21/15
Time:11:48:26
Use:
hbmk2 bugcombobox.prg hbwin.hbc
Best regards,
Itamar M. Lins Jr.
|