in reply to Re: simpliest way to add "language" to my app
in thread simpliest way to add "language" to my app
Thanks these are helpful to look at.
I am currently using one big switch in a ParseCmd() fn,
which is easier for me as each "response" is short.
What is a mess is validating that each command has the
correct number of parameters before I call it. Come to think about it I guess each command fn could exit with an "invalid command" error if there are missing params...I see that your approach handles this much better that what I am doing...just pass an array for the "rest" of the params (if any)
Still a little wordy if I add 50 commands in the future...but simple!
thanks