i'm unsuccesfully trying with this:
function main()
local oObj, oWnd
define window oWnd from 0,0 to 800, 800 pixel
oObj := CreateObject( "L11.List-Label11_Ctrl_32.1" )
@0,0 button "Test" action oObj:Desing(0, oWnd:hWnd, 'Design reports', 2, 'simple.lst', 1)
activate window oWnd
return
It reports a memory error.
Regards,
Roberto Parisi
FWH and List & Label
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: FWH and List & Label
Are you sure Desing is the correct syntax?Roberto Parisi wrote:oObj:Desing
What is the statement that bombs out?Roberto Parisi wrote:It reports a memory error.
EMG
-
- Posts: 116
- Joined: Thu Oct 13, 2005 5:14 pm
- Location: Italy
Ok, the memory error has gone away. Now I get another error.
This is the code:
#include "fivewin.ch"
function main()
local oObj, oWnd
define window oWnd from 0,0 to 800, 800 pixel
oObj := CreateObject( "L11.List-Label11_Ctrl_32.1" )
@0,0 button "Test" action oObj:Design(0, oWnd:hWnd, 'Design reports', 2, 'simple.lst', 1)
activate window oWnd
return
and this is the error:
Application
===========
Path and name: I:\work\Test\Test.exe (32 bits)
Size: 1,229,312 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 04/28/06, 14:55:55
Error description: Error L11.List-Label11_Ctrl_32.1/16389 E_FAIL: DESIGN
Args:
[ 1] = N 0
[ 2] = N 264122
[ 3] = C Design reports
[ 4] = N 2
[ 5] = C simple.lst
[ 6] = N 1
Stack Calls
===========
Called from TOLEAUTO:DESIGN(0)
Called from (b)MAIN(7)
Called from TBUTTON:CLICK(161)
Called from TBUTTON:HANDLEEVENT(1293)
Called from _FWH(3124)
Called from SENDMESSAGE(0)
Called from TWINDOW:COMMAND(939)
Called from TWINDOW:HANDLEEVENT(0)
Called from _FWH(3124)
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(880)
Called from MAIN(8)
Regards,
Roberto Parisi[/img]
This is the code:
#include "fivewin.ch"
function main()
local oObj, oWnd
define window oWnd from 0,0 to 800, 800 pixel
oObj := CreateObject( "L11.List-Label11_Ctrl_32.1" )
@0,0 button "Test" action oObj:Design(0, oWnd:hWnd, 'Design reports', 2, 'simple.lst', 1)
activate window oWnd
return
and this is the error:
Application
===========
Path and name: I:\work\Test\Test.exe (32 bits)
Size: 1,229,312 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 04/28/06, 14:55:55
Error description: Error L11.List-Label11_Ctrl_32.1/16389 E_FAIL: DESIGN
Args:
[ 1] = N 0
[ 2] = N 264122
[ 3] = C Design reports
[ 4] = N 2
[ 5] = C simple.lst
[ 6] = N 1
Stack Calls
===========
Called from TOLEAUTO:DESIGN(0)
Called from (b)MAIN(7)
Called from TBUTTON:CLICK(161)
Called from TBUTTON:HANDLEEVENT(1293)
Called from _FWH(3124)
Called from SENDMESSAGE(0)
Called from TWINDOW:COMMAND(939)
Called from TWINDOW:HANDLEEVENT(0)
Called from _FWH(3124)
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(880)
Called from MAIN(8)
Regards,
Roberto Parisi[/img]
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
-
- Posts: 116
- Joined: Thu Oct 13, 2005 5:14 pm
- Location: Italy
Thx Enrico,
I modified the sample according to L&L VB calling docs.
DOCS ON
Calling the Designer
Once the data link is made, a single call is enough to bring up the Designer. The Design method takes a number of parameters which enable you to customize its behavior. These are described in detail in the OCX online help. A call, such as:
ListLabel1.Design 0, hWnd, "Design reports", PROJECT_LIST, "simple.lst", 1
DOCS OFF
This is the source:
#include "fivewin.ch"
#define LL_PROJECT_LIST 2
function main()
local oObj, oWnd
define window oWnd from 0,0 to 800, 800 pixel
oObj := CreateObject( "L11.List-Label11_Ctrl_32.1" )
@0,0 button "Test" action oObj:Design(0, oWnd:hWnd, "Design reports", LL_PROJECT_LIST, "simple.lst", 1)
activate window oWnd
return
Regards
I modified the sample according to L&L VB calling docs.
DOCS ON
Calling the Designer
Once the data link is made, a single call is enough to bring up the Designer. The Design method takes a number of parameters which enable you to customize its behavior. These are described in detail in the OCX online help. A call, such as:
ListLabel1.Design 0, hWnd, "Design reports", PROJECT_LIST, "simple.lst", 1
DOCS OFF
This is the source:
#include "fivewin.ch"
#define LL_PROJECT_LIST 2
function main()
local oObj, oWnd
define window oWnd from 0,0 to 800, 800 pixel
oObj := CreateObject( "L11.List-Label11_Ctrl_32.1" )
@0,0 button "Test" action oObj:Design(0, oWnd:hWnd, "Design reports", LL_PROJECT_LIST, "simple.lst", 1)
activate window oWnd
return
Regards