> Why declare it as ListItem, then assign as WebControl?
>
[quoted text clipped - 39 lines]
> > Thanks,
> > Miguel
Sorry,
That was a type mistake.
My question is if I should declare a default value when I do "dim ..."
Or use an IF inside Get in property.
Thanks,
Miguel
KJ - 31 May 2007 16:48 GMT
Miguel,
At the very least, you should declare it and assign as Nothing.
In the property, you can assign the List to have a value if it's still
Nothing. That is fine; it's also known as "Lazy Instantiation"
> > Why declare it as ListItem, then assign as WebControl?
>
[quoted text clipped - 53 lines]
> Thanks,
> Miguel