ssteeves
asked on
Method Parameters. Enumeration?
This should be an easy one. I have a class method, and I want to limit a parameter to one of two values. Here's what I want:
Method TransferSpreadsheet(Transf erType x);
When a programmer tries to call the TransferSpreadsheet method, and they are prompted to enter the TransferType parameter, I want the only two choices to be "Import", or "Export".
Do I need an enumeration for this? Can someone walk me through the steps?
Thanks,
ssteeves
Method TransferSpreadsheet(Transf
When a programmer tries to call the TransferSpreadsheet method, and they are prompted to enter the TransferType parameter, I want the only two choices to be "Import", or "Export".
Do I need an enumeration for this? Can someone walk me through the steps?
Thanks,
ssteeves
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.