I am trying to drop a file on a ListView Control.
I pick a file from the desktop, drag it over the ListView Control.
I see that it accept's the file.
I drop it.
But after that I get the error message:
OLE error code blablabla: Invalid number of parameters
Any Help ?
Thanks
Demetrios
----------
I have set:
OLEDragOver:
*** ActiveX Control Event ***
LPARAMETERS data, effect, button, shift, x, y, state
if state <> 0
nodefault
return
endif
OLEDragDrop
*** ActiveX Control Event ***
LPARAMETERS data, effect, button, shift, x, y
local aFilesDropped(1)
if Data.GetFormat(15)
Data.getdata(15, @aFilesDropped)
endif
Thanks again
"Demetrios Panayotakopoulos" <j...@hermes.civil.auth.gr> wrote in message
news:utTNvx8dAHA.1700@tkmsftngp03...
oDataObject.getData(15,@aArray)
aArray should be defined as an array already.
Andrew R.
--
QAITS
a...@qaits.co.uk
http://qaits.co.uk/
For support email sup...@qaits.co.uk
For sales email sa...@qaits.co.uk
"Demetrios Panayotakopoulos" <j...@hermes.civil.auth.gr> wrote in message
news:eetH$98dAHA.1700@tkmsftngp03...
I have it already defined.
I don not know why that happens.
The same code works on a text box.
Demetrios
"Andrew R" <ne...@qaits.co.uk> wrote in message
news:936usq$741$1...@news7.svr.pol.co.uk...
ActiveX controls work a little differently – the object that comes in as a
data object has a Files array, so instead of using GetData to populate the
array, go directly against the array, e.g.
** ListView.OLEDragDrop
*** ActiveX Control Event ***
LPARAMETERS data, effect, button, shift, x, y
If Data.GetFormat(15) and data.Files.Count > 0
For Each lcFile In Data.Files
? lcFile
EndFor
EndIf
lcFile will be the full path to the file.
"Demetrios Panayotakopoulos" <j...@hermes.civil.auth.gr> wrote in message
news:utTNvx8dAHA.1700@tkmsftngp03...