Forum Discussion
manju nath
Jan 31, 2018Copper Contributor
Inline Functions vba
How to Manage inline functions
3 Replies
- manju nathCopper ContributorFunctions can be instructed to compiler to make them inline so that compiler can replace those function definition wherever those are being called. Compiler replaces the definition of inline functions at compile time instead of referring function definition at runtime. like c++ , can possible do in vba like example like below Class A { Public: inline int add(int a, int b) { return (a + b); }; } Class A { Public: int add(int a, int b); }; inline int A::add(int a, int b) { return (a + b); }
- JKPieterseSilver ContributorThis is a bit greek to me, but if you are referring to the in-line functions (where function A is so to speak wrapped inside function B) like JavaScript enables you to do then the answer is : No, VBA does not have that capability.
- JKPieterseSilver ContributorI am not sure what you mean precisely?