Hello VB experts..
I'm developing a program in VB that should count votes of candidates sent thru SMS or text messages. The program is designed to automatically add votes of candidates taken from several areas. Candidates are assigned a unique SMS code followed by the votes garnered from a particular area.
The format of the SMS is:
AREACODE, POSITION+CANDIDATECODE1+VOTES, POSITION+CANDIDATECODE2+VOTES, POSITION+CANDIDATECODE3+VOTES (example of an SMS Message: 0001a, gova1234, govb345, govc456)
:where on Area 0001a candidate for Governor "A" got 1,234 votes, candidate for Governor "B" got 345 votes and candidate for Governor "C" got 456 votes. Votes from different areas will be summarized to give a total result.
However, I am having a problem extracting the numeric value (votes) from the string and assigning it to the designated candidate. I have tried several functions but just could not get the expected output. Is there a VB function for this?
Please help me. Thanks
I'm developing a program in VB that should count votes of candidates sent thru SMS or text messages. The program is designed to automatically add votes of candidates taken from several areas. Candidates are assigned a unique SMS code followed by the votes garnered from a particular area.
The format of the SMS is:
AREACODE, POSITION+CANDIDATECODE1+VOTES, POSITION+CANDIDATECODE2+VOTES, POSITION+CANDIDATECODE3+VOTES (example of an SMS Message: 0001a, gova1234, govb345, govc456)
:where on Area 0001a candidate for Governor "A" got 1,234 votes, candidate for Governor "B" got 345 votes and candidate for Governor "C" got 456 votes. Votes from different areas will be summarized to give a total result.
However, I am having a problem extracting the numeric value (votes) from the string and assigning it to the designated candidate. I have tried several functions but just could not get the expected output. Is there a VB function for this?
Please help me. Thanks