Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Application Name


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2008, 07:10 AM
Newbie
 
Join Date: Jan 2008
Posts: 4
Smile Application Name

Is it possible to use the coding to retrieve the name of the application?

For example, the application is named as MyApp.exe.

We can write somethings like

MsgBox(AppName())

and it will prompt up "MyApp.exe" insides the Messagebox.

Tks.
Reply With Quote
  #2 (permalink)  
Old 02-12-2008, 09:38 AM
Senior Member
 
Join Date: May 2007
Posts: 128
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi kawawong, welcome b4ppc forum!

Not totally sure what you are after, but 'filesearch' statement may help.
Example:
Code:
	'first create control arraylist al1 on the form.
FileSearch(al1,AppPath,"*.exe") 'gather all exe files from application directory and assign file list to arraylist 'al1'.

'you can display each file names excluding file path something like:

For i = 0 To al1.count-1  
Msgbox(SubString (al1.item(i), StrLength(AppPath)+1,StrLength(al1.item(i))+1-StrLength(AppPath)))
Next

Regards,
__________________
Rioven

O2 Atom life 624MHz, 1GB Internal ROM, WM6(upgraded)

Last edited by Rioven : 02-12-2008 at 11:09 AM. Reason: corrected
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application exits without cause Hennell Questions & Help Needed 3 03-15-2008 08:31 AM
GPS application - Part I Erel Tutorials 4 02-13-2008 06:39 AM
GPS application - Part II Erel Tutorials 1 11-28-2007 05:07 PM
My first application Erel Tutorials 8 10-16-2007 01:00 PM
DB Application scott93727 Share Your Creations 0 05-02-2007 05:24 AM


All times are GMT. The time now is 10:18 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0