GLBasic forum

Main forum => Bug Reports => Topic started by: Hemlos on 2012-Jun-20

Title: ide function list
Post by: Hemlos on 2012-Jun-20
if you declare a function with %, it adds an empty function to the list on the jumps page.

ie

function helloworld%:
endfunction
Title: Re: ide function list
Post by: Kitty Hello on 2012-Jun-20
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).
Title: Re: ide function list
Post by: Hemlos on 2012-Jun-20
i did not know that about helloworld fn.

it was just an example..

here is what else does it:


Code (glbasic) Select

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
Title: Re: ide function list
Post by: hardyx on 2012-Jun-21
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
Title: Re: ide function list
Post by: MrTAToad on 2012-Jun-22
Thats odd - it's not something I get either in V10 or the V11 beta