10-31-2013 10:27 AM
I am sure this is something I am doing incorrectly, but when I copy and paste the following from the function reference into my action I am getting the following errors:
Do I need an extra include statment or something?
Solved! Go to Solution.
10-31-2013 03:24 PM - edited 10-31-2013 03:27 PM
I do not have Vugen 11.52, but when I ran the same code from Vugen 11 Patch 4 it worked fine.
May be you have to delete the blank lines which are present in your code.
Make sure you copy the code in the Action section.
11-01-2013 06:52 AM
Thanks so much for your reply. I took a better screenshot. I cant figure out what is wrong. It makes no sense to me. Does anyone know why this isnt working? Is it a bug?
The red box has errors, the green box is my modified(bad practice) code that works.
11-02-2013 09:30 AM
>Does anyone know why this isn't working?
If this is C89, you can't have declarations in the middle of a block. You need C++ or C99 to do that.
(That's why it worked for Srihari_Amgen.)
So move that "char *ip;" up.
Note: If not modifying "ip", you should declare it "const char*".