2009 Sep 01 6:28 AM
Hi,
I want to find out the extension of a file that will be uploaded into program.Can anyone tell how to achieve this?
Thanks.
2009 Sep 01 6:51 AM
Hi,
You have two ways to do this.
Option 1 : Using SEARCH
SEARCH p_file FOR '.XLS'. (p_file contain the file name )
Option 2: Using SPLIT
Split the string containing the file name in two parts AT '.' (dot) variable 2 will give you the extension of the file.
Hope this helps.
Regards
Bikas
Hi,
I want to find out the extension of a file that will be uploaded into program.Can anyone tell how to achieve this?
Thanks.
2009 Sep 01 6:51 AM
2009 Sep 01 6:51 AM
Hi,
You have two ways to do this.
Option 1 : Using SEARCH
SEARCH p_file FOR '.XLS'. (p_file contain the file name )
Option 2: Using SPLIT
Split the string containing the file name in two parts AT '.' (dot) variable 2 will give you the extension of the file.
Hope this helps.
Regards
Bikas
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |