[Python-de] Probleme mit win32com.client / com-objekt hat property, das als methode dargestellt ist / wie weise ich nun Werte zu ?
Bernhard Herzog
bh at intevation.de
Do Feb 15 13:38:59 CET 2007
Stefan Mallepell <steve at syso.ch> writes:
> * >>> o.Table.AsCurrencybyName("DKO","AUF_NR") = 268
> * Traceback ( File "<interactive input>", line 1
> * SyntaxError: can't assign to function call (<interactive input>,
> * line 1)
>
> Gibt es eine Lösung für dieses Problem? Falls ja, was muss ich sonst
> noch besonders beachten (Werteübergabe von Typ Integer, String,
> Currency, Boolean, DateTime, Variant, Double).
Hast Du es mal mit
o.Table.SetAsCurrencybyName("DKO","AUF_NR", 268)
probiert. Die SetAsCurrencybyName Methode gibt es ja nach dem, was Du
aus dem INterface zitierst:
> # The method SetAsCurrencybyName is actually a property, but must
> be used as a method to correctly pass the arguments
> def SetAsCurrencybyName(self, _tableID=defaultNamedNotOptArg,
> _fldID=defaultNamedNotOptArg, arg2=defaultUnnamedArg):
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/