Forum Discussion

3 Replies

  • manju nath's avatar
    manju nath
    Copper Contributor
    Functions 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); }
    • JKPieterse's avatar
      JKPieterse
      Silver Contributor
      This 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.

Resources