最简单的代码,为什么2000正确,98就执行就不正确???送上我所有的分(88分)

  • 主题发起人 heipi2002
  • 开始时间
H

heipi2002

Unregistered / Unconfirmed
GUEST, unregistred user!
NodeX:=node;
level:=node.Level ;
for i:= 0 to level do
begin
strTemp:=nodex.Text+'/'+strTemp;
nodex:=nodex.Parent ;
end;
2000 下运行后strTemp='/1/2/3/4/5'
98下运行无论到哪一级,显示都是'/1/2'
这是为什么呢?D6,补丁已经打全了:(5555555
因为控件比较多,磁盘全部是NTFS,没有在98下编译
但98下跟踪strTemp
分别能取nodex.text,而且都不错(分别能取1,2,3,4,5,
我怀疑是最后部分有$0等符号
用trim(strTemp)也无效,我该怎么办呀?
 
什么意思呀,是回答吗?大侠救命阿~~白忙了一个晚上
 
用copy()把前面的变量取出后再连,石石
 
不会吧,我也写了同样的代码也没在98下测试!!!
 
98下取出被#0截断,不知道给谁分才好
 
strTemp初始化了吗?
 
多人接受答案了。
 
顶部