Click here to Skip to main content
16,006,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to run C program using .Net? Pin
paya1pa22-Sep-09 2:06
paya1pa22-Sep-09 2:06 
GeneralRe: How to run C program using .Net? Pin
Henry Minute22-Sep-09 2:22
Henry Minute22-Sep-09 2:22 
GeneralRe: How to run C program using .Net? Pin
Dave Kreskowiak22-Sep-09 3:50
mveDave Kreskowiak22-Sep-09 3:50 
GeneralRe: How to run C program using .Net? Pin
paya1pa22-Sep-09 5:37
paya1pa22-Sep-09 5:37 
GeneralRe: How to run C program using .Net? Pin
Dave Kreskowiak22-Sep-09 6:21
mveDave Kreskowiak22-Sep-09 6:21 
QuestionVoice Recognition in vb.net Pin
krinaljariwala21-Sep-09 20:09
krinaljariwala21-Sep-09 20:09 
AnswerRe: Voice Recognition in vb.net Pin
0x3c021-Sep-09 20:54
0x3c021-Sep-09 20:54 
QuestionFunction with different types of arguments Pin
TeachesOfPeaches21-Sep-09 12:36
TeachesOfPeaches21-Sep-09 12:36 
Hi,

I have a function that populates a list with items of type 'RemoteCustomFieldValue'. Now I would like to extend this function in a way that the list would accept items of different type 'RemoteFieldValue'.
I thought this would work like in the snippet but I get the following error in the if-statement:

'The expression of type "System.Collections.Generic.List(Of T)" can never be of type "System.Collections.Generic.List(Of legion.SST.Jira.RemoteCustomFieldValue)".'

And another one when adding the item to the list
'The value of type "legion.SST.Jira.RemoteFieldValue" can not be converted to "T"'

How can I solve this problem? Perhaps is there another way to do it.

Many thanks in advance

Private Sub GetUserInputValues(Of T)(ByRef alRemoteCustomFieldValue As List(Of T))

        ....
           If TypeOf alRemoteCustomFieldValue Is List(Of RemoteCustomFieldValue) Then                             
                        Dim rcfvUsrInput As RemoteCustomFieldValue = New RemoteCustomFieldValue
                        rcfvUsrInput.customfieldId = ContentCtrl.ID
                        rcfvUsrInput.values = s.ToArray
                        alRemoteCustomFieldValue.Add(rcfvUsrInput)
              Else
                        Dim rcfvUsrInput As RemoteFieldValue = New RemoteFieldValue
                        rcfvUsrInput.id = ContentCtrl.ID
                        rcfvUsrInput.values = s.ToArray
                        alRemoteCustomFieldValue.Add(rcfvUsrInput)
                        End If
              End If

End Sub

AnswerRe: Function with different types of arguments Pin
Gideon Engelberth21-Sep-09 15:44
Gideon Engelberth21-Sep-09 15:44 
NewsBackup Utility Program Pin
LaBe121-Sep-09 10:52
LaBe121-Sep-09 10:52 
GeneralRe: Backup Utility Program Pin
Henry Minute21-Sep-09 11:47
Henry Minute21-Sep-09 11:47 
GeneralRe: Backup Utility Program Pin
Dave Kreskowiak21-Sep-09 14:50
mveDave Kreskowiak21-Sep-09 14:50 
GeneralRe: Backup Utility Program Pin
LaBe123-Sep-09 15:01
LaBe123-Sep-09 15:01 
GeneralRe: Backup Utility Program Pin
Dave Kreskowiak24-Sep-09 2:10
mveDave Kreskowiak24-Sep-09 2:10 
QuestionMultiple instances of program Pin
RyJaBy21-Sep-09 6:23
RyJaBy21-Sep-09 6:23 
AnswerRe: Multiple instances of program Pin
Jay Royall21-Sep-09 6:27
Jay Royall21-Sep-09 6:27 
GeneralRe: Multiple instances of program Pin
RyJaBy21-Sep-09 7:00
RyJaBy21-Sep-09 7:00 
GeneralRe: Multiple instances of program Pin
Jay Royall21-Sep-09 21:59
Jay Royall21-Sep-09 21:59 
AnswerRe: Multiple instances of program Pin
N a v a n e e t h21-Sep-09 7:03
N a v a n e e t h21-Sep-09 7:03 
Questionxml datatype Pin
Ebube21-Sep-09 4:04
Ebube21-Sep-09 4:04 
AnswerRe: xml datatype Pin
Johan Hakkesteegt21-Sep-09 7:45
Johan Hakkesteegt21-Sep-09 7:45 
GeneralRe: xml datatype Pin
Ebube22-Sep-09 7:08
Ebube22-Sep-09 7:08 
GeneralRe: xml datatype Pin
Johan Hakkesteegt22-Sep-09 22:07
Johan Hakkesteegt22-Sep-09 22:07 
Questionchat program Pin
manisghouri21-Sep-09 3:56
manisghouri21-Sep-09 3:56 
AnswerRe: chat program Pin
Dave Kreskowiak21-Sep-09 4:01
mveDave Kreskowiak21-Sep-09 4:01 

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.