Click to See Complete Forum and Search --> : Computer date format


Winston
04-01-2001, 11:54 PM
I tried to use the GetDateFormat API function but it keeps giving me this
error whenever I try to run the program -

Compile error:
User defined type not defined

Does anyone knows what's wrong?

I'm looking for something that I can use to detect the system's date format.
If there is another method of getting the computer's date format, do let
me know.

Thank you.

Jonathan Wood
04-02-2001, 01:55 AM
This error should be showing you which line caused the error. You need to go
back and look at what VB is showing you.

You probably have a type argument to this function that you have not
defined. The function itself won't cause this error.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Winston" <w_sik@yahoo.com> wrote in message news:3ac7e9fe@news.devx.com...
>
>
> I tried to use the GetDateFormat API function but it keeps giving me this
> error whenever I try to run the program -
>
> Compile error:
> User defined type not defined
>
> Does anyone knows what's wrong?
>
> I'm looking for something that I can use to detect the system's date
format.
> If there is another method of getting the computer's date format, do let
> me know.
>
> Thank you.

Jonathan Wood
04-02-2001, 01:55 AM
This error should be showing you which line caused the error. You need to go
back and look at what VB is showing you.

You probably have a type argument to this function that you have not
defined. The function itself won't cause this error.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Winston" <w_sik@yahoo.com> wrote in message news:3ac7e9fe@news.devx.com...
>
>
> I tried to use the GetDateFormat API function but it keeps giving me this
> error whenever I try to run the program -
>
> Compile error:
> User defined type not defined
>
> Does anyone knows what's wrong?
>
> I'm looking for something that I can use to detect the system's date
format.
> If there is another method of getting the computer's date format, do let
> me know.
>
> Thank you.

Dean Earley
04-02-2001, 05:13 AM
Have you defined the SYSTEMTIME Structure?

Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type


--
Dean Earley (dean.earley@icode.co.uk)
Assistant Developer

iCode Systems
"Winston" <w_sik@yahoo.com> wrote in message news:3ac7e9fe@news.devx.com...
>
>
> I tried to use the GetDateFormat API function but it keeps giving me this
> error whenever I try to run the program -
>
> Compile error:
> User defined type not defined
>
> Does anyone knows what's wrong?
>
> I'm looking for something that I can use to detect the system's date format.
> If there is another method of getting the computer's date format, do let
> me know.
>
> Thank you.

Dean Earley
04-02-2001, 05:13 AM
Have you defined the SYSTEMTIME Structure?

Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type


--
Dean Earley (dean.earley@icode.co.uk)
Assistant Developer

iCode Systems
"Winston" <w_sik@yahoo.com> wrote in message news:3ac7e9fe@news.devx.com...
>
>
> I tried to use the GetDateFormat API function but it keeps giving me this
> error whenever I try to run the program -
>
> Compile error:
> User defined type not defined
>
> Does anyone knows what's wrong?
>
> I'm looking for something that I can use to detect the system's date format.
> If there is another method of getting the computer's date format, do let
> me know.
>
> Thank you.