![]() |
|
|
|||||||
![]() |
MCSD - Q: How can I pass UDTs into optional parameters in VB 6.0 ? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I know VB does not allow passing UDTs as optional
parameters. One of my friends is looking for a workaround, if possible. I will appreciate if anyone provides the solution. Ramesh |
|
|
|
|
#2 |
|
Posts: n/a
|
>I know VB does not allow passing UDTs as optional
>parameters. One of my friends is looking for a workaround, >if possible. I will appreciate if anyone provides the >solution. > If the udt is declared as part of a com class, it can be passed to routines, although the parameter type in the routine signature must be declared as a variant. If not you have two options. 1 - Pass in a pointer to the udt and use the copymemory, movememory etc api's to manipulate the udt - another reason why vb is crap. 2 - Simple use a class instead of a udt - easy. Kline Sphere |
|
|
|
#3 |
|
Posts: n/a
|
omg a real question, thank you.
"Ramesh" <> wrote in message news:02be01c397f4$df2dc900$... > I know VB does not allow passing UDTs as optional > parameters. One of my friends is looking for a workaround, > if possible. I will appreciate if anyone provides the > solution. > > Jaime |
|
|
|
#4 |
|
Posts: n/a
|
>omg a real question, thank you.
Although somewhat off topic, but still...... Kline Sphere |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Configure the compiler to write output classes-and pass parameters to JVM | staticy2003 | General Help Related Topics | 0 | 02-24-2008 06:43 PM |