![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |