MB Software Solutions,  LLC wrote on 2010-06-07: 
> MB Software Solutions, LLC wrote:
>> I thought there was an alternative to AGETFILEVERSION but I can't
>> recall what it is.  Help didn't suggest an alternative either.  It
>> just offered ADIR, DIRECTORY, or GETFILE....not what I wanted.
>> 
>> I searched the ProFox archives for AGETFILEVERSION but it found no
>> results.  I searched for VERSION and it found results but then I got
>> errors clicking beyond page1 of the results.
>> 
>> Ideas?  I recall seeing something (like a newer command) that gave
> this.
>>   Thanks!
> 
> To clarify, VFP9SP1.  AGETFILEVERSION(laVersion,"myapp.exe") and
> AGETFILEVERSION(laVersion,"c:\abc\def\myapp.exe") both return 0 and
> don't populate the array.  The file is in the current directory and
> yes, it does exist.
> 
> I don't understand why AGETFILEVERSION appears to fail to populate the
> array here.
>

Mike,

If the file you specify does not exist or does not contain Windows version
resources, AGETFILEVERSION( ) returns zero, and the array, if already
created, remains unchanged.

Does your MyApp.exe have Windows version resources? You should be able to
see them in the Properties window from the Explorer right-click menu.

Tracy Pearson
PowerChurch Software




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000b01cb0653$fe0788f0$fa169a...@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.

Reply via email to