Hi I am recently out of school and a pretty big noob when it comes to all this C++ builder stuff.
Right now I made an Edit box which the user is suppose to enter either a 8,6,4 or 2 digit Hex value. I basically want to store this as an integer so I can use the value later.
So far I am taking the ansistring converting it to a cstring, checking the value and converting it to hex based on it's position in the string. It seems to work ok. What I want to know is there some spiffy way to do this since my way seems pretty boring, also how would I go about error checking this to make sure they only entered the proper # of digit or to make sure they did not enter an invalid character. I was thinking maybe have a pop-up box displaying error then wiping the contents of the edit box to have them re-enter the value.
Thanks for any help guys, I have a ton of other question I need answered such as graying out radioboxes if a certain box is not checked and a bunch of other stuff to get my UI to work well. Hopefully these can be answered in the future.
Right now I made an Edit box which the user is suppose to enter either a 8,6,4 or 2 digit Hex value. I basically want to store this as an integer so I can use the value later.
So far I am taking the ansistring converting it to a cstring, checking the value and converting it to hex based on it's position in the string. It seems to work ok. What I want to know is there some spiffy way to do this since my way seems pretty boring, also how would I go about error checking this to make sure they only entered the proper # of digit or to make sure they did not enter an invalid character. I was thinking maybe have a pop-up box displaying error then wiping the contents of the edit box to have them re-enter the value.
Thanks for any help guys, I have a ton of other question I need answered such as graying out radioboxes if a certain box is not checked and a bunch of other stuff to get my UI to work well. Hopefully these can be answered in the future.