MEMVAR variable naming
Posted: Wed Jul 20, 2022 11:19 pm
I just ran into something interesting about MEMVAR variable naming. You cannot have underscore as part of the variable name. Here is my sample console program:
Here is the result:
Code: Select all
USING System
USING System.Collections.Generic
USING System.Linq
USING System.Text
FUNCTION Start() AS VOID STRICT
local cFilter, cFilter2 as string
local cPolicy as string
memvar cOpt_Filter_Var
memvar cOptFilterVar
cPolicy := "100L"
cOpt_Filter_Var := cPolicy
cOptFilterVar := cPolicy
cFilter := StrEvaluate('mpolicy == "&cOpt_Filter_Var"')
cFilter2 := StrEvaluate('mpolicy == "&cOptFilterVar"')
console.WriteLine("cFilter: " + cFilter)
console.WriteLine("cFilter2: " + cFilter2)
console.ReadKey()
Code: Select all
cFilter: mpolicy == "cOpt_Filter_Var"
cFilter2: mpolicy =="100L"