张
张剑波
Unregistered / Unconfirmed
GUEST, unregistred user!
delphi5+ado+access2000的几个问题,急切,300分
1.在mainform create中已做:
dateseparator:='-';
shortdateformat:='yyyy-mm-dd';
adocommand1.Parameters.ParamByName('delerq').value:=
strtodate(formatdatetime('yyyy-mm-dd',datetimepicker1.Date));这句管用.
adocommand1.Parameters.ParamByName('delerq').value:=datetimepicker1.Date;
这句编译通过,运行不出错,但无效.
2.定义一个类:
type
tytccb=class(tobject)
public
unitname: array of array of string;
function deletablefor(astring):boolean;
" unitname" 不能在"function deletablefor(astring):boolean;"中引用.
在mainform create中已做:ytccb:=tytccb.Create
单元引用也做了.
3.二个结构相同的表:table1 table2
insert into table1 select * from table2
若有主键(是自动编号的无实际意义的字段),则error
若无主键则成功.
4.format('%-20.20s %-20.20s',[stirng1,string2])
大概是自动对齐,协力20.20是什么意思?
1.在mainform create中已做:
dateseparator:='-';
shortdateformat:='yyyy-mm-dd';
adocommand1.Parameters.ParamByName('delerq').value:=
strtodate(formatdatetime('yyyy-mm-dd',datetimepicker1.Date));这句管用.
adocommand1.Parameters.ParamByName('delerq').value:=datetimepicker1.Date;
这句编译通过,运行不出错,但无效.
2.定义一个类:
type
tytccb=class(tobject)
public
unitname: array of array of string;
function deletablefor(astring):boolean;
" unitname" 不能在"function deletablefor(astring):boolean;"中引用.
在mainform create中已做:ytccb:=tytccb.Create
单元引用也做了.
3.二个结构相同的表:table1 table2
insert into table1 select * from table2
若有主键(是自动编号的无实际意义的字段),则error
若无主键则成功.
4.format('%-20.20s %-20.20s',[stirng1,string2])
大概是自动对齐,协力20.20是什么意思?