Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add time to DateTime field
Message
 
 
To
01/08/2022 15:47:24
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01684744
Message ID:
01684758
Views:
33
Hi John,

The code is actually a segment of the application based on the Cursor Adapter. The Insert adds a new record to the table INVUSED (table of parts used). But instead of inserting into the table, the code inserts into a cursor (CursorAdapter of this table). Then the TableUpdate() updates the record in the table (be it VFP or SQL Server).
The customer wanted to know when (time) the transaction takes place (prior to this change, I was only recording the date). So I added the column TRAN_TIME C(5) and added it to the Insert. This way, I can show in various report(s) when the part was being used.

>Hi Dmitry,
>
>Glad you got it sorted. For interest, what are you actually inserting into, as that looks like a VFP command...
>
>>
>>	INSERT INTO (cInvenUsedView) ( INVEN_PK, INV_CODE, TRAN_DATE ) VALUES ;
>>		( tnInvenPk, cInvCode, tdPostDate  )
>>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform