Main forum > Bug Reports

ide function list

(1/1)

Hemlos:
if you declare a function with %, it adds an empty function to the list on the jumps page.

ie

function helloworld%:
endfunction

Kitty Hello:
because the function name if helloword. The "%" is just an indicator that it returns an integer.
Also, you cannot call helloworld%() - it will give an compiler error (although that is pretty stupid, but I was so far unable to fix it).

Hemlos:
i did not know that about helloworld fn.

it was just an example..

here is what else does it:



--- Code: ---FUNCTION SFXR%: sfx_data$, filename$  // user settings input, save name
LOCAL sfx AS TSfxrSynth
IF NOT sfx.setSettingsString(sfx_data$) THEN RETURN FALSE
RETURN sfx.SaveWave(filename$)
ENDFUNCTION
--- End code ---

hardyx:
I suffered this error and I thought that is for the hidden functions, but now I agree: is for the integer (%) functions. This not occurs in previous versions.

http://www.glbasic.com/forum/index.php?topic=7529.0

MrTAToad:
Thats odd - it's not something I get either in V10 or the V11 beta

Navigation

[0] Message Index

Go to full version