Alaska Software Inc. - treatDateAsString( .T. ) not excact
Username: Password:
AuthorTopic: treatDateAsString( .T. ) not excact
AUGE_OHRtreatDateAsString( .T. ) not excact
on Sat, 05 Mar 2011 18:37:38 +0100
hi,

to get activeX DateTime we have to use treatDateAsString( .T. ) in Xbase++.
the Format is YYYYMMDDHHMMSS but Outlook "CreationTime" or
"LastModificationTime" is YYYMMDDHHMMSS.ccc

so i can not syconisize Outlook DateTime while 1 Minute might miss

please enhance treatDateAsString( .T. ) to YYYYMMSSHHMMSS.ccc

greetings by OHR
Jimmy
AUGE_OHRRe: treatDateAsString( .T. ) not excact
on Wed, 09 Mar 2011 02:52:13 +0100
hi,

> so i can not syconisize Outlook DateTime while 1 Minute might miss

it is 1 Second not 1 Minute

> please enhance treatDateAsString( .T. ) to YYYYMMSSHHMMSS.ccc

must be YYYYMMDDhhmmss.ccc

 greetings by OHR
Jimmy
AUGE_OHRRe: treatDateAsString( .T. ) not excact
on Wed, 30 Mar 2011 23:06:01 +0200
hi

here a Sample what i meen

*** Code ***

SELECT 1
ORDSETFOCUS( "STARTDATE" )
GO TOP
DO WHILE !EOF()
    ::WriteNewDetail( 3 )

 need here, else HHMMSS are the same

   SLEEP(100+1)
   SELECT 1
   SKIP
ENDDO

METHOD CalDetailWriteNewDetail( nNo )
...
::oItem := ::oOutlook:CreateItem( olAppointmentItem )
::oItem:treatDateAsString( .t. )
::oItem:Start     := DTOS( dSTARTDATE ) + cSTARTTIME
::oItem:Duration  := nDuration
::oItem:Subject   := TRIM( cSUBJECT )
::oItem:Location  := TRIM( cLOCATION )
::oItem:Body := cMEMOTEXT
IF "Keine Kategorie" $ cLABELCOLOR
ELSE
   ::oItem:Categories := cLABELCOLOR
ENDIF
::oItem:save()

IF OUTLOOK->( DBRLOCK( ::nEditRec ) )
   REPLACE OUTLOOK->CREDATE WITH ::Read_CREDATE()
   REPLACE OUTLOOK->LASTDATE WITH ::Read_LASTDATE()
   DBRUNLOCK( ::nEditRec )
ENDIF

*** eof ***

as you can see i "re-read" CREATETIME after write with MAPI,
but if i only got HHMMSS i have to "wait" 1 Second before i can
use next Record, else Xbase++ will not "find" it.

to create a "fresh" Outlook Calender from DBF "Backup" will
take Records * 1.1Sec while PC (P4 3GHz) can do 10 or more per Sec.

i did talk about this Problem with Pablo and he point me to
http://msdn.microsoft.com/en-us/library/ms221646.aspx

>However at Xbase++ level we are exactly at the same point, Xbase++ digest 
>variant values and no way to provide or retrieve the variant pointer or at 
>least using the documented stuff.

in harbour i have TtoS() which give me HHMMSS.ccc so it "seems" me 
"possible" ?

greetings by OHR
Jimmy