[Gambas-user] Finding all function calls in IDE

Fabien Bodard gambas.fr at ...626...
Fri Dec 11 09:31:53 CET 2015


You can use the profiler,that will give you a list of the call

then you can do that by hand.

make a collection with the name of the arguments:

Private hCol as Collection = ["ARG1":0, "ARG2":0,...]



MyFunction(arg1, arg2,arg3...

if arg1 then Inc hCol["ARG1"]
if arg2 then Inc hCol["ARG1"]

end


Public sub MyForm_Close()

for each i in hCol

if i = 0 then print hCol.key & " is not used anymore"

next

end




2015-12-11 9:01 GMT+01:00 Rolf-Werner Eilert <eilert-sprachen at ...221...>:
> Hi folks,
>
> There are some functions in a program which have too many arguments
> (arguments which aren't used in the function). I know that these
> functions are called from a number of places in the program.
>
> So if I want to get rid of these superfluous arguments, I would like to
> find all calls to this function. Is there a way in the IDE to get a list
> of the calls? Or do I have to do it with trial and error, killing the
> arguments, starting the program and wait for error messages?
>
> Regards
> Rolf
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list