Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Finding the file type that is uploaded into program

Former Member
0 Likes
441

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
418

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,

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

2 REPLIES 2
Read only

Former Member
0 Likes
418

Hi,

Just go through this link, I hope it will help you.

[Link|;

Regards,

Nidhi Kothiyal

Read only

Former Member
0 Likes
419

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