Exemplo n.º 1
0
            public Field(string Name, Type type)
            {
                this.Name = Name;

                if (type == typeof(Boolean))
                {
                    this.valueType = tkValueType.vtBoolean;
                }
                else if (type == typeof(Decimal) || type == typeof(Double) || type == typeof(Int16) || type == typeof(Int32) || type == typeof(Int64) || type == typeof(Single) || type == typeof(UInt16) || type == typeof(UInt32) || type == typeof(UInt64))
                {
                    this.valueType = tkValueType.vtDouble;
                }
                else if (type == typeof(String) || type == typeof(Char))
                {
                    this.valueType = tkValueType.vtString;
                }
                else
                {
                    this.valueType = tkValueType.vtObject;
                }
            }
Exemplo n.º 2
0
 /// <summary>
 /// Tests the validity of expression and determines its return type.
 /// </summary>
 /// <param name="Expression">The expression to test.</param>
 /// <param name="ReturnType">An output value with the return type, either double, string or boolean.</param>
 /// <param name="ErrorString">An output string with the description of error.</param>
 /// <returns>True if the expression is valid and false otherwise.</returns>
 /// \new48 Added in version 4.8
 public bool TestExpression(string Expression, tkValueType ReturnType, ref string ErrorString)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public ExpressionValue(ref string floatingFormat)
 {
     dbl = 0.0;
     bln = false;
     type = tkValueType.vtDouble;
     _floatingFormat = floatingFormat;
 }