L
LitterTiger
Unregistered / Unconfirmed
GUEST, unregistred user!
如果一个unit uses的两个unit有同名的变量,
该变量名默认是引用后uses的那个unit的变量,
那么怎么引用另外的那个变量呢?
help:
If two units declare a variable, constant, type, procedure, or function with the
same name, the compiler uses the one from the unit listed last in the uses
clause. (To access the identifier from the other unit, you would have to add
a qualifier: UnitName.Identifier.)
但是我实验时,报错!
还有,是不是只能在.dpr中用uses .. in..,在unit中不能用 uses .. in ..的格式。我的验证是这样的。
该变量名默认是引用后uses的那个unit的变量,
那么怎么引用另外的那个变量呢?
help:
If two units declare a variable, constant, type, procedure, or function with the
same name, the compiler uses the one from the unit listed last in the uses
clause. (To access the identifier from the other unit, you would have to add
a qualifier: UnitName.Identifier.)
但是我实验时,报错!
还有,是不是只能在.dpr中用uses .. in..,在unit中不能用 uses .. in ..的格式。我的验证是这样的。