Hallo Paul,
are you shure that MyFileView.ColumnWidth("Name",0) is a property and not a
method?
Have You tried
MyFileView.ColumnWidth("Name",240)
Jörg
-----Ursprüngliche Nachricht-----
Von: ProfoxTech <[email protected]> Im Auftrag von Paul Newton
Gesendet: Donnerstag, 2. Juni 2022 19:18
An: [email protected]
Betreff: Re: Problem setting ActiveX control property (Folderview and Fileview
controls)
Thanks Tracy
It's worth a try ... I tried ... and still get "Function argument value,type
or count is invalid"
Paul
On 02/06/2022 17:39, Tracy Pearson wrote:
> Have you tried to use the STORE command
> STORE 240 TO MyFileView.ColumnWidth("Name",0)
>
> It might not work either.
>
> -----Original Message-----
> From: ProfoxTech [mailto:[email protected]] On Behalf Of
> Paul Newton
> Sent: Thursday, June 02, 2022 12:20 PM To:[email protected]
> Subject: Re: Problem setting ActiveX control property (Folderview and
> Fileview controls)
>
> Thanks for the suggestion Eric but the first column is in fact 0
> because the following
>
> ? MyFileView.ColumnWidth("Name",0) gives the correct result for the
> width of the first column Paul
>
> On 02/06/2022 16:59, Eric Selje wrote:
>> It's interesting that the VB syntax has the first column as 0 when VB
>> is a one-based array language. Have you tried a 1 there instead for
>> the 2nd parameter?
>>
>> On Wed, Jun 1, 2022 at 7:55 PM Paul
>> Newton<[email protected]>
>> wrote:
>>
>>> Hi
>>>
>>> It's a few years old now, but I have the Sky Software Shell Megapack
>>> suite (V8) which contains the two (ActiveX) controls above as well
>>> as a drive combo control. I have used these successfully in the
>>> past but have run into a problem. The Fileview control has a Public
>>> Read-Write Property ColumnWidth which, according to the help file,
>>> "Gets/Sets the width of the column in pixels". The VB syntax in the help
>>> is:
>>>
>>> Public Property ColumnWidth(ByVal ColumnName As String, ByVal
>>> ColumnIndex As Long) As Long
>>>
>>> ? MyFileView.ColumnWidth("Name",0) and ?
>>> MyFileView.Object.ColumnWidth("Name",0) both work fine and return 120.
>>>
>>> Trying to set the column width as follows
>>>
>>> MyFileView.ColumnWidth("Name",0) = 240 gives "Function argument
>>> value, type or count is invalid"
>>>
>>> and MyFileView.Object.ColumnWidth("Name",0) = 240 gives "Syntax error"
>>>
>>> Am I missing something (I have checked and there is no method or
>>> event on the control which references ColumnWidth).
>>>
>>> Alternatively, can anybody suggest affordable (aka cheap, preferably
>>> free) alternatives to these controls which are designed to closely
>>> mimic the behaviour of Windows Explorer?
>>>
>>> Many thanks
>>>
>>> Paul Newton
>>>
>>> --- StripMime Report -- processed MIME parts ---
>>> multipart/alternative
>>> text/plain (text body -- kept)
>>> text/html
>>> ---
>>>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives This message:
https://leafe.com/archives/byMID/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.