Re: [python-win32] Calling a method with SAFEARRAY parameter

2024-10-02 Thread Alessandro Fiorino
It worked it was easier than expected! Il gio 26 set 2024, 07:11 Thomas Geppert ha scritto: > You can simply pass a string and two empty lists like: > > titles, positions = GetTableInfo("TABLENAME", [], []) > > > Am 25.09.2024 um 13:41 schrieb Alessandro Fiorino: > > I have to call a method of a

Re: [python-win32] Calling a method with SAFEARRAY parameter

2024-10-01 Thread Thomas Geppert
You can simply pass a string and two empty lists like: titles, positions = GetTableInfo("TABLENAME", [], []) Am 25.09.2024 um 13:41 schrieb Alessandro Fiorino: I have to call a method of a COM Object which is defined as GetTableInfo ([in] BSTR bstrTableName,[in, out] SAFEARRAY(BSTR)*bstrColu

Re: [python-win32] Calling a method with SAFEARRAY parameter

2024-09-26 Thread Steven Manross
]) Without context, I can’t actually do much other than this suggestion. HTH Steven From: python-win32 On Behalf Of Alessandro Fiorino Sent: Wednesday, September 25, 2024 4:42 AM To: python-win32@python.org Subject: [python-win32] Calling a method with SAFEARRAY parameter I have to call a method of a

[python-win32] Calling a method with SAFEARRAY parameter

2024-09-25 Thread Alessandro Fiorino
I have to call a method of a COM Object which is defined as GetTableInfo ([in] BSTR bstrTableName,[in, out] SAFEARRAY(BSTR)*bstrColumnTitles,[in, out] SAFEARRAY(long)*lColumnPos) I tried with columnTitles = VARIANT(pythoncom.VT_ARRAY | pythoncom.VT_BSTR, [None]) columnPos =