Icon Text Property

property Text: String


Use the Text property to assign the value of the parameter to a string without changing the DataType property. Unlike the AsString property, which sets the value to a string and changes the DataType property, setting the Text property converts the string to the current data type of the parameter, and sets the value accordingly. Thus, use the AsString property to treat the parameter as representing the value of a string field. Use the Text property instead when assigning a value that is in string form, when making no assumptions about the data type. For example, the Text property is useful for assigning user data that was input using an edit control.