473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to get intellisense choices on a custom function

Hello all,

I have a function I have written that gets Invoices by a date range. It
looks something like this:

GetInvoicesbyDateRange(ByVal LBound as Date, ByVal UBound as Date, ByVal
CompareTo as ????) as integer

The ???? is where I have a problem. When I am using this function in code,
when I get to the CompareTo field, I want it to pop up intellisense giving
me the following choices of which date in the invoice to use for the
comparison:
CompareTo.EffectiveDate
CompareTo.InvoiceDate
CompareTo.LatterOfInvoiceandEffectiveDates

....like it does when you get to the "Buttons" field in the MsgBox function.
Anyone know how to do this??????
Thanks!

-rp
Nov 20 '05 #1
3 1342
Enum CompareTo As Integer
EffectiveDate
InvoiceDate
LatterOfInvoiceandEffectiveDates
End Enum

Function GetInvoicesbyDateRange(ByVal LBound as Date, _
ByVal UBound as
Date, _
ByVal DateComparison
as CompareTo) As Integer

End Function

"Rick Palmer" <ri*********@welove.com.nospam> wrote in message
news:uv**************@TK2MSFTNGP11.phx.gbl...
Hello all,

I have a function I have written that gets Invoices by a date range. It
looks something like this:

GetInvoicesbyDateRange(ByVal LBound as Date, ByVal UBound as Date, ByVal CompareTo as ????) as integer

The ???? is where I have a problem. When I am using this function in code, when I get to the CompareTo field, I want it to pop up intellisense giving
me the following choices of which date in the invoice to use for the
comparison:
CompareTo.EffectiveDate
CompareTo.InvoiceDate
CompareTo.LatterOfInvoiceandEffectiveDates

...like it does when you get to the "Buttons" field in the MsgBox function. Anyone know how to do this??????
Thanks!

-rp

Nov 20 '05 #2
That parameter needs to be the CompareTo enumeration, as that is what you
want. You might want to name the parameter variable something else to avoid
problems. VS.NET will automatically pop up the enum and its members if the
type for the parameter is that enum.

"Rick Palmer" <ri*********@welove.com.nospam> wrote in message
news:uv**************@TK2MSFTNGP11.phx.gbl...
Hello all,

I have a function I have written that gets Invoices by a date range. It
looks something like this:

GetInvoicesbyDateRange(ByVal LBound as Date, ByVal UBound as Date, ByVal CompareTo as ????) as integer

The ???? is where I have a problem. When I am using this function in code, when I get to the CompareTo field, I want it to pop up intellisense giving
me the following choices of which date in the invoice to use for the
comparison:
CompareTo.EffectiveDate
CompareTo.InvoiceDate
CompareTo.LatterOfInvoiceandEffectiveDates

...like it does when you get to the "Buttons" field in the MsgBox function. Anyone know how to do this??????
Thanks!

-rp

Nov 20 '05 #3
Hell Yeah! I've been trying to figure out how to do that for like a month!
THANKS!!!!

"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl...
Enum CompareTo As Integer
EffectiveDate
InvoiceDate
LatterOfInvoiceandEffectiveDates
End Enum

Function GetInvoicesbyDateRange(ByVal LBound as Date, _
ByVal UBound as
Date, _
ByVal DateComparison as CompareTo) As Integer

End Function

"Rick Palmer" <ri*********@welove.com.nospam> wrote in message
news:uv**************@TK2MSFTNGP11.phx.gbl...
Hello all,

I have a function I have written that gets Invoices by a date range. It
looks something like this:

GetInvoicesbyDateRange(ByVal LBound as Date, ByVal UBound as Date,

ByVal
CompareTo as ????) as integer

The ???? is where I have a problem. When I am using this function in

code,
when I get to the CompareTo field, I want it to pop up intellisense giving me the following choices of which date in the invoice to use for the
comparison:
CompareTo.EffectiveDate
CompareTo.InvoiceDate
CompareTo.LatterOfInvoiceandEffectiveDates

...like it does when you get to the "Buttons" field in the MsgBox

function.
Anyone know how to do this??????
Thanks!

-rp


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nick Kafenzakis | last post by:
Hi, I am thinking about creating some custom server controls in Visual Studio .NET 2003 using VB.NET. One thing I am wondering about is how I can get the control to show up in the IDE....for...
0
by: James Bright | last post by:
I have set up custom Intellisense for our project. (In a nutshell, we will have ASP.NET controls based on many of the statndard WebControls, but with a few extensions that we will be adding). I've...
1
by: Yaron | last post by:
Hi, I have a custom ListView-type control that I designed a few months ago. The control is completely stable and functional. However, often, the Visual Studio .NET IDE's Intellisense will lose and...
1
by: Axel Dahmen | last post by:
Hi, I've created several Web User Controls and Web Custom Controls. None of them are available in the Toolbox or provide IntelliSense. Can someone please point me to some article explaining what...
26
by: S. Justin Gengo | last post by:
I installed the release of Visual Studio.NET 2005 Professional a few days ago. I've been using the Beta for a few weeks and one immediate problem is that I don't seem to have full intellisense in...
2
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
12
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....
1
by: Jon | last post by:
Hello all, I have created a custom web.confif section and all works fine. However, is there a way to add intellisense to the elements? For example, one of the elements can only be INTERNAL or...
4
by: Clive Dixon | last post by:
I have a project as part of a solution which contains a very large number of autogenerated class files. When compiling the solution and the autogenerated files have changed, visual studio takes an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.