|
-
Jul 19th, 2000, 10:09 AM
#1
Thread Starter
Hyperactive Member
trying to declare a subroutine... ie
private sub blah(myvar As Control)
but the word `Control` changes to `control` when i move off the line, and i get a type mismatch when i try to assign to it. When i replace it with Variant, it works ok (and the first V in Variant stays in upper case). I`ve checked and i dont have any vars called `control` that may confuse it...why cant i use them? Someone else here can get upper case C`s - why not me?
Thanks in advance,
Alex.
-
Jul 19th, 2000, 10:21 AM
#2
_______
>?>
not a problem here..sure you don't have something in
public or other declares
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jul 19th, 2000, 05:56 PM
#3
Frenzied Member
Public declare some where
I was able to create your problem by declaring a Public variable "control" ("Public control As Double")in a code module, while the declare for "blah" was in another code module for a form.
Try "Dim control As Long" in in each of your code modules. See if you get an error message about multiple declares.
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
-
Jul 19th, 2000, 06:09 PM
#4
An easier approach. Go to Edit > Find and do a project-wide search for Control. If you find a declaration of it, remove it.
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
|
Click Here to Expand Forum to Full Width
|