The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Call a function in the same .c file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

winflowers

USA
34 Posts

Posted - 09/18/2007 :  10:20:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7.5 SR6
Operating System: XP

The function name is stored in a string variable. How can I call this function in the same .c folder.

It seems that FindFunction can find and run a function in a different .c file. But I think probably there is a simpler way to do so.

void aaa()
{
...
}

void bbb()
{
...
string strFunc="aaa";
//I would like to run aaa() here
...
}

Mike Buess

USA
3037 Posts

Posted - 09/18/2007 :  1:11:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry, you still need to use FindFunction even if the function is in the same file. But you can use __FILE__ in place of the current file path\name.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/18/2007 1:11:58 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000