(1)和(2)我觉得都用copy等字符串函数来处理比较简单
(3)要用个API(听人说过,具体哪个我也不知道)。
其实灵活使用FormatDateTime函数就可以把所有的日期格式等问题搞定。
(4)<5开发指南>上说了,string不可以用[0]来取长度,只能用length。(6)用Query1.Fields[0].AsInteger来读我就会这几个。
(3)要用个API(听人说过,具体哪个我也不知道)。
其实灵活使用FormatDateTime函数就可以把所有的日期格式等问题搞定。
(4)<5开发指南>上说了,string不可以用[0]来取长度,只能用length。(6)用Query1.Fields[0].AsInteger来读我就会这几个。
解决方案 »
- 如何取得Recordset的KeyField字段
- 用ado和bde连接远程oracle数据库,如何判断是否连接成功
- 如何调用该存储过程?
- Messagedlg和StringGrid的问题
- 大家近来帮忙!100分不够可以再加。
- 笨死了,我从CD上安装Delphi 6.0 怎么找不到序列号?还有怎样对系统进行配置,才能使用阿?英文看不懂,请教大哥们了!!!
- 在DELPHI里查看变量的引用出去,为什么有时候行,有时候不行
- 报表不能连续打印问题
- 当放了一个groupbox与一个image控件后.有没办法让image控件遮住groupbox的一部份?
- 请问Delphi在上海能混得开吗?
- 关于SQL语句处理含引号的问题:怎样在代码中保证用户输入的信息中含有引号,SQL语句也能够处理而不会被影响后出错?
- Delphi中打印问题:如果一个字段中的记录太长,可否实现自动换行?
case integer of
0:(eax:dword);
1:(ax:word;axlo:word);
2:(ah:byte;al:byte;);
end;select value=count(fiedname) from table1; fieldbyname('value')=the count不一定我也忘了
treg=packed record
case integer of
0:(eax:dword);
1:(ax:word;axlo:word);
2:(ah:byte;al:byte;);
end;
变体定义我知道,在程序中怎么使用呢?
treg=packed record
case integer of
0:(eax:dword);
1:(ax:word;axlo:word);
2:(ah:byte;al:byte;);
end;
变体定义我知道,在程序中怎么使用呢?
引用上述记录,完成以下工作:首先让eax=0xffffffff,然后将高16位=0
你可以:
reg:treg;
reg.eax:=0xffffffff;
reg.eax:=reg.eax & 0x0000ffff;
你也可以:
reg.eax:=0xffffffff;
reg.ax:=0;
明白了吗?ax=eax的高16位
type
treg=packed record
case integer of
0:(eax:dword);
1:(ax:word;eaxhi:word);
2:(ah:byte;al:byte;);
end;
var
reg:treg;
begin
reg.eax :=$1111ffff;
showmessage(format('%08x',[reg.eax]));
reg.eax :=reg.eax and $0000ffff;
showmessage(format('%08x',[reg.eax]));
reg.ax :=$ffff;reg.eaxhi :=$1111;
showmessage(format('%08x',[reg.eax]));
reg.eaxhi :=0;
showmessage(format('%08x',[reg.eax]));
reg.eax :=$11110000;
reg.ah :=$ff;reg.al :=$ff;
showmessage(format('%08x',[reg.eax]));
reg.eaxhi :=0;
showmessage(format('%08x',[reg.eax]));
end;