it's is small function for that :
function killkoma(const str: string): string; const InvalidChars : set of char = [',','.']; var i, Count: Integer; begin SetLength(Result, Length(str)); Count := 0; for i := 1 to Length(str) do if not (str[i] in InvalidChars) then begin inc(Count); Result[Count] := str[i]; end; SetLength(Result, Count); end;
and you can call like this
.. var a:string; Begin a:= killkoma(cxCurrencyEdit1.Text); ShowMessage(a);
0 Response to "How to get text value from cxCurrencyEdit without comma"
Post a Comment