* *
% remove brandings and homepage [1] from copyright header. Pass 1 - using script.
[1] nobody has access to it anymore AFAIK - and it's also just
a redirect since long
! update url in copyright header
; this should make the diff between 3.4 and 3.2 easier to manage
33 lines
763 B
Plaintext
33 lines
763 B
Plaintext
/*
|
|
* demonstration/test client code for OLE server using hash array with
|
|
* strict item order (associative hash array) to define OLE objects
|
|
* with fixed message numbers (DISPIDs)
|
|
*
|
|
* Copyright 2010 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
|
|
*/
|
|
|
|
#require "hbwin"
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL oObject
|
|
|
|
oObject := win_oleCreateObject( "MyOleTimeServer" )
|
|
|
|
IF ! Empty( oObject )
|
|
? "DATE:", oObject:Date()
|
|
? "TIME:", oObject:Time()
|
|
? "DATTIME:", oObject:datetime()
|
|
? "VALUE:", oObject:value
|
|
? "GETDATA:", oObject:getdata()
|
|
oObject:value := "hello"
|
|
? "VALUE:", oObject:value
|
|
? "GETDATA:", oObject:getdata()
|
|
ELSE
|
|
? "Can not access 'MyOleTimeServer' OLE server."
|
|
ENDIF
|
|
|
|
WAIT
|
|
|
|
RETURN
|