Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi All,
i am coding in Qlikview 11 and i have written and i received a "Script line error" just after a CALL like this
CALL my_proc('param_1','param_2')
i have no idea why, someone have some suggestion?
thanks a lot.
i have document log but i don't understand why happen this error, i tryed also to follow everithing with debug mode and check all the variable.
i found the problem.
i wrote two subroutine with the same name and only if i tried to call it gave me an error.
i hope that my experience can help other with stupid error like mine.
thanks to everyone.
Noted.
BTW did the last definition still correspond the CALL interface (number of parameters the same). I would assume that the second definition overwrites the first one...
Yes, the second definition doesn't have parameters and is for that the error.
I'll answer my own question: Probably not.
The following code executes perfectly:
SUB my_proc(vParm1)
SET vFlag = ProcDef1;
END SUB
SUB my_proc(vParm1001)
SET vFlag = ProcDef2;
END SUB
CALL My_Proc('val1');
And variable vFlag will contain 'ProcDef2', meaning that the last definition is being executed. It's not just the fact that you defined your SUB twice that causes this error.
thank you for explanation