How to reference CDialog ...
I have the following code in my project
VB Code:
CDialog.Filter = "sales.dta|*.dta"
CDialog.FilterIndex = 2
CDialog.ShowOpen
The project runs in code with no problem but I can not compile it ... I get the following error:
Quote:
Compile error:
Variable not defined
What am I missing ...?
Re: How to reference CDialog ...
Have you added the common dialog control to your form/project?
Re: How to reference CDialog ...
Thouoght it was on the form :oops: the component was not even open in the project so I am not sure how it was working in code ... but there again never sure how lots of these things work :)
Thanks - now compiled