I have a question regarding strings and numbers... I'm reading in 2 lines of data from an Arduino board (these numbers are coming from an accelerometer...so that both numbers will change every time the Timer Component fires). This data is being printed in the out box of a VB.NET component... and in order for them to keep their formatting (meaning... each number will have their own index number in the Post-it Panel) the numbers are actually being read in as strings... If I change the print command in the VB.NET to something like: "Print(CInt(Val(StoredValue)))" then the strings are converted to doubles (so I can use them as numeric data in other components)... but it puts both numbers in one index item in the post it panel. So, instead of having two 3-digit number (each on their own line), I get one 6-digit number (in the example below, the post-it panel would just read 181130). In the image below, you can see it's reading both numbers in and keeping the formatting (each on their own index number)... I plan to just use a dispatch component to then split the list into two and isolate each number separately... but you can see the number parameter is red, because it thinks both numbers are strings. Is there any way to convert a string into a number?
Tags: