Hi Andreas,

Alle 14:45, lunedì 23 ottobre 2006, Andreas Bregas ha scritto:
[...]
> udt's were a completely missing feature. Now - I don't remember
> since which version - they are available but the implementation
> is not complete yet. Unfortunately the remaining problems are
> not so easy to solve.
>
> >>But perhaps there could be some recent documentation that I'm not aware.
> >>
> >>Anyway I'm looking for the following information:
> >>
> >>- Can I declare a type into an external library?
>
> I've just tried it in a m184 and it did not work.
>
> >>- Can I use public/private keywords in order to affect the UDT scope?
>
> No, this also does not work yet

Should I open an RFE or these are already in your specification?


>
> >>- Can I use an UDT as a parameter type into a basic sub or function?
> >>example:
> >>
> >>    sub Test( myParam As MyUDT )
>
> Yes


Ok, but if you pass any object with the wrong type it doesn't raise any error, 
so it is not very helpful to use typed parameters here
Moreover, you could also write a sub like this:
        sub Test( myParam As Ciao)

Where Ciao is not an UDT but an arbitrary word

>
> >>- Can I use Basic UDT's as parameters for Windows API's as it usually
> >>happens in VB/VBA ? (guess no)
>
> How do you want to access the Windows API? Via DLL
> call? This indeed does not support udt's.

Yes I want to access via the Declare statement.

In VBA this is very frequent and many Windows API's require structured 
parameters

In VBA you can also use Len(MyUDT) to discover the effective memory space 
allocated from the UDT



>
> >>- Can I declare an array as an UDT's member ? example
> >>    Type MyUDT
> >>            MyList(4) As Long
>
> No. This is handled by an internal issue, but it's
> set to OOo later currently.

OK


>
> >>- Can I declare a fixed lenght string as an UDT's member ?
> >>    Type MyUDT
> >>            MyFixedString As String*6
> >>            ...
>
> Yes, but I'm not sure if this has any effect

No, actually it doesn't


> So this feature is rather incomplete. Sorry to have
> no better news.


Thank you very much for useful information
paolo M

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to