Feb 11, 2012 #1 tshad Programmer Jul 15, 2004 386 US I am getting an error: Array creation must have array size or array initializer for my method: RunProcedure("sp_Accounts_GetAllRoles", new IDataParameter[], "Roles") How would I call the IDataParameter (which is an array? Thanks, Tom
I am getting an error: Array creation must have array size or array initializer for my method: RunProcedure("sp_Accounts_GetAllRoles", new IDataParameter[], "Roles") How would I call the IDataParameter (which is an array? Thanks, Tom
Feb 12, 2012 Thread starter #2 tshad Programmer Jul 15, 2004 386 US This was how the VB.Net code had it: RunProcedure("sp_Accounts_GetAllRoles", New IDataParameter() {}, "Roles") Thanks, Tom Upvote 0 Downvote
This was how the VB.Net code had it: RunProcedure("sp_Accounts_GetAllRoles", New IDataParameter() {}, "Roles") Thanks, Tom
Feb 12, 2012 Thread starter #3 tshad Programmer Jul 15, 2004 386 US I found it. It needed the {} just as the vb.net did and it needed "New" to be "new". Thanks, Tom Upvote 0 Downvote