SRL Archive - Suggestions

CallProc


Sex

2010-07-31 08:20:21

Get a procedure like CallProc?
function CallProc(ProcName: string; var V: TVariantArray): Variant;
Works like ThreadSafeCall but it isn't thread-safe. Do not use this for form interaction.

Wizzup?

2010-07-31 08:45:44

What would you use this for?

Sex

2010-07-31 08:49:00

Well I was making some RC routines and it'd be neat to have the master PM the bot and say "call foo(bar)" or something like that.

EvilChicken!

2010-07-31 13:23:05

From: Sex
Well I was making some RC routines and it'd be neat to have the master PM the bot and say "call foo(bar)" or something like that.


Hm, I think I can see the usefulness of that.
Or would his suggestion be a terrible way of doing it? I suppose one could also use pointers, no?

Wizzup?

2010-07-31 13:32:13

No, it seems like an okay way of doing it.

Sex

2010-07-31 21:31:51

I've used pointers but I don't think as much as you can't have variable names of procedures and you can't use different parameters as you can with this. I just think this function would be pretty useful in Simba :).

Awkwardsaw

2010-07-31 22:00:05

or i supose you can use a case :p

Wizzup?

2010-08-27 15:46:57

Can you file a bug report?