Units StrUtils, Variants e ShellAPI

As seguintes units do sistema foram adicionadas ao VsScript: StrUtils, Variants e ShellAPI, incorporando assim uma série de novos métodos e funções uteis no desenvolvimento dos scripts.

https://nimitz.atlassian.net/browse/TECD-1358

 Modo de uso

Todas as funcionalidades de cada unit podem ser acessadas simplesmente ao ser adicionadas as mesmas na clausula uses. Feito isso basta digitar o nome da unit, seguindo de um ponto para acionar o autocomplete da mesma e verificar todos os método e funções que cada unit disponibiliza. Exemplos de alguns métodos:

  1. unit Variants:

    1. VarType, VarAsType, VarIsType, VarIsByRef, VarIsEmpty, VarCheckEmpty, VarIsNull, VarIsClear, VarIsCustom, VarIsOrdinal, VarIsFloat, VarIsNumeric, VarIsStr, VarToStr, VarToStrDef, VarToWideStr, VarToWideStrDef, VarToDateTime, VarFromDateTime, VarInRange, VarEnsureRange, VarSameValue, VarCompareValue, VarIsEmptyParam, VarIsError, VarAsError, VarSupports, VarCopyNoInd, VarIsArray, VarArrayRef, VarTypeIsValidArrayType entre outras;

  2. unit StrUtils:

    1. ResemblesText, AnsiResemblesText, ContainsText, AnsiContainsText, StartsText, AnsiStartsText, EndsText, AnsiEndsText, ReplaceText, AnsiReplaceText, ContainsStr, AnsiContainsStr, StartsStr, AnsiStartsStr, EndsStr, AnsiEndsStr, ReplaceStr, AnsiReplaceStr, DupeString, ReverseString, AnsiReverseString, StuffString, IfThen, LeftStr, RightStr, MidStr, LeftBStr, RightBStr, MidBStr, AnsiLeftStr, AnsiRightStr, AnsiMidStr, SearchBuf, PosEx, Soundex, SoundexInt, DecodeSoundexInt, SoundexWord, DecodeSoundexWord, SoundexSimilar, SoundexCompare, SoundexProc, GetWordDelimiters

  3. unit ShellAPI:

    1. ShellExecute, ShellExecuteA, ShellExecuteW, FindExecutable, FindExecutableA, FindExecutableW, ShellAbout, ShellAboutA, ShellAboutW, DuplicateIcon, ExtractAssociatedIcon, ExtractAssociatedIconA, ExtractAssociatedIconW, ExtractAssociatedIconEx, ExtractAssociatedIconExA, ExtractAssociatedIconExW, ExtractIcon, ExtractIconA, ExtractIconW, SHAppBarMessage, DoEnvironmentSubst, DoEnvironmentSubstA, DoEnvironmentSubstW, ExtractIconEx, ExtractIconExA, ExtractIconExW, SHFileOperation, SHFileOperationA, SHFileOperationW, SHFreeNameMappings, SHCreateProcessAsUserW, SHEvaluateSystemCommandTemplate, SHEmptyRecycleBin, SHEmptyRecycleBinA, SHEmptyRecycleBinW, SHQueryUserNotificationState, Shell_NotifyIconGetRect, SHGetFileInfo, SHGetFileInfoA, SHGetFileInfoW, SHGetStockIconInfo, SHGetDiskFreeSpace, SHGetDiskFreeSpaceA, SHGetDiskFreeSpaceW, SHGetDiskFreeSpaceEx, SHGetDiskFreeSpaceExA, SHGetDiskFreeSpaceExW, SHGetNewLinkInfo, SHGetNewLinkInfoA, SHGetNewLinkInfoW, SHInvokePrinterCommand, SHInvokePrinterCommandA, SHInvokePrinterCommandW, SHLoadNonloadedIconOverlayIdentifiers, SHSetLocalizedName, SHRemoveLocalizedName, SHGetLocalizedName, ShellMessageBox, ShellMessageBoxA, ShellMessageBoxW entre outras.