1. Weird Error Message

Am in the process of switching from win32lib to wxeud.e In one program, receiving this error:

C:\..... .exw:84

<0158>:: Wrong number of arguments for forward reference

C:\..... .exw:<84> function create. Expected 2, but found 8

In the code line 84 is at "updaterec"

 
constant	 
	win = createEx( Window, "exw_test_01.exw", 0, xWinPos, yWinPos, winWidth, winHeight, 0,0),	 
	box = create(Group,"", win,boxX,boxY,boxW,boxH,0), 
	box2= create(Group,"", win,boxX,boxY,430,230,0), 
	box3= create(Group,"", win,boxX,boxY,1100,800,0), 
	doit = create(Button, "Do It!",win,(boxW-126)/2,800,126,25,w32or_all({#8000})), 
	oldkey  = create(EditText,"",box2,10,25,200,20,0), 
	newkey  = create(EditText,"",box2,10,50,200,20,0), 
	recdata = create(EditText,"",box2,10,75,400,20,0), 
	quitprog  = create(Button, "Quit Program",box2,10,190,126,25,w32or_all({#8000})), 
	nextrec   = create(Button, "Next Record",box2,10,100,126,25,w32or_all({#8000})), 
	deleterec = create(Button, "Delete Record",box2,10,130,126,25,w32or_all({#8000})), 
	updaterec = create(Button, "Up Date Record",box2,10,160,126,25,w32or_all({#8000})) 
	 
--	GStatus = create( StatusBar, "Status Bar ", win, 0, {{300},0.46,-1}, 0, 0, 0 ) 
--	setIcon(win,loadIconFromFile("./favicon-1.ico")) 
 
-- ******************** 
-- *** End Template *** 
-- ******************** 
	object color_Main_Win={213,201,74} 	 
	setWindowBackColor(win,color_Main_Win) 
	integer boxW,boxH,boxX,boxY 
	boxW=winWidth-16 boxH=winHeight-56 boxX=0 boxY=-6 
 
	object cOn, tc, color1 
	cOn = "CON_" 
	tc = rgb(0,0,0) 
	color1 = rgb(224,238,128) 
-- ***************************************** 
-- *** Buttons - Handlers and Procedures *** 
-- ***************************************** 
setHandler(doit, w32HClick, routine_id("study_bitmaps"))	 

Any suggestions greatly appreciated..

If I uncomment the GStatus line, put a coma at updaterec, the error moves to the line GStatus

new topic     » topic index » view message » categorize

2. Re: Weird Error Message

buzzo said...

Am in the process of switching from win32lib to wxeud.e In one program, receiving this error:

C:\..... .exw:84

<0158>:: Wrong number of arguments for forward reference

C:\..... .exw:<84> function create. Expected 2, but found 8

In the code line 84 is at "updaterec"

 
constant	 
	win = createEx( Window, "exw_test_01.exw", 0, xWinPos, yWinPos, winWidth, winHeight, 0,0),	 
	box = create(Group,"", win,boxX,boxY,boxW,boxH,0), 
	box2= create(Group,"", win,boxX,boxY,430,230,0), 
	box3= create(Group,"", win,boxX,boxY,1100,800,0), 
	doit = create(Button, "Do It!",win,(boxW-126)/2,800,126,25,w32or_all({#8000})), 
	oldkey  = create(EditText,"",box2,10,25,200,20,0), 
	newkey  = create(EditText,"",box2,10,50,200,20,0), 
	recdata = create(EditText,"",box2,10,75,400,20,0), 
	quitprog  = create(Button, "Quit Program",box2,10,190,126,25,w32or_all({#8000})), 
	nextrec   = create(Button, "Next Record",box2,10,100,126,25,w32or_all({#8000})), 
	deleterec = create(Button, "Delete Record",box2,10,130,126,25,w32or_all({#8000})), 
	updaterec = create(Button, "Up Date Record",box2,10,160,126,25,w32or_all({#8000})) 
	 
--	GStatus = create( StatusBar, "Status Bar ", win, 0, {{300},0.46,-1}, 0, 0, 0 ) 
--	setIcon(win,loadIconFromFile("./favicon-1.ico")) 
 
-- ******************** 
-- *** End Template *** 
-- ******************** 
	object color_Main_Win={213,201,74} 	 
	setWindowBackColor(win,color_Main_Win) 
	integer boxW,boxH,boxX,boxY 
	boxW=winWidth-16 boxH=winHeight-56 boxX=0 boxY=-6 
 
	object cOn, tc, color1 
	cOn = "CON_" 
	tc = rgb(0,0,0) 
	color1 = rgb(224,238,128) 
-- ***************************************** 
-- *** Buttons - Handlers and Procedures *** 
-- ***************************************** 
setHandler(doit, w32HClick, routine_id("study_bitmaps"))	 

Any suggestions greatly appreciated..

If I uncomment the GStatus line, put a coma at updaterec, the error moves to the line GStatus

Problem may be that you have the wrong number of parameters somewhere LATER in your program where you are using the buttons.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Weird Error Message

buzzo said...

Am in the process of switching from win32lib to wxeud.e ...

I don't know wxeud.e, but is it possible that it contains a routine called "create", which takes only two arguments?

new topic     » goto parent     » topic index » view message » categorize

4. Re: Weird Error Message

Thanks Derek.. Even stranger, I have two programs that I am attempting to move from win32Lib to wxEuphoria. One runs without any changes at all, but the other bombs.. identical calls in both programs.. identical includes.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Weird Error Message

My bad........ new to notepad plus plus ........ was not running the files I intended to run...

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu