RE: AGETFILEVERSION Fail - SOLVED!

2018-05-03 Thread Paul H. Tarver
: AGETFILEVERSION Fail - SOLVED! At 10:18 2018-05-02, "Paul H. Tarver" <p...@tpcqpc.com> wrote: [snip] >So I've updated my class method to include the explicit full path which will >be backwardly compatible with all my previous code and I learned a valuable >lesson: > &

RE: AGETFILEVERSION Fail - SOLVED!

2018-05-03 Thread Gene Wirchenko
At 10:18 2018-05-02, "Paul H. Tarver" wrote: [snip] So I've updated my class method to include the explicit full path which will be backwardly compatible with all my previous code and I learned a valuable lesson: "When in doubt, get explicit!" Just like both

RE: AGETFILEVERSION Fail

2018-05-02 Thread Paul H. Tarver
Sent: Wednesday, May 02, 2018 12:16 PM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail What is the file name being passed to AGETFILEVERSION() when it fails to return anything? What is the current directory at this point in time? I believe there was a WinAPI version of this function, can

Re: AGETFILEVERSION Fail

2018-05-02 Thread Gianni Turri
hout error, without creating an array, but it does return a 0 as the number of elements. Paul H. Tarver -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul H. Tarver Sent: Wednesday, May 02, 2018 11:28 AM To: profoxt...@leafe.com Subject: RE: AGET

RE: AGETFILEVERSION Fail - SOLVED!

2018-05-02 Thread Paul H. Tarver
41 AM To: profoxt...@leafe.com Subject: RE: AGETFILEVERSION Fail After some further testing, I determined that mis-spoke when I said that AGETFILEVERSION() was returning an empty string and not an array. What it is actually doing is returning NOTHING. If I remove the LOCAL ARRAY line from the

Re: AGETFILEVERSION Fail

2018-05-02 Thread Frank Cazabon
-Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul H. Tarver Sent: Wednesday, May 02, 2018 11:28 AM To: profoxt...@leafe.com Subject: RE: AGETFILEVERSION Fail I checked the array generated from ADIR() in my code and it is returning the proper list of EXE

RE: AGETFILEVERSION Fail

2018-05-02 Thread Paul H. Tarver
[mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul H. Tarver Sent: Wednesday, May 02, 2018 11:28 AM To: profoxt...@leafe.com Subject: RE: AGETFILEVERSION Fail I checked the array generated from ADIR() in my code and it is returning the proper list of EXE files found in the folder. But I'm thinking I want

RE: AGETFILEVERSION Fail

2018-05-02 Thread Paul H. Tarver
-Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Gianni Turri Sent: Wednesday, May 02, 2018 10:51 AM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail Hi Paul! If the current directory ( curdir() ) changes to something like C:\Windows\System32

RE: AGETFILEVERSION Fail

2018-05-02 Thread Paul H. Tarver
to identify the INI file. I'll keep testing, Thanks! Paul H. Tarver -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Frank Cazabon Sent: Wednesday, May 02, 2018 7:01 AM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail Maybe you could break

RE: AGETFILEVERSION Fail

2018-05-02 Thread Paul H. Tarver
[mailto:profoxtech-boun...@leafe.com] On Behalf Of Charlie-gm Sent: Wednesday, May 02, 2018 8:31 AM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail Maybe take a look at "_VFP.servername". That returns a character string of the .exe (including path) that is being executed. Example: m

Re: AGETFILEVERSION Fail

2018-05-02 Thread Gianni Turri
ss anyway because of this weirdness. Paul H. Tarver -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Ted Roche Sent: Tuesday, May 01, 2018 2:38 PM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail On Tue, May 1, 2018 at 3:23 PM, Paul H. T

Re: AGETFILEVERSION Fail

2018-05-02 Thread Gene Wirchenko
At 06:31 2018-05-02, Charlie-gm wrote: Maybe take a look at "_VFP.servername". That returns a character string of the .exe (including path) that is being executed. Example: my_exe_file = _vfp.servername I don't think this will work if you are running ".app" files - in

Re: AGETFILEVERSION Fail

2018-05-02 Thread Charlie-gm
Maybe take a look at "_VFP.servername". That returns a character string of the .exe (including path) that is being executed. Example: my_exe_file = _vfp.servername I don't think this will work if you are running ".app" files - in that case it may always return the path to the VFP9.exe

Re: AGETFILEVERSION Fail

2018-05-02 Thread Frank Cazabon
un...@leafe.com] On Behalf Of Frank Cazabon Sent: Sunday, April 29, 2018 4:26 PM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail Paul, what's the code you are using? Frank. Frank Cazabon On 28/04/2018 02:38 PM, Paul H. Tarver wrote: Has anyone ever had any problem with AGETFILEVERSION(

Re: AGETFILEVERSION Fail

2018-05-01 Thread Gianni Turri
Of Ted Roche Sent: Tuesday, May 01, 2018 2:38 PM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail On Tue, May 1, 2018 at 3:23 PM, Paul H. Tarver <p...@tpcqpc.com> wrote: > > The reason for this code is to identify the application .EXE. Perhaps there > is a be

RE: AGETFILEVERSION Fail

2018-05-01 Thread Paul H. Tarver
: AGETFILEVERSION Fail On Tue, May 1, 2018 at 3:23 PM, Paul H. Tarver <p...@tpcqpc.com> wrote: > > The reason for this code is to identify the application .EXE. Perhaps there > is a better way to identify the application name that will eliminate the > need to use AGETFILEVERSION() to identify

Re: AGETFILEVERSION Fail

2018-05-01 Thread Ted Roche
On Tue, May 1, 2018 at 3:23 PM, Paul H. Tarver wrote: > > The reason for this code is to identify the application .EXE. Perhaps there > is a better way to identify the application name that will eliminate the > need to use AGETFILEVERSION() to identify the main .exe file for the

RE: AGETFILEVERSION Fail

2018-05-01 Thread Paul H. Tarver
the application. Paul -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Frank Cazabon Sent: Sunday, April 29, 2018 4:26 PM To: profoxt...@leafe.com Subject: Re: AGETFILEVERSION Fail Paul, what's the code you are using? Frank. Frank Cazabon On

Re: AGETFILEVERSION Fail

2018-04-29 Thread Frank Cazabon
Paul, what's the code you are using? Frank. Frank Cazabon On 28/04/2018 02:38 PM, Paul H. Tarver wrote: Has anyone ever had any problem with AGETFILEVERSION() failing to return values after an ODBC connection is made? I'm using the Oracle ODBC Driver and until the SQLCONNECT() command