C++ All-in-One For Dummies by John Paul Mueller

C++ All-in-One For Dummies by John Paul Mueller

Author:John Paul Mueller [Mueller, John Paul and Cogswell, Jeff]
Language: eng
Format: epub
ISBN: 9781118823798
Publisher: Wiley
Published: 2014-07-22T14:43:58+00:00


All these problems are easy to avoid. Here are some tips:

You must know how the names are stored in the database before you go looking for them. If they are stored in all caps, you shouldn’t require the user to enter them in all caps. Instead, accept words in any case and convert them to all uppercase.

You must know whether the names are stored with the first name separated from the last. Then allow any format. If the user types George Washington (no comma), you can split the string at the space and pull out the first name and last name. But if the user types the name with a comma between the first and last names, you can split it at the comma and extract the last name and then the first name.

Spaces should not be a problem. You can strip the spaces off a string after a user types it in.

Are middle initials required? Document things well. Your application should clearly tell the user whether to enter a middle name, a middle initial, or neither. If you are using text controls, don’t even include a middle name field if you don’t want a middle name. Or if you do, specify right on the window whether the user should type a middle initial or an entire middle name. If the entry is just an initial, you can remove a trailing period, or add it, depending on what’s stored in the database.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.