Re: AW: AW: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-09 Thread Paul Newton
Thanks wOOdy Column "Name" has index 0 and column "Item" has index 1,  usw.  It works like this:  ColumnWidth("Item",1) -  the column returned is "Item"   ColumnWidth("Item",2) - the 2 is ignored and the column returned is "Item" You can also return the "Item" column like this

AW: AW: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-09 Thread Jürgen Wondzinski
Try addressing the Array with numbers instead of names. Foxpro has no concept of Names instead of rownumbers for parameters. (only in collections) i.e. figure out what row index that "Name" has. Then use it like MyFileView.ColumnWidth(5,0) = 240 wOOdy

Re: AW: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-09 Thread Paul Newton
you tried to use the STORE command STORE 240 TO MyFileView.ColumnWidth("Name",0) It might not work either. -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul Newton Sent: Thursday, June 02, 2022 12:20 PMTo:profoxt...@leafe.com Subject: Re: Probl

AW: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-09 Thread Dr. Joerg Arand
22 19:18 An: profoxt...@leafe.com 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 y

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-04 Thread Paul Newton
Alan and all Thanks to all who responded with suggestions.  I ended up doing as Alan suggested and have written a VB6 wrapper for the control - no mean feat considering my very limited experience of VB. There are still one or two things to iron out so if anybody would be willing to assist,

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-03 Thread Paul Newton
Alan That sounds quite plausible.  I know that it is possible to create a VB6 wrapper for a DLL (although I have never done so), but is it be possible to create a VB6 wrapper for an OCX ActiveX control with a visual interface? If so, I am quite prepared to give it a go but wouldn't really

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-03 Thread Alan Bourke
Paul The control might just be really particular about the parameter being a long integer. I have seen discussion of this sort of problem where the person ended up writing a VB6 wrapper and calling that from VFP instead. -- Alan Bourke alanpbourke (at) fastmail (dot) fm

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-02 Thread Paul Newton
ech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul Newton Sent: Thursday, June 02, 2022 12:20 PM To:profoxt...@leafe.com 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 f

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-02 Thread Eric Selje
gt; From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul > > Newton > > Sent: Thursday, June 02, 2022 12:20 PM > > To:profoxt...@leafe.com > > Subject: Re: Problem setting ActiveX control property (Folderview and > > Fileview controls) > > &

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-02 Thread Paul Newton
ight not work either. -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul Newton Sent: Thursday, June 02, 2022 12:20 PM To:profoxt...@leafe.com Subject: Re: Problem setting ActiveX control property (Folderview and Fileview controls) Thanks for the suggestion Eric

RE: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-02 Thread Tracy Pearson
om 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

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-02 Thread Paul Newton
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

Re: Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-02 Thread Eric Selje
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 wrote: > Hi > > It's a few years old now, but I have the Sky Software Shell Megapack > suite

Problem setting ActiveX control property (Folderview and Fileview controls)

2022-06-01 Thread Paul Newton
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