adam_pedley
asked on
Dynamically declare variable type
Hi
I will have a string passed to my function. This string contains the name of the class in a DLL that i would need to reference.
Dim rfid As New RFID.Readers.<variable>
This code shown above is what i would want to be able to do.
Does anyone know how I can acheive this
Thanks
Adam
I will have a string passed to my function. This string contains the name of the class in a DLL that i would need to reference.
Dim rfid As New RFID.Readers.<variable>
This code shown above is what i would want to be able to do.
Does anyone know how I can acheive this
Thanks
Adam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Mind you, I've never used RFID stuff, so most of my code is really a guess - it's the concept I was trying to get across!
ASKER
If this isnt possible here is what i am actually trying to do
I have a DLL that holds protocols for talking with RFID Readers
Each class (i split each protocol into a different class) in the DLL has the same functions
Get_ID
Write_Block
Read_Blocks
Check_Status
But of course they all have different ways of getting this information (the code is different for each reader)
in my program i just want to be able to change the reader type in one location and the entire program will still function as normal, without me going around changing all reader types to rfid.reader.texasintrusmen
Thanks
Adam