[Gambas-user] Silly question: How to call a modules method by name?

Christof Thalhofer chrisml at deganius.de
Sun Feb 23 11:23:22 CET 2020


Hello,

I want to call an expression like:
$sModulename & "." & sMethodname & "()"

This is possible by:
Eval($sModulename & "." & sMethodname & "()")

But then it has to return a Value and won't stop at breakpoints.

A class can be called with
Object.Call(ClassObject, sMethodname)

Is there something similar for a module? Thanks!

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200223/ea352449/attachment.sig>


More information about the User mailing list