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?
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center