|
#1
|
|||
|
|||
|
Computer date format
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. |
|
#2
|
|||
|
|||
|
Re: Computer date format
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. |
|
#3
|
|||
|
|||
|
Re: Computer date format
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. |
|
#4
|
|||
|
|||
|
Re: Computer date format
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. |
|
#5
|
|||
|
|||
|
Re: Computer date format
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|