on fetch Code
On button push
And this is how it comes out
Start: 04/22/200917:39:37
xcv
End: 17:39:55
Call Time11:59
Start: 04/22/200917:39:37
dfdfvdv
End: 17:39:40
Call Time11:59
I am trying to make a call timer to count how many minutes/hours are spent with the file open
not sure how to correct this
Code:
'Date Created: 03-Apr-2009 02:17:32 PM 'Last Updated: 22-Apr-2009 05:07:47 PM 'Created By : steven 'Updated By : Steven dim shared vTstarta as C dim shared vTstartb as C dim shared lviewed as C dim shared calla as T calla = time() lviewed = trim(convert_type(date(),"c")) vTstarta = convert_type(date(),"c") vTstartb = convert_type(time(),"c")
Code:
'Date Created: 04-Apr-2009 12:44:50 AM 'Last Updated: 22-Apr-2009 04:17:56 PM 'Created By : steven 'Updated By : Steven dim vTend as C dim ledit as C dim today as C dim callb as t dim calltime as c vTend = convert_type(time(),"c") today = convert_type(date(),"c") callb = time() calltime = totime(toseconds(callb)-toseconds(calla),2,0) topparent.commit() dim ft1 as p ft1=topparent:free_text1_rtf.this ft2=topparent:free_text2_rtf.this lstnote=topparent:LSTNOTE1.this ft1.rtf.set_cursor(1) ft1.rtf.insert_text("Start: " + vTstarta + vTstartb + crlf()) ft1.activate() xbasic_wait_for_idle() textlen=len(ft1.rtf.plain_text) ft1.rtf.set_cursor(textlen+1) ft1.rtf.insert_text(crlf()) xbasic_wait_for_idle() ft1.textselect(1,-1) ft1.rtf.cut() lstnote1.show() lstnote1.activate() IF a5_eval_expression("=Var->lstedit<>date()") THEN lstnote1.textselect(1,-1) lstnote1.rtf.delete() END IF lstnote1.rtf.set_cursor(1) lstnote1.rtf.paste() lstnote1.rtf.insert_text(vtend) lstnote.hide() xbasic_wait_for_idle() ft2.field.readonly=.f. ft2.activate() ft2.rtf.set_cursor(1) ft2.rtf.paste() ft2.rtf.insert_text("End: " + vTend + crlf()+ calltime + crlf()) ft2.field.readonly=.t. topparent.commit() sys_send_keys("{F9}")
Start: 04/22/200917:39:37
xcv
End: 17:39:55
Call Time11:59
Start: 04/22/200917:39:37
dfdfvdv
End: 17:39:40
Call Time11:59
I am trying to make a call timer to count how many minutes/hours are spent with the file open
not sure how to correct this
Comment