Click here to Skip to main content
15,890,527 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Font Size with 900. Pin
Eddy Vluggen8-Apr-09 2:26
professionalEddy Vluggen8-Apr-09 2:26 
GeneralRe: Font Size with 900. Pin
Anubhava Dimri8-Apr-09 2:50
Anubhava Dimri8-Apr-09 2:50 
GeneralRe: Font Size with 900. Pin
EliottA8-Apr-09 2:54
EliottA8-Apr-09 2:54 
GeneralRe: Font Size with 900. Pin
Eddy Vluggen8-Apr-09 3:06
professionalEddy Vluggen8-Apr-09 3:06 
GeneralRe: Font Size with 900. Pin
Anubhava Dimri8-Apr-09 18:30
Anubhava Dimri8-Apr-09 18:30 
GeneralRe: Font Size with 900. Pin
Eddy Vluggen8-Apr-09 21:24
professionalEddy Vluggen8-Apr-09 21:24 
GeneralRe: Font Size with 900. Pin
Anubhava Dimri8-Apr-09 21:52
Anubhava Dimri8-Apr-09 21:52 
QuestionHow to add a "variable" to a delegate .. Can I do This ? Pin
Georg Kohler7-Apr-09 18:16
Georg Kohler7-Apr-09 18:16 
Below is portion of my current code ... obviously I'm having a serious problem with this Smile | :)
Here is my question:
In the following line I need to replace one of these two entries with a "variable"

AddHandler Io_event.Input0, AddressOf F_DriveOK

Any ideas on how to do this ?

I need to add these handles dynamically - meaning the customer can change the mapping and therefore I need to update the handler to point to
A) a different Address or
B) change the input that point to a specific address

What I have now works but is already pages long as I already have +40 Inputs and +25 Mapto locations D'Oh! | :doh:
It's definitely time to fix this ....

Public Sub Add_InputHandle(ByVal VirtualNumber As Integer, ByVal MapTo As Integer)
       
               Select Case VirtualNumber
            Case 0
                Select Case MapTo
                    Case 0
                        AddHandler Io_event.Input0, AddressOf F_DriveOK
                    Case 1
                        AddHandler Io_event.Input1, AddressOf F_DriveOK
                    Case 2
                        AddHandler Io_event.Input2, AddressOf F_DriveOK
.....
.....
.....
                   End Select

            Case 1
                Select Case MapTo

                    Case 0
                        AddHandler Io_event.Input0, AddressOf F_Estop
                    Case 1
                        AddHandler Io_event.Input1, AddressOf F_Estop
                    Case 2
                        AddHandler Io_event.Input2, AddressOf F_Estop
.....
.....
.....
                   End Select
End select


Thanks

Georg
AnswerRe: How to add a "variable" to a delegate .. Can I do This ? Pin
Christian Graus7-Apr-09 18:46
protectorChristian Graus7-Apr-09 18:46 
GeneralRe: How to add a "variable" to a delegate .. Can I do This ? Pin
Georg Kohler7-Apr-09 19:01
Georg Kohler7-Apr-09 19:01 
GeneralRe: How to add a "variable" to a delegate .. Can I do This ? Pin
Christian Graus7-Apr-09 19:05
protectorChristian Graus7-Apr-09 19:05 
AnswerRe: How to add a "variable" to a delegate .. Can I do This ? Pin
Skymir8-Apr-09 8:13
Skymir8-Apr-09 8:13 
QuestionHelp PLEASE!!! Pin
JasonSprosty7-Apr-09 15:07
JasonSprosty7-Apr-09 15:07 
AnswerRe: Help PLEASE!!! Pin
Luc Pattyn7-Apr-09 15:24
sitebuilderLuc Pattyn7-Apr-09 15:24 
AnswerRe: Help PLEASE!!! Pin
Christian Graus7-Apr-09 17:54
protectorChristian Graus7-Apr-09 17:54 
QuestionVB 2005 Case Programming Assignment 5 page 871 source code Pin
twiztid_sickz7-Apr-09 11:56
twiztid_sickz7-Apr-09 11:56 
AnswerRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Dave Kreskowiak7-Apr-09 12:05
mveDave Kreskowiak7-Apr-09 12:05 
AnswerRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Wes Aday7-Apr-09 12:25
professionalWes Aday7-Apr-09 12:25 
AnswerRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Yusuf7-Apr-09 12:30
Yusuf7-Apr-09 12:30 
GeneralRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Luc Pattyn7-Apr-09 12:39
sitebuilderLuc Pattyn7-Apr-09 12:39 
GeneralRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Yusuf7-Apr-09 12:48
Yusuf7-Apr-09 12:48 
GeneralRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Luc Pattyn7-Apr-09 13:13
sitebuilderLuc Pattyn7-Apr-09 13:13 
GeneralRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Yusuf7-Apr-09 13:24
Yusuf7-Apr-09 13:24 
GeneralRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
Luc Pattyn7-Apr-09 13:55
sitebuilderLuc Pattyn7-Apr-09 13:55 
AnswerRe: VB 2005 Case Programming Assignment 5 page 871 source code Pin
twiztid_sickz7-Apr-09 12:37
twiztid_sickz7-Apr-09 12:37 

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.