|
| Stamp Button? Why can't i show the exact Time? |
 |
Mon, 31 Mar 2008 15:01:47 -050 |
I'm able to produce the exact date - but for some reason i can't get the time
stamp to show the exact time. what am i doing wrong.
Please Help!
Step by step instructions would help!
Thanks,
|
| Post Reply
|
| Re: Stamp Button? Why can't i show the exact Time? |
 |
Mon, 31 Mar 2008 17:07:05 -040 |
In article <nHj7Mo2kIHA.1688@news-server>,
Martin@nationalbenefitadvisory.com says...
I'm not sure that I've understood your question correctly. If you need
to display the value of a StampTime field, try the form hereunder.
Jean-Pierre Martel, editor
The dBASE Developers Bulletin
Blue Star dBASE Plus Core Concepts Graduate
======== Beginning of VanderDoes2.wfm =======
if not file('ThirdDBF.dbf')
create table ThirdDBF (TimeStamp1 TimeStamp)
use ThirdDBF
generate(1)
use // Close the table
endif
** END HEADER -- do not remove this line
//
// Generated on 2008/03/31
//
parameter bModal
local f
f = new VanderDoes2Form()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class VanderDoes2Form of FORM
with (this)
metric = 6 // Pixels
height = 352.0
left = 367.0
top = 0.0
width = 280.0
text = ""
endwith
this.THIRDDBF1 = new QUERY()
this.THIRDDBF1.parent = this
with (this.THIRDDBF1)
left = 19.5714
top = 11.3182
sql = 'select * from "ThirdDBF.DBF"'
active = true
endwith
this.ENTRYFIELD1 = new ENTRYFIELD(this)
with (this.ENTRYFIELD1)
dataLink = form.thirddbf1.rowset.fields["timestamp1"]
height = 22.0
left = 12.0
top = 10.0
width = 131.0
endwith
this.GRID1 = new GRID(this)
with (this.GRID1)
dataLink = form.thirddbf1.rowset
cellHeight = 22.0
height = 282.0
left = 14.0
top = 38.0
width = 243.0
endwith
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_ONCLICK
height = 20.0
left = 164.0
top = 12.0
width = 90.0
text = "Add Row"
fontSize = 8.0
endwith
this.rowset = this.thirddbf1.rowset
function PUSHBUTTON1_onClick
Form.rowset.beginAppend()
Form.rowset.fields["timestamp1"].value = dateTime()
Form.rowset.next(0)
return
endclass
======== End of VanderDoes2.wfm =======
|
| Post Reply
|
|
|
|
|
|
|
|
|
|