DELPHI数据转换Int64 to String
LPHI数据转换Int64 to String
编程实现
var
ss,ss1:string;
ss2:int64;
tmp:string;
begin
ss:='AB10000000001';
tmp:=copy(ss,2,11);
ss2:=tmp+1; //如何转换使ss2:=10000000002
ss1:=ss2; //结果 ss1:='AB10000000002'
showmessage(ss1);
end;
[错误] Unit1.pas(118): Incompatible types: 'Int64' and 'String'
[错误] Unit1.pas(118): Incompatible types: 'String' and 'Int64'
[致命错误] ZCUSERS.dpr(5): Could not compile used unit 'Unit1.pas'
LPHI数据转换Int64 to String
编程实现
var
ss,ss1:string;
ss2:int64;
tmp:string;
begin
ss:='AB10000000001';
tmp:=copy(ss,2,11);
ss2:=strtoint(tmp)+1; //如何转换使ss2:=10000000002
ss1:='AB'+inttostr(ss2); //结果 ss1:='AB10000000002'
showmessage(ss1);
end;
'10000000001' is not a valid integer value
var
ss,ss1:string;
begin
ss:='AB10000000001';
ss1 := ss;
ss1[Length(ss1)] := Char(Ord(ss1[Length(ss1)])+1);
showmessage(ss1);
相关问答:
procedure RunFunction;
type
TFunc = function(A: Integer): Integer;stdcall; //这里根据DLL里面函数的声明修改
var
......
昨晚在Delphi数据库查询中遇到了一个疑惑。代码如下:
procedure TFormSearchAchievement.ComboBoxXYChange(Sender: TObject);
var
XY : string;
begin
XY := comboboxxy.Items[comboboxx ......
请问Delphi有树形控件吗?
怎样使用?
Ttreeview
treeview.items.addchild(nil(上级节点),'案发时发'(text));
raize 控件包里面有,csdn有下载的
查帮助TTreeView和TNode两个类
TTreeView ......
一般都是怎么接活的?
收入怎么样
sohu?soho?
sohu 可能是small office house unit
小办公室,把家变成单位。
去威客网啊,很多个呢,还有外包的网站
学习学习。
现在Delphi做东西不行了,处于淘汰状 ......
delphi 2007 + access 2007 +odbc +TADODataset,TADOConnection,TADOCommand
//删除数据
procedure TCDSSelectTools.DeleteMachine(byMachineID: string);
tmpCmd := TADOCommand.Create(ni ......