Reputation: 300 Architect
- Active Posts:
- 1,781 (0.89 per day)
- 26-March 09
- Profile Views:
- Last Active:
- Today, 04:26 AM
- OS Preference:
- Who Cares
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Who Cares
- Dream Kudos:
- Expert In:
Posts I've Made
Posted 16 Sep 2014This looks like VB.Net code, not VB6.
Couple of things to look at (bearing in mind I'm not upto speed with serial comms in VB.Net).
You've put the code in the TextBox changed event? Maybe you have something else going on, but I wouldn't expect that code to run until you entered something into the textbox.
Have you determined that your Arduino is actually sending out data? Have you connected it to HyperTerm or similar and seen the data coming in? Is your protocol set correctly (bits, parity, etc.) again, using HyperTerm to receive will determine the correct settings?
Would be good practice to determine that the port is getting opened, not just assuming it's open.
Posted 15 Sep 2014The problem is in your Do-While loop.
You're summing up what's in the text box and not what's in the list.
Also, check the order you do things. You seem to sum them, then add the new values to the list. Just a pointer, as I'm not sure exactly how you want your program to work.
Posted 15 Sep 2014If the part you want is always at the beginning and is always 3 chars long, you could use the LEFT$ function.
' Returns the left most 3 chars strMyVar = Left$(strTempString, 3)
If not, you could always use the SPLIT function, using the " - " as the separator.
dim astrData() as string 'Split the data using the delimeter " - " astrData = split (strTempString," - ") 'What you want will be in the first element of the array - The full name will be in the second element in case you need it. strMyVar = astrData(0)
Posted 2 Sep 2014The link posted by astonecipher provides a well explained tutorial by PsychoCoder on creating a basic calculator.
If there are particular parts that you don't understand, then you need to tell the part you don't understand and why you don't understand it, then someone can try to explain in more detail.
There needs to be a little effort on your part, in helping you move forward.
Posted 1 Sep 2014Welcome to the forum....Couple of pointers
1. You need to post your code using code tags....no-one (or very few) will download an attachment to look at. People will need to see the code to assist you.
2. VS2013 is VB.Net, so you're actually in the wrong forum.
3. People on the forum are volunteers and do this in their own time. You'll have to be more patient when waiting for a reply. Bumping a post less than two hours after posting the initial one, isn't likely to get it looked at any quicker, if anything, it may even get overlooked.
If you could add the code, a mod will move it to the correct forum.
- Member Title:
- D.I.C Lover
- 43 years old
- June 12, 1971
- Programming Languages:
- C#, VB
- Website URL: