Forum Discussion
YMinaev
14 years agoStaff
Hi Chris,
Actually, when you have two accessible identifiers with the same name in the same unit (in your example, 'AlterOrder' declared via USEUNIT and 'AlterOrder' declared as a function), any 'AlterOrder' function call should fail due to identifier conflicts if you don't use its full name. This behavior is correct. As for why such calls succeed in some of your projects, I cannot say anything for sure without having an example demonstrating both a failing and a succeeding case.
Do you use VBScript in all cases? I'm asking because it is case-insensitive. If you use JScript (case-sensitive), there shouldn't be conflicts since 'AlterOrder' and 'alterOrder' are different identifiers in this case.
Actually, when you have two accessible identifiers with the same name in the same unit (in your example, 'AlterOrder' declared via USEUNIT and 'AlterOrder' declared as a function), any 'AlterOrder' function call should fail due to identifier conflicts if you don't use its full name. This behavior is correct. As for why such calls succeed in some of your projects, I cannot say anything for sure without having an example demonstrating both a failing and a succeeding case.
Do you use VBScript in all cases? I'm asking because it is case-insensitive. If you use JScript (case-sensitive), there shouldn't be conflicts since 'AlterOrder' and 'alterOrder' are different identifiers in this case.
Related Content
- 7 years ago
- 2 years ago
- 7 years ago
Recent Discussions
- 3 days ago
- 9 days ago
- 12 days ago