Weird Error Message
- Posted by buzzo Nov 10, 2014
- 1567 views
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

