perlnewb00
Programmer
I am pretty new to VBscript. I have a function that creates a new ojbect record but I would like record type to be changed based on the string I pass to the function. Is that possible?
Here is what I currently have:
Function AddObject(recordtype)
....
....
obj.Contact.NewRecord 'Creates a new Contact Record
....
....
End Function
I would like to be able to change the new record type based on the 'recordtype' string I pass in. So it would look something like obj.recordtype.NewRecord instead of hardcoding the record type everytime.
Here is what I currently have:
Function AddObject(recordtype)
....
....
obj.Contact.NewRecord 'Creates a new Contact Record
....
....
End Function
I would like to be able to change the new record type based on the 'recordtype' string I pass in. So it would look something like obj.recordtype.NewRecord instead of hardcoding the record type everytime.