Functions in InfoPath 2007 - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Functions in InfoPath 2007 Functions in InfoPath 2007 Last post 05-10-2010 03:41 AM by alexia_net. 8 replies. Page 1 of 1 (9 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 05-10-2010 12:45 AM alexia_net Joined on 03-29-2010 Posts 119 Functions in InfoPath 2007 Reply Contact Hi. Is it possible for the forms to use common functions or I have to write them every time for each form? Thank you! 05-10-2010 01:15 AM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact To what kind of functions are you referring? Can you describe an example? Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software 05-10-2010 01:28 AM In reply to alexia_net Joined on 03-29-2010 Posts 119 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact Hi. For example. int i=0;Increment_i(ref i); increment_i(ref int tmp_i){i++;}Must i write the function increment_i for each form? Thank you. 05-10-2010 01:37 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact you can write a class and add these functions to that class, and later on use that class in all the forms and refer to your functions. NOTE: you will have to include that class in all the forms Qazi AnisTechnical ArchitectBitwise Inc 05-10-2010 02:39 AM In reply to alexia_net Joined on 03-29-2010 Posts 119 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact Hi. Thank you. That would be helpfull. How do I create/add the class in InfoPath? 05-10-2010 02:50 AM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact The same way you would in any other Visual Studio project. Just add it to your main code file, or create a separate code file and add it there. Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software 05-10-2010 02:58 AM In reply to alexia_net Joined on 03-29-2010 Posts 119 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact Thats the thing. I do not see any option Add or Create class. 05-10-2010 03:21 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact in the project explorer -> right click the project and click add class Qazi AnisTechnical ArchitectBitwise Inc 05-10-2010 03:41 AM In reply to alexia_net Joined on 03-29-2010 Posts 119 Re: Functions in InfoPath 2007 Mark as Not AnswerMark as Answer... Reply Contact Thank you! Page 1 of 1 (9 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hi. Is it possible for the forms to use common functions or I have to write them every time for each form? Thank you!
To what kind of functions are you referring? Can you describe an example?
Hi. For example.
int i=0;
Increment_i(ref i);
increment_i(ref int tmp_i)
{
i++;
}
Must i write the function increment_i for each form? Thank you.
you can write a class and add these functions to that class, and later on use that class in all the forms and refer to your functions.
NOTE: you will have to include that class in all the forms
Hi. Thank you. That would be helpfull. How do I create/add the class in InfoPath?
The same way you would in any other Visual Studio project. Just add it to your main code file, or create a separate code file and add it there.
Thats the thing. I do not see any option Add or Create class.
in the project explorer -> right click the project and click add class
Thank you!