StrToCurr functionConverts a string to a Currency value. UnitSysutilsCategoryfloating point conversion routinesfunction StrToCurr(const S: string): Currency;DescriptionCall StrToCurr to convert a string that represents a floating-point value to the corresponding Currency value. The source string, S, must consist of an optional sign (+ or -), a string of digits with an optional decimal point, and an optional 'E' or 'e' followed by a signed integer. Leading and trailing blanks are ignored. The DecimalSeparator global variable defines the character that is used as a decimal point. Thousand separators and currency symbols are not allowed in the string. If the string doesn't contain a valid value, StrToCurr raises an EConvertError exception.Delphi的帮助里就有,自己看看吧!飞杨兄。
FieldByName('Price').AsCurrency:=StrToCurr(edtPrice.Text);post就可以了
CurrToStr
在Delphi里常用啊,呵呵