Syntax: @isvalidgroup(str)
str: string
Return: integer
Check for whether a string represents a valid specification for creating an EViews group or auto-series. Returns a “1” if the expression is valid, and a “0” if it is not.
Examples
If your workfile contains the series X, Y and Z:
scalar a = @isvalidgroup("x y z")
will set A equal to 1,
scalar b = @isvalidgroup("log(x)")
will set B equal to 1, and
scalar e = @isvalidgroup("log(xy)")
will set E equal to 0 since XY is not a valid series in the workfile.
In contrast to the result in E,
scalar f = @isvalidgroup("log(x*y)")
is valid, since “LOG(X*Y)” is a valid series expression.
Cross-references