Click here to Skip to main content
16,011,608 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Hypermommy7-Nov-11 10:16
Hypermommy7-Nov-11 10:16 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev7-Nov-11 10:43
protectorAspDotNetDev7-Nov-11 10:43 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Hypermommy8-Nov-11 3:44
Hypermommy8-Nov-11 3:44 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev23-Oct-11 15:37
protectorAspDotNetDev23-Oct-11 15:37 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
Luc Pattyn23-Oct-11 15:50
sitebuilderLuc Pattyn23-Oct-11 15:50 
GeneralRe: Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'. Pin
AspDotNetDev23-Oct-11 16:10
protectorAspDotNetDev23-Oct-11 16:10 
QuestionTrouble creating a generic function Pin
Clark Kent12320-Oct-11 4:39
professionalClark Kent12320-Oct-11 4:39 
QuestionRe: Trouble creating a generic function Pin
Clark Kent12320-Oct-11 7:48
professionalClark Kent12320-Oct-11 7:48 
After further investigation I have tried to add a constraint to see if this will help my problem. I tried the following code below.

VB
Public Function ReportGeneric(Of Class_Objects As {clsMyClass1, clsMyClass2}, GUI_Input)(ByRef value1 As Class_Objects, ByRef value2 As GUI_Input) As Boolean

...


Both classes will have the same member function as shown in my original post. But the compiler error I receive is "Type parameter 'Class_Objects' can only have one constraint that is a class." This does not bode with me to well. It seems as though generics well not help me to achieve reduce copying my function and overloading it. As I mentioned before I would really like to steer away from copying my function 26 times and overloading it to capture all possible combinations of different parameters. This will make it hard to maintain code down the line.

Is something amiss here? Have I overlooked something?

Thanks.

One more thing I would like to say is yes I can use an object data type and be done with this, but the point was to focus upon speed by preventing boxing and unboxing. Any info you can send my way to shed some light would be greatly appreciated.
AnswerRe: Trouble creating a generic function Pin
Dave Kreskowiak21-Oct-11 2:05
mveDave Kreskowiak21-Oct-11 2:05 
GeneralRe: Trouble creating a generic function Pin
Clark Kent12321-Oct-11 2:29
professionalClark Kent12321-Oct-11 2:29 
QuestionHow to automatically Read and update Access database usin VB Pin
Member 808717520-Oct-11 4:37
Member 808717520-Oct-11 4:37 
SuggestionRe: How to automatically Read and update Access database usin VB Pin
DaveAuld20-Oct-11 5:35
professionalDaveAuld20-Oct-11 5:35 
GeneralRe: How to automatically Read and update Access database usin VB Pin
Member 808717520-Oct-11 7:55
Member 808717520-Oct-11 7:55 
GeneralRe: How to automatically Read and update Access database usin VB Pin
DaveAuld20-Oct-11 8:14
professionalDaveAuld20-Oct-11 8:14 
QuestionNVIDIA GPU temperature - VB.NET Pin
Member 807887019-Oct-11 13:41
Member 807887019-Oct-11 13:41 
AnswerRe: NVIDIA GPU temperature - VB.NET Pin
Dave Kreskowiak19-Oct-11 15:41
mveDave Kreskowiak19-Oct-11 15:41 
GeneralRe: NVIDIA GPU temperature - VB.NET Pin
Member 807887020-Oct-11 0:22
Member 807887020-Oct-11 0:22 
GeneralRe: NVIDIA GPU temperature - VB.NET Pin
Dave Kreskowiak20-Oct-11 1:48
mveDave Kreskowiak20-Oct-11 1:48 
AnswerRe: NVIDIA GPU temperature - VB.NET Pin
Luc Pattyn20-Oct-11 4:03
sitebuilderLuc Pattyn20-Oct-11 4:03 
GeneralRe: NVIDIA GPU temperature - VB.NET Pin
Member 807887020-Oct-11 5:31
Member 807887020-Oct-11 5:31 
AnswerRe: NVIDIA GPU temperature - VB.NET Pin
Luc Pattyn20-Oct-11 7:07
sitebuilderLuc Pattyn20-Oct-11 7:07 
GeneralRe: NVIDIA GPU temperature - VB.NET Pin
Member 807887020-Oct-11 12:26
Member 807887020-Oct-11 12:26 
AnswerRe: NVIDIA GPU temperature - VB.NET Pin
Luc Pattyn20-Oct-11 12:51
sitebuilderLuc Pattyn20-Oct-11 12:51 
GeneralRe: NVIDIA GPU temperature - VB.NET Pin
Member 807887020-Oct-11 13:07
Member 807887020-Oct-11 13:07 
GeneralRe: NVIDIA GPU temperature - VB.NET Pin
Luc Pattyn20-Oct-11 13:35
sitebuilderLuc Pattyn20-Oct-11 13:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.