Click here to Skip to main content
15,887,434 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionData string manipulation in VB 2010 Pin
Gus11312-May-16 0:26
Gus11312-May-16 0:26 
AnswerRe: Data string manipulation in VB 2010 Pin
Richard MacCutchan12-May-16 0:38
mveRichard MacCutchan12-May-16 0:38 
AnswerRe: Data string manipulation in VB 2010 Pin
Robert g Blair12-May-16 12:27
Robert g Blair12-May-16 12:27 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11313-May-16 2:19
Gus11313-May-16 2:19 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11318-May-16 4:15
Gus11318-May-16 4:15 
GeneralRe: Data string manipulation in VB 2010 Pin
Robert g Blair18-May-16 10:47
Robert g Blair18-May-16 10:47 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11318-May-16 19:52
Gus11318-May-16 19:52 
GeneralRe: Data string manipulation in VB 2010 Pin
Robert g Blair19-May-16 11:30
Robert g Blair19-May-16 11:30 
Gus:

Some comments on that code:

(a) It looks like it is working. You have defined an event handler for receiving data from the serial port. You "get the weight readings", so we know that event handler works.

(b) The "GetTareAndWeight" code tells me that the scale sends both Weight and Tare in the same string.
Something like "10.3, 2.0".
This must be working when you "get weight readings" - otherwise it would crash with an array error.

(c) After receiving a weight txtBox2 (a multiline textbox) should look something like this:

"10.3, 2.0"
"2"
"Tare: 2.0"

(d) If your code received a string containing Tare only, ie, "2.0", then it will crash in "GetTareAndWeight" on the line 'txtBox2.Text &= "Tare: " & strWeights(1).ToString'

Question for you Gus:

"gives an error when I press the Tare button on the indicator". What is the error?
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11319-May-16 22:41
Gus11319-May-16 22:41 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11319-May-16 23:33
Gus11319-May-16 23:33 
GeneralRe: Data string manipulation in VB 2010 Pin
Robert g Blair22-May-16 12:12
Robert g Blair22-May-16 12:12 
QuestionAdd unsubscribe link to header of the mail sent from outlook Pin
srikrishnathanthri11-May-16 20:15
srikrishnathanthri11-May-16 20:15 
AnswerRe: Add unsubscribe link to header of the mail sent from outlook Pin
Richard Deeming12-May-16 2:02
mveRichard Deeming12-May-16 2:02 
GeneralRe: Add unsubscribe link to header of the mail sent from outlook Pin
srikrishnathanthri12-May-16 2:38
srikrishnathanthri12-May-16 2:38 
GeneralRe: Add unsubscribe link to header of the mail sent from outlook Pin
Richard Deeming12-May-16 3:12
mveRichard Deeming12-May-16 3:12 
GeneralRe: Add unsubscribe link to header of the mail sent from outlook Pin
srikrishnathanthri12-May-16 3:23
srikrishnathanthri12-May-16 3:23 
QuestionSaving data with data-bound Form Controls Pin
Raabi Anony11-May-16 16:31
Raabi Anony11-May-16 16:31 
AnswerRe: Saving data with data-bound Form Controls Pin
Dave Kreskowiak12-May-16 1:15
mveDave Kreskowiak12-May-16 1:15 
GeneralRe: Saving data with data-bound Form Controls Pin
Raabi Anony12-May-16 16:48
Raabi Anony12-May-16 16:48 
QuestionThe ADO.NET provider with invariant name 'System.Data.SqlLite.EF6' is either not registered in the machine or application config file, Pin
jkirkerx10-May-16 14:16
professionaljkirkerx10-May-16 14:16 
Answer[100% Solved], How to get SQLite to work with vb.net and EF6 using the NuGet Package System.Data.SQLite (x86/x64) Pin
jkirkerx11-May-16 9:54
professionaljkirkerx11-May-16 9:54 
QuestionHow we can get last 12 months using current month using sql Pin
MANISHA SONAWANE9-May-16 20:39
MANISHA SONAWANE9-May-16 20:39 
AnswerRe: How we can get last 12 months using current month using sql Pin
Mycroft Holmes9-May-16 21:37
professionalMycroft Holmes9-May-16 21:37 
GeneralRe: How we can get last 12 months using current month using sql Pin
MANISHA SONAWANE10-May-16 0:02
MANISHA SONAWANE10-May-16 0:02 
GeneralRe: How we can get last 12 months using current month using sql Pin
Mycroft Holmes10-May-16 0:12
professionalMycroft Holmes10-May-16 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.