Return File Extension value in Clarion

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Return File Extension value in Clarion

Post by sk2107 »

Hi,

How can get the File Extension value in Clarion ?

Regards
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Return File Extension value in Clarion

Post by void »

Extract the extension from the filename.

Clarion Strings Functions under String Processing


Maybe something like:
INSTRING('.',s,-1,LEN(CLIP(s)))

INSTRING
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Re: Return File Extension value in Clarion

Post by sk2107 »

As usual thank you for your rapid reply.

Yes this is what I am doing now, but I thought that there could be a direct value from Everything. Because I was thinking about the way of retrieving other values like MD5, Bit Depth, length, ... etc

this the code I used

if INSTRING('.',QQ_Name) > 0
QQ_Ext = SUB(QQ_Name,INSTRING('.',QQ_Name,-1,len(QQ_Name)) + 1,250)
else
QQ_Ext=''
end
Best Regards
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Return File Extension value in Clarion

Post by void »

Property support (md5, bitdepth etc..) in the SDK is on my TODO list.

Currently, the SDK is limited to filenames, size, date modified, date created and attributes.
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Re: Return File Extension value in Clarion

Post by sk2107 »

Thanks a lot again.

Best Regards
Post Reply