Hi all.
Does anyone know if you can use pointers to functions in VB? Or anything similar?
What I want ideally is to have a UDT containing a variable which somehow can be used to call the correct function relevant to the other variables in the type. Does that make sense?
What I really want is something like:
Maybe I can do something fancy using a class instead of a type. I've never really done OOP in VB so I don't know.Code:dim map(1 to 10) as ReportType call setMap 'a function to setup the array map() 'a bit like a constructor I guess for x = 1 to 10 map(x).function 'would be map[x]->function in C I think next x
Since I'm on the subject, does anyone know if you can use any pointers in VB?




Reply With Quote