Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
WinCalcManager use a form-level variable
posted

Hi

What I'm trying to do is try to calculate the age of each person in a grid based on a date that's being stored in a form level variable. So

Dim DateToCalculate As Date

But I can't find a good way to use the value of this variable in the WinCalcManager. I can stuff the value of this variable in an unbound column, in each row, but that just seems dirty.

Any help would be appreciated.

Thanks

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    This is what the NamedReferences collection on the UltraCalcManager is designed for.

    Just add a NamedReference and give it a name, like "DateToCalculate". Then you can use "[DateToCalculate]" in any Formulas in your application. The formula for the DateToCalculate NamedReferece would probably use the Date function with a string so it returns the appropriate date.

Reply Children