Greetings! I just installed PowerBASIC. This is my first post. When I compiled the following code, I got the message: "Parameter mismatches definition". The compiler indicated that the problem is with the instruction:
xx = STR$(AddOneDbl,8). Your help will be greatly appreciated. May you have a blessed day.
Sincerely,
Michael Fitzpatrick
Greetings again. I fiddled around with the above code (without finding my error), and got something strange(to me) which compiled without errors:
I would have thought that there would be a type mismatch at the instruction: y = STR$(xx,8) > "tree"
but the code compiled without error. Why would there be no errors in the compile of the function AddOneDbl? Thanks again.
xx = STR$(AddOneDbl,8). Your help will be greatly appreciated. May you have a blessed day.
Sincerely,
Michael Fitzpatrick
Code:
FUNCTION AddOneDbl ALIAS "AddOneDbl" (BYVAL x AS DOUBLE) EXPORT AS DOUBLE AddOneDbl = x + 1.0 DIM XX AS DOUBLE xx = STR$(AddOneDbl,8) MSGBOX "Current value of XX is: " & xx END FUNCTION
Code:
FUNCTION AddOneDbl ALIAS "AddOneDbl" (BYVAL x AS DOUBLE) EXPORT AS DOUBLE AddOneDbl = x + 1.0 DIM XX AS DOUBLE DIM y AS DOUBLE xx = 5.0 y = STR$(xx,8) > "tree" END FUNCTION
but the code compiled without error. Why would there be no errors in the compile of the function AddOneDbl? Thanks again.
Comment