How too set/get clipboard text? WS.ClipboardSet("The quick brown fox") Prefix field name with # for numeric input, * for password, ! for a checkbox and for a date. R = WS.DialogInput("User Information", "First Name", "Last Name", "*Password", "#Length", Date", "!Newsletter") Next How to ask user input with a dynamic dialog? Dim i, r WScript.Echo "Part of sorted 2-dimensional array: " WS.ArraySort ar2, 0, SORT_Ascending, SORT_IgnoreCase ' Case-insensitive sort on first column of array ar2 in ascending order WScript.Echo "Part of unsorted 2-dimensional array: " Md256 = WS.Hash(txt, HASH_SHA256) How to Base64 encode and decode a string in VBScript or VBA txt = "Grüße to the World"ī64 = WS.Base64Enc(txt) ' Use Base64Dec to decode back to string How to sort an 1- or 2-dimensional array in VBScript or VBA? Dim i, ar2(9999, 2) '2-dimensional array,: a table with 10000 rows (0.9999) with 3 columns (0.2) eachĪr2(i, 0) = CLng(Int((100000 - 100 1) * Rnd 100)) 'random values between 100 Set CTX = CreateObject("")ĬTX.Manifest = ScriptFolder
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |