Why does UCase give Type Mismatch error?

Hi, I'm using an event handler to control filenames that are drag-dropped onto our vault. Part of this is I wish to force document names to be UPPERCASE

This works:
Vault.ObjectFileOperations.RenameFile ObjVer, fVerNew, szLeftTrim, szExtension, false

But this gives a Type Mismatch error, and I don't know why:
Vault.ObjectFileOperations.RenameFile ObjVer, fVerNew, UCase(szLeftTrim), szExtension, false

Any ideas? Many thanks

Parents Reply Children
No Data