??? Invalid use of property ? [resolved]
Ok, this really is strange, i cannot compile any code thta uses the .Filter attribute of the commonDialog control... thing is i used to be able too...
VB Code:
CD.Filter "*.Txt|Text Files"
that code throws up the error... and i have tried
VB Code:
With CD
.Filter = "*.txt|Text Files"
End With
(and yes my control is called CD)
Any Help ?
Re: ??? Invalid use of property ?
Trye this instead:
CD.Filter = "Text (*.txt)|*.txt"
Re: ??? Invalid use of property ?
Quote:
Originally Posted by RhinoBull
Trye this instead:
CD.Filter = "Text (*.txt)|*.txt"
ok, that worked, thanks mate :)
Tghing is i had a previously compiled version of it and it worked :-P
maybe the addition of Option Explicit prompted it ?
Re: ??? Invalid use of property ?
Yes, Option Explicit is your friend!
Re: ??? Invalid use of property ?
Yey, i have a new friend :-P
Thanks mate :) [resolved]