Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > VB Classic

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-01-2001, 11:54 PM
Winston
Guest
 
Posts: n/a
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.
Reply With Quote
  #2  
Old 04-02-2001, 01:55 AM
Jonathan Wood
Guest
 
Posts: n/a
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.



Reply With Quote
  #3  
Old 04-02-2001, 01:55 AM
Jonathan Wood
Guest
 
Posts: n/a
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.



Reply With Quote
  #4  
Old 04-02-2001, 05:13 AM
Dean Earley
Guest
 
Posts: n/a
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.



Reply With Quote
  #5  
Old 04-02-2001, 05:13 AM
Dean Earley
Guest
 
Posts: n/a
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.



Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:21 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.