Filename Length
I frequently send files through a website that only allows 40 characters in the filename description. I'm trying to build a script that will take a filename from my clipboard and trim it down to 40 characters. I've been experimenting with StringTrimRight, but I can't figure out how to add-in variables so that it'll automatically read what's on my clipboard or, at the least, popup a dialog box in which I can drop my text. Any hints or suggestions? Would be greatly appreciated!
This will trim the clipboard string to 40 characters:
Code: Select all
Clipboard:=SubStr(Clipboard,1,40)