Re: GetFile() issue

2018-11-08 Thread Gene Wirchenko
At 11:41 2018-11-07, Ted Roche wrote: On Wed, Nov 7, 2018 at 2:13 PM Gene Wirchenko wrote: Ted Roche: > >SETs often have global effects which make their local use frustrating. > > I have not found it so, but one must be careful. Well, OP had a classic case, where the SET is saved,

Re: GetFile() issue

2018-11-08 Thread Thierry Nivelet
chosen and return back empty string makes it perform in exactly the same way as GetFile(). Thanks a million! Dave Crozier Software Development Manager Flexipol Packaging Ltd. ﴾⚆ᨎ⚆﴿ -Original Message- From: ProfoxTech On Behalf Of Thierry Nivelet Sent: 08 November 2018 16:01 To: profo

Re: GetFile() issue

2018-11-08 Thread Gianni Turri
: Re: GetFile() issue You can provide a 'full path' and a file skeleton without changing cd: ? LocFile("C:\\*.prg") Thierry Nivelet FoxInCloud Give your VFP app a second life in the cloud http://foxincloud.com/ VisitFoxInCloud Blog <http://foxincloud.com/blog/> WatchFoxInCloud M

RE: GetFile() issue

2018-11-08 Thread Dave Crozier
Development Manager Flexipol Packaging Ltd. ﴾⚆ᨎ⚆﴿ -Original Message- From: ProfoxTech On Behalf Of Thierry Nivelet Sent: 08 November 2018 16:01 To: profoxt...@leafe.com Subject: Re: GetFile() issue You can provide a 'full path' and a file skeleton without changing cd: ? LocFile("C:\\

Re: GetFile() issue

2018-11-08 Thread Thierry Nivelet
ant to allow the user to put/get the files from anywhere on the network, but start them off with a preferred starting point. Dave Crozier Software Development Manager Flexipol Packaging Ltd. ﴾⚆ᨎ⚆﴿ -Original Message- From: ProfoxTech On Behalf Of Thierry Nivelet Sent: 07 November 2018 11:

RE: GetFile() issue

2018-11-08 Thread Dave Crozier
r Software Development Manager Flexipol Packaging Ltd. ﴾⚆ᨎ⚆﴿ -Original Message- From: ProfoxTech On Behalf Of Thierry Nivelet Sent: 07 November 2018 11:14 To: profoxt...@leafe.com Subject: Re: GetFile() issue use locfile() instead? Thierry Nivelet FoxInCloud Give your VFP app a second life in

RE: GetFile() issue

2018-11-08 Thread Dave Crozier
the ordinary course of its business. Until such time as the property in the goods passes to the buyer the seller shall be entitled at any time -Original Message- From: ProFox On Behalf Of Peter Cushing Sent: 08 November 2018 14:55 To: profox@leafe.com Subject: Re: GetFile() issue On 08

Re: GetFile() issue

2018-11-08 Thread Fernando D. Bozzo
and third parties and properly stored > protected and insured and identified as the seller's property but shall be > entitled to resell or use the goods in the ordinary course of its business. > Until such time as the property in the goods passes to the buyer the seller > shall be entitled at

Re: GetFile() issue

2018-11-08 Thread Peter Cushing
On 08/11/2018 14:35, Dave Crozier wrote: Peter, Mainly to place them into a folder where you preferably want them to put/get the file from rather than them being able to navigate around the PC & Network. Hi Dave, You are far too nice to your users!  We make them navigate the network for

RE: GetFile() issue

2018-11-08 Thread Dave Crozier
e seller shall be entitled at any time -Original Message- From: ProfoxTech On Behalf Of Gene Wirchenko Sent: 07 November 2018 19:13 To: profoxt...@leafe.com Subject: Re: GetFile() issue At 07:08 2018-11-07, Ted Roche wrote: >On Wed, Nov 7, 2018 at 5:57 AM Dave Crozier wrote: > > &g

RE: GetFile() issue

2018-11-08 Thread Dave Crozier
half Of Peter Cushing Sent: 08 November 2018 13:21 To: profox@leafe.com Subject: Re: GetFile() issue Hi Dave, I never change my default folder when the app is running and for things like output folders or getting data I usually just get the user to select the folder with : cImport = GETDIR('','Se

Re: GetFile() issue

2018-11-08 Thread Fernando D. Bozzo
Changing default folder temporarily is an old trick to make getfile() start at it by default because there is no other way to do it with getfile() Normally it's encapsulated in a method (like select_dir or similar) with code that save actual dir, select dest dir, prompts user with getfile,

Re: GetFile() issue

2018-11-08 Thread Peter Cushing
Hi Dave, I never change my default folder when the app is running and for things like output folders or getting data I usually just get the user to select the folder with : cImport = GETDIR('','Select upload folder') You can then ask for every report or save this for their session and keep

Re: GetFile() issue

2018-11-07 Thread Ted Roche
On Wed, Nov 7, 2018 at 2:13 PM Gene Wirchenko wrote: > > That URL was wrong in your post as it included the closing > paren. Oddly, Eudora excluded it in this reply. > Mayhaps your email reader parsed it wrong, as I sent plain text and it works fine on my end. > >SETs often have global

Re: GetFile() issue

2018-11-07 Thread Gene Wirchenko
At 07:08 2018-11-07, Ted Roche wrote: On Wed, Nov 7, 2018 at 5:57 AM Dave Crozier wrote: > Unknown to me after all these years, the set default to command has an > effect on the whole of the VFP thread not just the DataSession you are in. To quote my co-author, "Computer language purists

Re: GetFile() issue

2018-11-07 Thread Ted Roche
On Wed, Nov 7, 2018 at 5:57 AM Dave Crozier wrote: > Unknown to me after all these years, the set default to command has an > effect on the whole of the VFP thread not just the DataSession you are in. To quote my co-author, "Computer language purists object to SET commands for a pretty

Re: GetFile() issue

2018-11-07 Thread Frank Cazabon
Does the _commonfolder class in _system.vcx help you out? I use it like this: LOCAL loCommonFolder AS _commonfolder OF _system.vcx m.loCommonFolder = CREATEOBJECT("_commonfolder") #DEFINE CSIDL_PERSONAL  0x0005    && My Documents #DEFINE CSIDL_APPDATA  

Re: GetFile() issue

2018-11-07 Thread Alan Bourke
maybe check out the GetSaveFileName() function in the Vfp2c32 library (Github) "Creates a Save dialog box that lets the user specify the drive, directory, and name of a file to save. GetSaveFileName([nFlags [, cFileFilters [, cFileName [, cInitialDirectory [, cDialogTitle [, nFlagsEx [,

Re: GetFile() issue

2018-11-07 Thread Thierry Nivelet
use locfile() instead? Thierry Nivelet FoxInCloud Give your VFP app a second life in the cloud http://foxincloud.com/ VisitFoxInCloud Blog WatchFoxInCloud Marketing Videos WatchFoxInCloud Technical Videos

GetFile() issue

2018-11-07 Thread Dave Crozier
Hi folks, Just had an issue that has been bugging me for a while and I now why but I haven’t got a solution to hand… so maybe you can help. In lots of places we allow users to export their reports and spreadsheet results onto their own personal “C” drives. And to do this I implement … default