I didn't install VFP on my work PC here. But, I just looked in the About - and I see it says 9.0 SP2.
So - at least I should be good in that regards. Problem got stranger. I put a SET STEP On in front of the line with the problem - so I can pause the program. And, if I then step thru that line with the PUTFILE - I get the problem. But, if I then go to the Command Window while the program is paused via Set Step - and I manually run that line of code with the PUTFILE - I don't have the problem. I then also did a different test. Within the Debugger, with the program paused - I right-clicked on that line and selected "Set Next Statement" - then I ran that line, but the problem did NOT happen. So - it ONLY Seems to happen when the program runs - or when I hit Step On and run the line the 1st time! A Strangely Frustrating problem... -K- -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Rafael Copquin Sent: Tuesday, May 26, 2015 3:53 PM To: [email protected] Subject: Re: A Quirk w/the PUTFILE Function? I noticed you use version 9.0, but did you install the service pack 2? Rafael Copquin El 26/05/2015 a las 14:57, Kurt Wendt escribió: > In one of the systems that I am working on - there is a Bug that has been > reported. It seems to be a Quirk of how the PUTFILE function is working. > > If I run the following 2 command by hand in the Command window in VFP (v9.0 > release) - it functions as expected: > SET DEFAULT TO I:\COMMON\OPER\TEST\PNC_Elections\PNCBK\PayMapToday > gcPayTestFile = PUTFILE('Items May Require PayMap Today:', > "PayMapToday" , 'XLS') > > However, the PUTFILE function doesn't operate the same way when called within > the program. And, no - there isn't the SET DEFA command in the program > directly prior to the PUTFILE command. But, for my testing - I run that > command since that IS the folder which is currently selected when the Putfile > command runs within the system. > > The problem is -to the left of the Save button - where you see the selected > file name - it Properly defaults that name and displays it when I run the > command by hand. However, when the system is running the command - even > though the file name is Passed - it appears as Blank initially! > > I'm wondering if its some Setting that is causing the issue. But, upon > looking in the Online help - I found NO Clues to the issue. > > I suspect someone here knows of the issue and what may be causing it... > > TIA, > -K- > > > Kurt Wendt > Consultant > > GLOBETAX > 90 Broad Street > New York, NY 10004-2205, U.S.A. > Tel. +1-212-747-9100 > Fax. +1-212-747-0029 > Email: [email protected]<mailto:%[email protected]> > Web: www.GlobeTax.com<http://www.globetax.com/> > > GlobeTax does not provide or offer, and this is not, tax, investment or legal > advice. This email and any attachments hereto is intended only for use by the > addressee(s) and may contain confidential information. If you are not the > intended recipient of this e-mail, please immediately notify the sender at > +1-212-747-9100 and permanently delete the original and any copies of this > e-mail. > > > > > --- 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: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/80838f1ca795b14ea1af48659f35166f1b9...@drexch02.corp.globetax.com ** 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.

