Hi, If I do this in module myConstants.bas :
Global const One = 1
Global const Two = 2
Global const three = 3
Then in my code, all I have to do is:
if ThisConstant = myConstants. and when I type the dot, Intellisense
shows all of the constants. But if I don't want hundreds of constants
to have to search through, I have groups of constants and try to use
enums. But I can't figure out how to get Intellisense. So If I do:
Public Enum Numbers
One = 1
Two = 2
Three = 3
end enum
I can't do myConstants follows by the dot I don't see anything. I have
to know in advance I want an enum called "Numbers". I want it to work
like .NET where I can do:
myConstants.Num bers.Three Or something similar that lets me have
Intellisense to be able to know what my constants are. It doesn't do
any good to have a module full of enumerations and then have to open
the file to see which one you want. Thanks.
-F 4 1106 fd************@ aol.com wrote:
enums. But I can't figure out how to get Intellisense. So If I do:
Public Enum Numbers
One = 1
Two = 2
Three = 3
end enum
I can't do myConstants follows by the dot I don't see anything.
You should see "Numbers" in the intellisense list plus any additional
enums you have defined. Are you not seeing this?
<fd************ @aol.comschrieb :
But if I don't want hundreds of constants
to have to search through, I have groups of constants and try to use
enums. But I can't figure out how to get Intellisense. So If I do:
Public Enum Numbers
One = 1
Two = 2
Three = 3
end enum
I can't do myConstants follows by the dot I don't see anything. I have
to know in advance I want an enum called "Numbers". I want it to work
like .NET where I can do:
Use 'Numbers.<Intel liSense opens and you can select the constant>'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Hello, sorry I was not more clear. If I have several enums, I want to
know what their group is, not just intellisense for what the actual
enums under the group are. I need it to be like the .NET languages or
Borland languages. In other words:
Module1
Public enum Names
name = fred
name = john
end enum
Public enum Numbers
One = 1
Two = 2
end enum
What I would like is to be able to type something like
"Module1.Names. Fred". And I need intellisense at every dot. Instead,
I can't use Module1 followed by a dot. Nothing happens unless I use
"Global Const Fred", etc. If I do that, I can type Module1. and get a
list of every global constant, but they are not grouped logically. If
I use the enums, I can not see a way to type "Module1" followed by a
dot to see what my enums are. I must know in advance what my enums are
called. Without Intellisense, how do I know that there are enums
called "names" and "numbers"? That is what I need to find out. Then
once I find each enum, I need Intellisense to tell me what enums are
there. If I know I am looking for an enum called "Names", I can type
"Names. " and get a list of names. But I need a list of enums first.
Thanks.
Fred
<fd************ @aol.comschrieb :
If I have several enums, I want to
know what their group is, not just intellisense for what the actual
enums under the group are. I need it to be like the .NET languages or
Borland languages. In other words:
Module1
Public enum Names
name = fred
name = john
end enum
Public enum Numbers
One = 1
Two = 2
end enum
What I would like is to be able to type something like
"Module1.Names. Fred". And I need intellisense at every dot.
I don't think that grouping enumerations in a module is a good idea.
Instead you may want to use a namespace declaration:
\\\
Namespace Foo
Public Enum Goo
...
End Enum
Public Enum Bar
...
End Enum
End Namespace
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter van der Goes |
last post by:
When a struct is created in C# and a parameterized constructor defined, the
IntelliSense editor shows only the syntax for the parameterized constructor
in tooltips, but not for the default constructor which appears to still
exist. If this is not designed behavior, is it a bug or am I misusing my
struct?
If it is by design, could you please explain? I realize the behavior of a
struct, as regards constructors, is different from that of...
|
by: Stefan Kronberg |
last post by:
I'm working on a solution containing about 20 projects. Some of the projects
contain class definitions that are used in other of the projects. Most of
the time intellisense is working ok, i.e. if I work with objects declared
from my own classes intellisense will show me all alternatives (methods and
properties from my classes and from the classes they are derived from). But
sometimes I will get nothing from intellisense, completely nothing,...
|
by: Christopher W. Douglas |
last post by:
I'm working in VB.Net, using Visual Studio 2003.
I have a project, let's call it Foo, that contains common methods, forms,
and objects I use in other projects. It compiles as Foo.dll, which I then
reference from the project that needs it.
Let's say I have a method, Bar, that I want to access from another project.
If I add a public module Methods to Foo, and add a public method Bar to
Methods, I can call it from my other project a...
|
by: Kevin Ortman |
last post by:
We recently ported our code from VSNET2002 to 2003
After migration, we noticed that several properties of one of our classes no longer pop up in intellisense ( the get_ set_ methods pop up, but the properties don't).
Some digging shows that the MSIL generated for the culprit properties includes a few extra method attributes ( newslot virtual final ). And these attributes are causing the problem in VSNET2003 intellisense. (Everything...
|
by: Vera |
last post by:
I have the following coded elements:
1. An interface
2. A baseclass implementing the interface
3. A subclass that inherits the baseclass and contains some extra properties and methods
I use my subclass through COM, in this case in Access2003.
Now, if I declare a variable x As mySubClass, then on typing "x." Intellisense shows me nothing.
If I declare a variable x As myBaseClass, then on typing "x." Intellisense still shows me nothing....
| |
by: Peteroid |
last post by:
I was creating my application just fine for the last 3 weeks or so. Then,
starting this morning, IntelliSense seems to be having problems. It goes
into a locked 'Updating IntelliSense..." mode. When this happens its time to
close VS C++.NET, which can only be done via the Windows Task Manager.
I tried repairing C++. It did seem to help, but the problem is back a few
hours later. I will try creating a new project, copy over source files,...
|
by: Shehab Kamal |
last post by:
I have a C# .NET 1.1 solution that consists of 2 projects. The first project
is a class library that has well formed XML documenation. In this project
IntelliSense shows me the description of each method.
I have added a reference to this class library in the second project. But
IntelliSense doesn't show me the description of any method.
Note: I have compiled the class library so that it generates a doc file
named assemblyname.dll.xml but...
|
by: Sin Jeong-hun |
last post by:
IntelliSense is very helpful, but sometimes there are too many items on
the pop-up list.
For example, sometimes I just want to browse methods only. But the list
shows everything including properties, methods, events and so on. Is
there any way to filter them?
Also, somethimes, when I'm using controls that inherits another
control, I only want to see the control's own members. For example,
suppose that there is a table control that...
|
by: RSH |
last post by:
I have a class file in my project that is just like all the other class
files in the project. For some reason this class after instantiation does
not show its Public Properties and Methods like the other classes do. And
the compiler doesn't catch errors in that class, it is only when the page
loads when any class errors show. Why won't this class show up in
intellisense?
Thanks,
Ron
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |