GetControlValue 为函数
public static string ReplaceControlName(AsapExlib.Base.BaseForm bf,string Txt)
{
foreach (Match m in Regex.Matches(Txt, @"/{(.+?)/}"))
{
Txt = Txt.Replace(m.Groups[0].Value, GetControlValue(bf, m.Value));
}
return Txt;
//System.Text.RegularExpressions.Regex.Replace(Txt, @"/{(.+?)/}", GetControlValue(bf,"$1"), System.Text.RegularExpressions.RegexOptions.IgnoreCase);
}