What are the datatypes for the client variable and the
getmenusecurity.securitycode variables? Is the client variable a structure?

Just FYI, all of the pound signs in the sample code are not required, and
usually the best practice is not to use pound signs unless it's an expression.