Hi,
brandelh hat geschrieben:
da habe ich ja schneller meinen eigenen Kalender programmiert als mich mit ActiveX rumzuschlagen
JA, auf jeden Fall ... aber es geht doch "ums lernen" wie man activeX
einsetzt.
Leider komme ich bei dem Datum Array nicht weiter:
Code: Alles auswählen
aArgs := {2008,10,1,0,0,0,0}
oDB := VTType():new( aArgs, VT_ARRAY+VT_VARIANT )
oXbp:DayBold(aArgs)
oError:args :
-> VALTYPE: C VALUE: DayBold
-> VALTYPE: A VALUE: {2008, 10, 1, 0, 0, 0, 0}
oError:canDefault : J
oError:canRetry : N
oError:canSubstitute: J
oError:cargo : NIL
oError:description : Typkonflikt.
Parameter hat falschen Typ
oError:filename : NIL
oError:genCode : NIL
oError:operation : DayBold
oError:osCode : -2147352571
oError:severity : 2
oError:subCode : 6500
oError:subSystem : Automation
oError:thread : 1
oError:tries : NIL
ich habe es auch mit VT_ARRAY+VT_DATE versucht.
ich hab da noch etwas was ich nicht verstehe:
Code: Alles auswählen
a.) oXbp:SetProperty("DayBold", DATE(), .T.)
b.) oXbp:DayBold( DATE(), .T. )
beide sollten ja das selbe ergeben. Während das 1st "etwas" rausgibt,
bekomme ich beim 2nd eine Fehlermeldung :
oError:args :
-> VALTYPE: C VALUE: DayBold
-> VALTYPE: D VALUE: 20080906
-> VALTYPE: L VALUE: .T.
oError:canDefault : J
oError:canRetry : N
oError:canSubstitute: J
oError:cargo : NIL
oError:description : Unzul§ssige Parameteranzahl.
Fehlender Parameter in Aufruf
oError:filename : NIL
oError:genCode : NIL
oError:operation : DayBold
oError:osCode : -2147352562
oError:severity : 2
oError:subCode : 6500
oError:subSystem : Automation
oError:thread : 1
oError:tries : NIL
sind die beiden Aufrufe unterschiedlich ... ich "sehe" nichts ?