> I have to make some small changes on an existing
> visual basic 6 project. I installed VB6 including
[quoted text clipped - 3 lines]
> As soon as I get the error the word Date is being
> highlighted in the code: myDatum = Date
Check under Project / References. Is there a reference to Microsoft
Data Formatting Object Library (this will be the case for example if
you have a TextBox or Label or whatever on one of your Forms that has
ever had its DataFormat property set to something other than the
default). If so then VB will [extremely stupidly, in my opinion!] look
to the MSSTDFMT.DLL library for various date handling functions and
also for most string handling functions, and if that library is
missing it will complain, even though such functions are freely and
readily available in the normal VB runtime. Anyway, if you do have
such a reference then check your Windows / System32 folder to make
sure that MSSTDFMT.DLL and MSSTDFMT.DEP are both present. Otherwise,
and better still, get rid of any Control that is causing a reference
to the MSSTDFMT.DLL [and replace it with a new copy which doesn't] and
then remove the reference.
Mike
Stefan - 31 Jul 2008 08:30 GMT
> > I have to make some small changes on an existing
> > visual basic 6 project. I installed VB6 including
[quoted text clipped - 20 lines]
>
> Mike
Thank you!! You're suggestions were very helpfull. It now works.