Does the VB6 IDE highlight the wrong text when certain errors occur?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm pretty sure this is a bug in the VB6 IDE but I haven't found any definitive reference to it before...



Sometimes when I've loaded a project which has some dependency issue (missing reference, etc.) the IDE will show an error like this:



h



("Compile error: Can't find project or library")



Note the text which it highlighted is a call to the UCase$ function which is essentially built into the language. There's no way its library is actually missing.



Is this a known bug? Is there any rhyme or reason to the text which is selected when this happens?





Update: The standard libraries which include things like UCase() are included so that is not the actual problem. The highlight really seems to be nonsensical.










share|improve this question

























  • It probably doesn't help that you have demanded of the compiler "Evaluate this!" by use of redundant parentheses. But most likely the error comes from overloading the definition of UCase somewhere, screwing up the symbol table.

    – Bob77
    Jan 3 at 23:03











  • @bob77 not code I wrote myself :) ... Good thought on the symbol table I'll look into that. Thanks

    – DaveInCaz
    Jan 3 at 23:11











  • Do a search on the entire Project for "UCase" and you may find that it got defined as something else somewhere.

    – Bob77
    Jan 3 at 23:30











  • How is sProjectName defined?

    – Brogan
    Jan 4 at 21:46











  • @Brogan it is just Dim sProjectName As String in the same procedure.

    – DaveInCaz
    Jan 7 at 19:30


















0















I'm pretty sure this is a bug in the VB6 IDE but I haven't found any definitive reference to it before...



Sometimes when I've loaded a project which has some dependency issue (missing reference, etc.) the IDE will show an error like this:



h



("Compile error: Can't find project or library")



Note the text which it highlighted is a call to the UCase$ function which is essentially built into the language. There's no way its library is actually missing.



Is this a known bug? Is there any rhyme or reason to the text which is selected when this happens?





Update: The standard libraries which include things like UCase() are included so that is not the actual problem. The highlight really seems to be nonsensical.










share|improve this question

























  • It probably doesn't help that you have demanded of the compiler "Evaluate this!" by use of redundant parentheses. But most likely the error comes from overloading the definition of UCase somewhere, screwing up the symbol table.

    – Bob77
    Jan 3 at 23:03











  • @bob77 not code I wrote myself :) ... Good thought on the symbol table I'll look into that. Thanks

    – DaveInCaz
    Jan 3 at 23:11











  • Do a search on the entire Project for "UCase" and you may find that it got defined as something else somewhere.

    – Bob77
    Jan 3 at 23:30











  • How is sProjectName defined?

    – Brogan
    Jan 4 at 21:46











  • @Brogan it is just Dim sProjectName As String in the same procedure.

    – DaveInCaz
    Jan 7 at 19:30














0












0








0








I'm pretty sure this is a bug in the VB6 IDE but I haven't found any definitive reference to it before...



Sometimes when I've loaded a project which has some dependency issue (missing reference, etc.) the IDE will show an error like this:



h



("Compile error: Can't find project or library")



Note the text which it highlighted is a call to the UCase$ function which is essentially built into the language. There's no way its library is actually missing.



Is this a known bug? Is there any rhyme or reason to the text which is selected when this happens?





Update: The standard libraries which include things like UCase() are included so that is not the actual problem. The highlight really seems to be nonsensical.










share|improve this question
















I'm pretty sure this is a bug in the VB6 IDE but I haven't found any definitive reference to it before...



Sometimes when I've loaded a project which has some dependency issue (missing reference, etc.) the IDE will show an error like this:



h



("Compile error: Can't find project or library")



Note the text which it highlighted is a call to the UCase$ function which is essentially built into the language. There's no way its library is actually missing.



Is this a known bug? Is there any rhyme or reason to the text which is selected when this happens?





Update: The standard libraries which include things like UCase() are included so that is not the actual problem. The highlight really seems to be nonsensical.







vb6 ide






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 17:05







DaveInCaz

















asked Jan 3 at 15:46









DaveInCazDaveInCaz

3,46232142




