Direct Property Assignment |
Top Previous Next |
×V5.0Ø
Syntax - <ObjectName>.<ObjectProperty> = <SourceValue> Where: <ObjectName> is an unquoted user defined string. <ObjectProperty> is a valid property of the object <SourceValue> is a literal string, variable or object property
Description: To update an individual property inside an object or collection you will need to specify the property path that you want to update. Then using the = sign, provide the literal, variable or property path you want to assign.
Sample 1: The following statement assigns the value Jack to the FirstName property in the first row of the RecordObject collection. RecordObject[1].FirstName = "Jack"
Sample 2: The following statement assigns the value of the variable, MyCity, to the City property in the first row of the RecordObject collection. RecordObject[1].City = MyCity
Sample 3: The following statement assigns the value of the built in variable, &Today, to the SubmitDate property of the RecordObject. RecordObject.SubmitDate = &Today
See Also: |