Forum Discussion
sastowe
12 years agoSuper Contributor
VBScript example
Sub DoIt
set btn = ...VBObject("cmdSave")
btn.Click
End Sub
Clicks a button
sPadMyString = LeftPad("a", "1", 3)
Function LeftPad(sValuetoPad, sPadChar, iPadLength)
LeftPad = string(iPadLength - Len(sValuetoPad),sPadChar) & sValuetoPad
End function 'LeftPad
Sub DoIt
set btn = ...VBObject("cmdSave")
btn.Click
End Sub
Clicks a button
sPadMyString = LeftPad("a", "1", 3)
Function LeftPad(sValuetoPad, sPadChar, iPadLength)
LeftPad = string(iPadLength - Len(sValuetoPad),sPadChar) & sValuetoPad
End function 'LeftPad
Related Content
- 5 years ago
Recent Discussions
- 18 hours ago