RSS
热门关键字:  数据挖掘  数据仓库  商业智能  人工智能  搜索引擎

将指定字符串后面的0字符截去[原创]

来源: 作者:unkonwn 时间:2004-12-29 点击:

{-------------------------------------------------------------------------------
  过程名:    TForm1.RTrimZero
  作者:      王洪生(Kevin)
  日期:      2004.12.22
  参数:      const AValue: string
  返回值:    string
  功能:      将指定字符串后面的0字符截去
-------------------------------------------------------------------------------}
function TForm1.RTrimZero(const AValue: string): string;
var
  nLen : Integer;
  i    : Integer;
  strTemp: string;
begin
  if (AValue = "") then Result := "";
  nLen := Length(AValue);

数据挖掘研究院


  strTemp := AValue;
  for i:= nLen downto 1 do
  begin
    if (AValue[i] = "0") then
      strTemp[i] := " "
    else
      Break;
  end;
  Result := strTemp;
end;


数据挖掘研究院

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
匿名?