Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime to Date - from SQL to VFP
Message
 
To
28/04/2005 12:38:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01009330
Message ID:
01009414
Views:
14
Zahid,
another way:
If you no need the partitition of time data,
you can bring down data from SQL with cursor adapter with schema, where this column is type 'Date'
HTH


I want to convert DateTime format of SQL Server to only Date in Vfp.
>I know i can use CONVERT() in SELECT statement but i want to control i with FORMAT or INPUTMASK.
>I m using SQL Pass Through to bring down data.
>-----------
> After Connecting to SQL Server. save handle to => hConn
> =SQLEXEC(hConn, 'Select * from invoice', 'inv')
> after setting updatable all fields of INV cursor.
>*
> thisform.text1.controlsource = 'inv.inv_date'
> thisform.text1.format = 'E'
>------------
>I have tried thisform.text1.value = {} before setting control source to inv.inv_date but it didnot work.
>
>Looking for you expert suggestions.
>
>Thnx in Advance
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform