Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | filename.getShortPath SEARCH    

  Functions
filename.getExt
filename.getLastFolder
filename.getName
filename.getPath
filename.getShortPath

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
filename.getShortPath

Language: MioScript
Product: MioFactory


Syntax

filename.getShortPath(Filename)


Parameters

STRINGFilenamePath or Filename.


Return value

Short version of the filename for display purpose.



Description

Returns a short version of the filename for display purpose.
The middle part of the filename is replaced by ellipsis (...)

For the example below, the result is c:\...\myFile.txt

c:\folder_A\folder_B\myFile.txt

Note: This function is defined in the library klib.k and is linked automatically.