Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have four textboxes where user can enter value either in <code>char</code> or in <code>hex</code> format. The value which user will enter is a delimiter value to export records into file.

But this can have two exceptions like <code>\n</code> and <code>\t</code> can also be inputed by user for export format.

Now the problem is how to determine that user has inputed value in hex or char format. So that I will convert into one standerd format and queue it for export.

Thanks
Posted
Updated 21-Sep-11 18:56pm
v2

1 solution

Just put a radio control on your form and make your user specify which he/she is entering.
 
Share this answer
 
Comments
sunder.tinwar 22-Sep-11 1:09am    
thats what i dont want to do? I dont want to change UI? what ever i have to do is from coding. Parse string and convert into a correct format? Any ideas regarding that?
Mehdi Gholam 22-Sep-11 1:25am    
How are you going to interpret "dd" or "12" or "feed" ?

You are just making your life difficult.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900