SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.file‎ > ‎

GetExtension


Platform Objects


Description

Returning this will retrieve the extension of the file.

Syntax


target.file.GetExtension(file)

file (input) - the file you want to work with

Return value


This function returns the extension in the form of a string.

Sample

'---------- Start ----------
Function Start

trg.Message( target.file.GetExtension( "C:\TargetFileExample\TargetFileExample.txt" ) )

End Function

See also


Platform Objects and Methods
target.file.GetDate
target.file.GetExtensionByMIME
target.file