hello! how to make null User Defined Type variable?
dim udtMyVariable as LINETRANSLATEOUTPUT
' *** some code where I use this vairable ***
' *** *** *** *** *** ***
udtMyVariable = 0 ' can I make this?
I must plead ignorance, but what is the structure of LINETRANSLATEOUTPUT?
If this is a simple value, then this is not a UserDefinedType. On the other
hand, if this is a true Type (with its own structure) then you cannot simply
set it to 0, you would have to set each of the components to their respective
udtMyVariable.FirstField = 0
udtMyVariable.SecindField = ""
and so on.
Or is it the case the LINETRANSLATEOUTPUT is a mapping of some bits within
an Integer value, and you are trying to clear all of the bits at once?
In that case, you might be able to use LSet to map the memory used for udtMyVariable:
dim intClear as Integer
intClear = 0
LSet udtMyVariable = intClear
"zyrou" <email@example.com> wrote:
>hello! how to make null User Defined Type variable?
>dim udtMyVariable as LINETRANSLATEOUTPUT
>' *** some code where I use this vairable ***
>' *** *** *** *** *** ***
>udtMyVariable = 0 ' can I make this?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL