I am trying to understand something about about the way VBS splits single lines of code across multiple lines.
In the below function the _ character is used in two places to split execution across two lines, ok all fine.
For Each objItem in colItems
    if i=0 then
        header = ""
        For Each param in objItem.Properties_
            header = header & param.Name & vbTab
        Next
        WScript.Echo header
        i=1
    end if
    serviceData = ""
    For Each param in objItem.Properties_
        serviceData = serviceData & param.Value & vbTab
    Next
    WScript.Echo serviceData
Next
What I do not understand then is how this is supposed to look on a single line. When I modify either of the lines with any of the below I get an error.
For Each param in objItem.Propertiesheader = header & param.Name & vbTabFor Each param in objItem.Properties.header = header & param.Name & vbTabFor Each param in objItem.Properties header = header & param.Name & vbTab
Errors to the effect of:
C:\Program Files (x86)\ManageEngine\AppManager12\working\conf\application\scripts\wmiget.vbs(86,2) Microsoft VBScript runtime error: Object doesn't support this property or method: 'objItem.PropertiesserviceData'
How would the above be correctly represented on a single line?