We used to have this code to get all users from users table based on a criteria in ablecommerce Gold R7
Dim users As UserCollection = UserDataSource.Search(criteria)
Now we have upgraded to GoldR10 and the same code gives error "Type 'UserCollection' is not defined"
Is there any possible resolution or alternative to this issue ?
Thx,
Haroon.
UserCollection error in R10
Re: UserCollection error in R10
We no longer use strongly typed collection classes in Gold, instead of are making use of lists. You can correct your code like this
Also I recommend you to read this post viewtopic.php?f=47&t=17108 which provide details about some other common changes you might want to know if upgrading AC 7 codes to Gold standards.
Code: Select all
Dim users As IList<User> = UserDataSource.Search(criteria)