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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 #9322 of 9531 |
Re: [Visual Basic] VB6 changing upper case variables to lower case

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 other than it sees that you have it as a lower case NS somewhere in
the code.

What you might try to do is do a search and replace on ns as a whole word
and replace it with something like N1S and see what happens.


Jeff K. Steinkamp N7YG
Tucson, AZ
SCUD Missile Coordinates:
N032-13-55.02 W110-55-52.79
Registered Linux User: 420428
------------------------------------------------------

HEADLINE: U'S FOOD SERVICE FEEDS THOUSANDS, GROSSES MILLIONS

----- Original Message -----
From: "grantbingeman" <grantbingeman@...>
To: <VisualBasic_Official@yahoogroups.com>
Sent: Sunday, December 21, 2008 16:24
Subject: [Visual Basic] VB6 changing upper case variables to lower case


>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?
>
>
> ------------------------------------
>
> Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
>
>
>
>


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.0/1861 - Release Date: 12/22/2008
11:23 AM




Tue Dec 23, 2008 12:32 am

n7yg
Offline Offline
Send Email Send Email

Forward
Message #9322 of 9531 |
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
Online Now 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
Offline 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