Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Application Name

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2008, 08:10 AM
Junior Member
 
Join Date: Jan 2008
Posts: 13
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, 10:38 AM
Senior Member
 
Join Date: May 2007
Posts: 174
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

DEVICE: Motorola ATRIX (Dual Core) Android 2.2.1
DESKTOP: Intel Pentium Dual-core E5200; Microsoft® Windows® Vista Home (Basic); Hard Disk:320GB; Memory:4096MB

Last edited by Rioven : 02-12-2008 at 12:09 PM. 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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
GPS application - Part I Erel Tutorials 22 09-11-2010 11:07 AM
My first application Erel Tutorials 16 04-18-2010 09:09 PM
Minimize Application akr Questions (Windows Mobile) 5 08-15-2009 11:05 PM
application already running micro Questions (Windows Mobile) 3 09-04-2008 10:20 AM
DB Application scott93727 Share Your Creations 0 05-02-2007 06:24 AM


All times are GMT. The time now is 12:59 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0