Skip to main content
venkatrea696188
March 13, 2023
Question

Max Number of Local Variables

  • March 13, 2023
  • 3 replies
  • 0 views

What is max count of local variables can we use inside a interface  or inside an expression a!localvariables()?

    3 replies

    mikes0011
    Brainy
    March 13, 2023

    I'm unaware of any actual finite cap - however, usability will be a different story - in real-world scenarios, complexity and usability will go off the rails pretty quickly with any more than maybe a few dozen at the most.  What's your use case exactly?

    The Expression Guru
    venkatrea696188
    March 13, 2023

    Just trying to build a holiday calendar interface( kind of Feed view), Well I defined total of 14 local variables (Month wise one), Just thinking of decreasing the number if possible. If 14's a no problem then I'm gonna continue with that.

    mikes0011
    Brainy
    March 13, 2023

    I have some forms with perhaps dozens - with any number in that ballpark or less, the only real issue would be if many of them are doing lots of work (data-intensive queries, etc), which would affect your load times and potentially memory consumption.  But if they're mostly lightweight / reference pointers / etc, then it should be just fine.

    The Expression Guru