-
I have a funny variable
In a module titled "Variables" I have declared a public variable TextAddr as a variant, on main form load I set this variable to 888 in other subs on the main form I use this variable and the value is there, later in my program I use a function located on a module titled "MotorControl" and in that function I also use my variable TextAddr, but at that time it's empty and I can not see why. If I move that entire funtion code to the main form then all is ok and the variable has the value but as soon as I move the code of the funtion off the main form the variable is empty.
-
I found my problem.
I guess I just needed some one to listen.
Thanks for being there.
-
Post what you did.
It may help someone else with a 'funny variable'.
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-
The root of my problem is that I agreed to make some changes to someone elses program and that someone else is a much higher level programer then I. He had a text box named TextAddr (that I was not aware of) and in his program and he was using a statement like "TextAddr = 123" in his program code, so I looked at that statement and thought that it was a variable that was being set to the value of 123.
I dident know that when you put a value in a text box you dont have to say "frmMain.TextAddr.Text = 123" but you can simply say "TextAddr = 123" provided you do it in code that's located on the same form as the text box.
So I learned something.
-
Thank you for posting back!
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
Similar Threads
-
By Chris Yard in forum VB Classic
Replies: 5
Last Post: 02-08-2007, 05:44 AM
-
By spydersweb in forum AJAX
Replies: 1
Last Post: 08-29-2006, 02:07 PM
-
By NikhilSriv in forum Java
Replies: 1
Last Post: 06-14-2006, 05:24 AM
-
By Lymarie in forum Database
Replies: 0
Last Post: 04-02-2001, 10:16 AM
-
By mrfelis in forum VB Classic
Replies: 9
Last Post: 04-25-2000, 10:08 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks