Search the web
Sign In
New User? Sign Up
VisualBasic_Official · Visual Basic . VB.net . VBS . ASP.net
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
VB6 changing upper case variables to lower case   Message List  
Reply | Forward Message #9321 of 9530 |
Re: [Visual Basic] VB6 changing upper case variables to lower case

might be a restricted name. add something else to the variable name, like
another letter or a number


> I can save an integer variable as upper case, but when I pull up the
> project at a later time, this same variable has been changed to lower
> case. For example "Dim NS as integer" appears at the start of the main
> program, everything compiles and links and runs okay. No error
> messages, and the program does what I expect it to do. Then I save the
> project and exit the development system.
>
> Next time I enter the development system, my code shows a lower
> case "ns" throughout. NS is only declared in one place, but is used in
> various subroutines that are part of the overall project. It did not
> help to activate a debug flag to show where NS was changed during
> program execution.
>
> How can I check the library code to see if NS is defined elsewhere?





Mon Dec 22, 2008 6:09 pm

mattsoftnet
Offline Offline
Send Email Send Email

Forward
Message #9321 of 9530 |
Expand Messages Author Sort by Date

I can save an integer variable as upper case, but when I pull up the project at a later time, this same variable has been changed to lower case. For example...
grantbingeman
Offline Send Email
Dec 22, 2008
5:54 pm

might be a restricted name. add something else to the variable name, like another letter or a number...
Matthew Kemmerer
mattsoftnet
Offline Send Email
Dec 24, 2008
12:51 am

Since VB is not case sensitive, I suspect that somewhere in your code you are using the lower case ns. Why it is changing the definition, I can not answer...
Jeff Steinkamp
n7yg
Online Now Send Email
Dec 24, 2008
12:51 am

ryt click the variable name and choose definition.. i suspect that you defined the variable twice on different aspects AgEnT^^^OrAnGe My Greatest Fear is to...
Agent Orange
evil_agentor...
Online Now Send Email
Dec 24, 2008
5:32 pm

Yes, I did find that VB6 sometimes gets confused, since it cannot distinquish between upper and lower case variables; in my case there was an "ns" defined in...
Grant Bingeman
grantbingeman
Offline Send Email
Dec 29, 2008
10:14 pm

Is it possible that there is some global variable already defined w/ the same name, but in lower case that is in scope at the point at which you are setting...
Paul Engel
pengel200
Offline Send Email
Dec 24, 2008
12:51 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help