Example #1
0
        private string ReplaceUnknownArgument(Match myMatch)
        {
            string result = myMatch.Value;

            if (ReportCell.IsVariable(result))
            {
                return(result);
            }

            if (argumentcount != 0)
            {
                this.myValues.Append(",");
            }
            this.myValues.Append(result);
            return((argumentcount++).ToString());
        }
Example #2
0
        private string ReplaceUnknownArgument(Match myMatch)
        {
            string result = myMatch.Value.Trim('{', '}');

            if (ReportCell.IsVariable(result))
            {
                return(myMatch.Value);
            }

            ArgumentGroup Arguments = this.Group.ParentReport.Argument;

            if (Arguments.IsContainsKey(result))
            {
                string Value = Arguments[result];
                if (Value != "{" && Value != "}")
                {
                    return(Value);
                }
            }

            this.myValues.Append(",");
            this.myValues.Append(result);
            return("{" + (argumentcount++).ToString() + "}");
        }