smarshall
11 years agoOccasional Contributor
Parameterizing Object Properties
I know this is possible as I have done it years ago but do not remember the syntax in order to accomplish this. I have an object and want to compare the existing property with the value. The p...
- 11 years ago
VBScript Example of getting object property (With variable (myPropName) property name):
Sub Main
Set wShell = CreateObject("wScript.Shell")
wShell.Run "notepad"
Set myObj = Sys.Process("Notepad")
Dim myPropName
myPropName = "FullName"
msgbox aqObject.GetPropertyValue(myObj,myPropName),vbSystemModal
End Sub
'This is much easier in JScript :)