3,46232142













  • It probably doesn't help that you have demanded of the compiler "Evaluate this!" by use of redundant parentheses. But most likely the error comes from overloading the definition of UCase somewhere, screwing up the symbol table.

    – Bob77
    Jan 3 at 23:03











  • @bob77 not code I wrote myself :) ... Good thought on the symbol table I'll look into that. Thanks

    – DaveInCaz
    Jan 3 at 23:11











  • Do a search on the entire Project for "UCase" and you may find that it got defined as something else somewhere.

    – Bob77
    Jan 3 at 23:30











  • How is sProjectName defined?

    – Brogan
    Jan 4 at 21:46











  • @Brogan it is just Dim sProjectName As String in the same procedure.

    – DaveInCaz
    Jan 7 at 19:30



















  • It probably doesn't help that you have demanded of the compiler "Evaluate this!" by use of redundant parentheses. But most likely the error comes from overloading the definition of UCase somewhere, screwing up the symbol table.

    – Bob77
    Jan 3 at 23:03











  • @bob77 not code I wrote myself :) ... Good thought on the symbol table I'll look into that. Thanks

    – DaveInCaz
    Jan 3 at 23:11











  • Do a search on the entire Project for "UCase" and you may find that it got defined as something else somewhere.

    – Bob77
    Jan 3 at 23:30











  • How is sProjectName defined?

    – Brogan
    Jan 4 at 21:46











  • @Brogan it is just Dim sProjectName As String in the same procedure.

    – DaveInCaz
    Jan 7 at 19:30

















It probably doesn't help that you have demanded of the compiler "Evaluate this!" by use of redundant parentheses. But most likely the error comes from overloading the definition of UCase somewhere, screwing up the symbol table.

– Bob77
Jan 3 at 23:03





It probably doesn't help that you have demanded of the compiler "Evaluate this!" by use of redundant parentheses. But most likely the error comes from overloading the definition of UCase somewhere, screwing up the symbol table.

– Bob77
Jan 3 at 23:03













@bob77 not code I wrote myself :) ... Good thought on the symbol table I'll look into that. Thanks

– DaveInCaz
Jan 3 at 23:11





@bob77 not code I wrote myself :) ... Good thought on the symbol table I'll look into that. Thanks

– DaveInCaz
Jan 3 at 23:11













Do a search on the entire Project for "UCase" and you may find that it got defined as something else somewhere.

– Bob77
Jan 3 at 23:30





Do a search on the entire Project for "UCase" and you may find that it got defined as something else somewhere.

– Bob77
Jan 3 at 23:30













How is sProjectName defined?

– Brogan
Jan 4 at 21:46





How is sProjectName defined?

– Brogan
Jan 4 at 21:46













@Brogan it is just Dim sProjectName As String in the same procedure.

– DaveInCaz
Jan 7 at 19:30





@Brogan it is just Dim sProjectName As String in the same procedure.

– DaveInCaz
Jan 7 at 19:30












1 Answer
1






active

oldest

votes


















0














VB can do some strange things, but... check both the content and order of your References. UCase$() isn't 'built into the language' in the way you might think -- it's not in the VB runtime, but in the VBA runtime, which must be included as a reference.






share|improve this answer
























  • Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

    – DaveInCaz
    Jan 3 at 17:04












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54025552%2fdoes-the-vb6-ide-highlight-the-wrong-text-when-certain-errors-occur%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














VB can do some strange things, but... check both the content and order of your References. UCase$() isn't 'built into the language' in the way you might think -- it's not in the VB runtime, but in the VBA runtime, which must be included as a reference.






share|improve this answer
























  • Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

    – DaveInCaz
    Jan 3 at 17:04
















0














VB can do some strange things, but... check both the content and order of your References. UCase$() isn't 'built into the language' in the way you might think -- it's not in the VB runtime, but in the VBA runtime, which must be included as a reference.






share|improve this answer
























  • Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

    – DaveInCaz
    Jan 3 at 17:04














0












0








0







VB can do some strange things, but... check both the content and order of your References. UCase$() isn't 'built into the language' in the way you might think -- it's not in the VB runtime, but in the VBA runtime, which must be included as a reference.






share|improve this answer













VB can do some strange things, but... check both the content and order of your References. UCase$() isn't 'built into the language' in the way you might think -- it's not in the VB runtime, but in the VBA runtime, which must be included as a reference.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 3 at 17:02









Jim MackJim Mack

6611413




6611413













  • Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

    – DaveInCaz
    Jan 3 at 17:04



















  • Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

    – DaveInCaz
    Jan 3 at 17:04

















Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

– DaveInCaz
Jan 3 at 17:04





Thanks, The VBA runtime is definitely OK so that's not the actual problem in this instance.

– DaveInCaz
Jan 3 at 17:04




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54025552%2fdoes-the-vb6-ide-highlight-the-wrong-text-when-certain-errors-occur%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith