application.activeproject.versionnumber 
Author Message
 application.activeproject.versionnumber

Does anyone know how to get application.activeproject.versionnumber to be
available in the program the project creates (for a help about window)?

Thanks,
Paul N. Temple



Mon, 29 Aug 2005 15:36:13 GMT  
 application.activeproject.versionnumber
Hello, Paul!
You wrote  on Thu, 13 Mar 2003 01:36:13 -0600:

 PNT> Does anyone know how to get application.activeproject.versionnumber to
 PNT> be available in the program the project creates (for a help about
 PNT> window)?

 PNT> Thanks,
 PNT> Paul N. Temple

Try AGETFILEVERSION() (works with EXE/DLL/OCX). Use SYS(16) to determine the
path to your exe when it's running.
---
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Mon, 29 Aug 2005 15:56:21 GMT  
 application.activeproject.versionnumber
Eric I actually used sys(5)+sys(2003)+"myprogram.exe", not sys(16).
Thanks,
Paul



Quote:
> Hello, Paul!
> You wrote  on Thu, 13 Mar 2003 01:36:13 -0600:

>  PNT> Does anyone know how to get application.activeproject.versionnumber
to
>  PNT> be available in the program the project creates (for a help about
>  PNT> window)?

>  PNT> Thanks,
>  PNT> Paul N. Temple

> Try AGETFILEVERSION() (works with EXE/DLL/OCX). Use SYS(16) to determine
the
> path to your exe when it's running.
> ---
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Mon, 29 Aug 2005 16:56:18 GMT  
 application.activeproject.versionnumber
Thanks Eric! It worked perfect. I got Rick Strahl's auto update and wanted
an automatic version #. This will work great!

Thanks again,
Paul Temple



Quote:
> Hello, Paul!
> You wrote  on Thu, 13 Mar 2003 01:36:13 -0600:

>  PNT> Does anyone know how to get application.activeproject.versionnumber
to
>  PNT> be available in the program the project creates (for a help about
>  PNT> window)?

>  PNT> Thanks,
>  PNT> Paul N. Temple

> Try AGETFILEVERSION() (works with EXE/DLL/OCX). Use SYS(16) to determine
the
> path to your exe when it's running.
> ---
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Mon, 29 Aug 2005 16:53:16 GMT  
 application.activeproject.versionnumber
Hello, Paul!

You wrote  on Thu, 13 Mar 2003 02:56:18 -0600:

 PNT> Eric I actually used sys(5)+sys(2003)+"myprogram.exe", not sys(16).
 PNT> Thanks,
 PNT> Paul

That'll probably work, but it is not very safe. For example, SYS(2003)
changes if you select a different folder in the GETDIR() dialog. It also
changes if you're using CD commands in your program. Another problem is that
this code fails if your exe is renamed. You'll not run into issues like
these with the SYS(16) command. Also, check application.servername. This
property contains the path to your exe as well, but only at run time (not if
you're DOing the exe in the VFP ide). Just some thoughts.
---
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Mon, 29 Aug 2005 17:07:00 GMT  
 application.activeproject.versionnumber
Thanks Eric.

When I looked up sys(16), I thought it was for internal prg names. I didn't
know that about getdir() although I'm not using that right now I should
watch out for it. No one better rename my app, its to be a vertical
commercial product. Should I really watch out for that? I'll check
application.servername.

Thanks,
Paul Temple



Quote:
> Hello, Paul!

> You wrote  on Thu, 13 Mar 2003 02:56:18 -0600:

>  PNT> Eric I actually used sys(5)+sys(2003)+"myprogram.exe", not sys(16).
>  PNT> Thanks,
>  PNT> Paul

> That'll probably work, but it is not very safe. For example, SYS(2003)
> changes if you select a different folder in the GETDIR() dialog. It also
> changes if you're using CD commands in your program. Another problem is
that
> this code fails if your exe is renamed. You'll not run into issues like
> these with the SYS(16) command. Also, check application.servername. This
> property contains the path to your exe as well, but only at run time (not
if
> you're DOing the exe in the VFP ide). Just some thoughts.
> ---
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Mon, 29 Aug 2005 17:18:39 GMT  
 application.activeproject.versionnumber
Hello, Paul!
You wrote  on Thu, 13 Mar 2003 03:18:39 -0600:

 PNT> When I looked up sys(16), I thought it was for internal prg names. I
 PNT> didn't know that about getdir() although I'm not using that right now
 PNT> I should watch out for it. No one better rename my app, its to be a
 PNT> vertical commercial product. Should I really watch out for that? I'll
 PNT> check application.servername.

 PNT> Thanks,
 PNT> Paul Temple

Well, if you don't want your user to be able to rename your exe file, then
I'd check for this at application startup:

IF JUSTFNAME(SYS(16)) # "YOURFILE.EXE"
    MESSAGEBOX("Invalid program name!", 16, _screen.caption)
    * app clean up code here
    RETURN && or QUIT
ELSE
    * proceed
ENDIF

---
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Mon, 29 Aug 2005 17:24:19 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________w5eoiu5ourerktjw erhtkjw885 woiwr oiwre

2. =?NS_4551-1?Q?Running_multiple_=28or_at_least_two=29_instances?= =?NS_4551-1?Q?_of_FoxPro_2=2E6w_screen?=

3. US-Nationwide-ORACLE-Ingres-Ingres-PowerBuilder-Progress-SYBASE-SQL-Developer 20

4. needed Immediately Plant Manager:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

5. _VFP.ActiveProject.files what file is selected?

6. Visual FoxPro Vers 3.0 Macintosh

7. visual,basic,3,basics,4,5,c+,c++,program,design,layout,win,api,kernel-mode,mode,java,borland,databases,ms,access,htm,html,kernel,tools,language,pascal,delphi,programmer,microsoft,public,vb,professional,edition,version,mac,powerbuilder,control

8. Help.!!!...Select....from....into

9. Help Help Help PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!

10. How can I redo the environment for my screen?????????????==========-------------

11. HELP-VisFox6-Query-Line-Too-Long

 

 
Powered by phpBB® Forum Software