oList := TListView():New(oAllegati:nHeight-300,2,{},bAction, oAllegati, ,,.T., .F., oAllegati:nwidth-25,150, )
function Optionfile(oAllegati,oList)
msginfo(oList:nOption)
return nil
I need a baction to show the caption of item
But the baction not run ok
I tried also with
Local nOption:= oList:nOption
oList:GetItem(nOption)
? oList:aPrompt[nOption]
and
msginfo(str(oList:nOption))
give me this error
- Code: Select all Expand view RUN
- Application
===========
Path and name: E:\Allegati\Allegati.Exe (32 bits)
Size: 2,789,376 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20140725)
FiveWin Version: FWHX 15.01
Windows version: 5.1, Build 2600 Service Pack 3
Time from start: 0 hours 0 mins 12 secs
Error occurred at: 06/16/15, 09:57:56
Error description: Error BASE/1004 Class: 'NUMERIC' has no exported method: NOPTION
Args:
[ 1] = N 2
Stack Calls
===========
Called from: => NOPTION( 0 )
Called from: Source\test.prg => OPTIONFILE( 165 )
Called from: Source\test.prg => (b)CREALISTVIEW( 206 )
Called from: Source\tlistvie.prg => TLISTVIEW:NOTIFY( 222 )
Called from: .\source\classes\WINDOW.PRG => TDIALOG:NOTIFY( 1670 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 906 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 286 )
Called from: Source\test.prg => TEST( 156 )
Called from: Source\test.prg => MAIN( 45 )
Local nfile:=oList:nOption
msginfo(str(oList:nOption)) give me the number
? oList:aItems[nFile]:cText //make error