TRecentListMenu in a TPopupMenu
Publicado: Vie May 21, 2010 7:36 pm
Hi!
I would like to fill a TPopupMenu with items from a TRecentlist:
METHOD FormInitialize( oSender ) CLASS TForm1
WITH OBJECT ::oMenuMru := TRecentListMenu():New()
:cIniFile := AppData:cInilocalFile
:Read()
:Create( ::oPopupMenuMRU )
:OnClick := { | oSender, cFile | MsgInfo( cFile ) }
END WITH
RETURN Nil
I get this error:
Untersystemaufruf: BASE
Systemcode: 1132
Default-Status: .F.
Beschreibung: Bound error
Operation: array access
Argumente: [ 1] = Typ: A Wert: [ 2] = Typ: N Wert: 1
Involvierte Dateien:
DOS-Fehlercode: 0
Aufgerufene Programmteile:
TRECENTLISTMENU:BUILDMENU (89)
TRECENTLISTMENU:CREATE (60)
TFORM1:FORMINITIALIZE (165)
Is it only possible to add a TRecentList to a TMenu?
Best regards, Timm.
I would like to fill a TPopupMenu with items from a TRecentlist:
METHOD FormInitialize( oSender ) CLASS TForm1
WITH OBJECT ::oMenuMru := TRecentListMenu():New()
:cIniFile := AppData:cInilocalFile
:Read()
:Create( ::oPopupMenuMRU )
:OnClick := { | oSender, cFile | MsgInfo( cFile ) }
END WITH
RETURN Nil
I get this error:
Untersystemaufruf: BASE
Systemcode: 1132
Default-Status: .F.
Beschreibung: Bound error
Operation: array access
Argumente: [ 1] = Typ: A Wert: [ 2] = Typ: N Wert: 1
Involvierte Dateien:
DOS-Fehlercode: 0
Aufgerufene Programmteile:
TRECENTLISTMENU:BUILDMENU (89)
TRECENTLISTMENU:CREATE (60)
TFORM1:FORMINITIALIZE (165)
Is it only possible to add a TRecentList to a TMenu?
Best regards, Timm.