Combining Number In A String
Posted on 2003-03-19
I am using a DTMF receiver connected to my parallel port to receive the tones generated by the phone. So far, when i press 1 on the phone, a 1 appears in the text box (txtNumIn). The same for 2-0.
What i would like to do is as i press the numbers 555-1212, i would like all the numbers to appear in the text box. What is happening now is 5 appears, then 5 then 5 the 2, 2, 2 and 2. I do not want the single numbers, i want all 7 to be grouped together and when the total numbers in the string reach 7 digits, for the string to stop accepting numbers and output the number to a .dat file.
Group the dialed numbers in a string (show the digits being dialed in a text box) and when the total digits reah 7, export the data to a .dat file. I need the 7 numbers to be shown in the same text box together (555-1212) and not just 5, just 2, just 2 .......