This topic is now archived and is closed to further replies.

Strings to Function Calls

This topic is 6084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Basically I have a string, lets say "DoFunction". How do I take that string and then tell the program to execute the function with that same name? I don''t want to use a look-up table or a bunch of if statements or anything else right now, I just want to see how to do it, if it''s even possible. I''m writing my own scripting engine and I want it to be as flexible as possible, meaning hard-coing as little as possible. I don''t know if it can be done since I''ve never tried before.

Share this post

Link to post
Share on other sites