Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using date()
Message
From
02/01/2002 13:11:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/01/2002 13:02:16
Robert Ross
Onsite Computer Services
Benton, Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00599827
Message ID:
00599838
Views:
12
>I simply want to put the system date in a field in a table.
>The field IS DEFINETLY set up as a date data type.
>However, the table designer will not allow more than 8 characters for this type of field.
>I use:
> REPLACE dsjn.req_date WITH date()
>The code kicks back with a 'data type mismatch' error.
>
>I've tried 'SET CENTURY OFF' no, avail...any suggestions?
>
>Thanks in advance!
>Bob Ross ( A confused newbie )

Bob,
You said 'definitely' but recheck. There si date and datetime which are both 8 in length (you can't change that). Also try :

if !eof()
REPLACE dsjn.req_date WITH date() in 'dsjn'
endif

PS: If you're at eof() no replace occurs.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform