Hello,
I am coming back to VB after about 5 years of a break. I had gone off to learn PHP and forgot all of my VB in the process! I have been asked to design an application that will take a string of text separated by pipes like this: "String1|String2|String3|String4" from a device that serves ascii text via http and then make them variables so I can add them to a MySQL database (VB.net does talk with MySQL, right?) which will then be accessed by my PHP website I built. I already have the string of text in a string. The reason I want to do it with VB.net is because this would have to be run on a schedule every 5 minutes or so via Windows Scheduled Tasks or maybe even as a windows service.
So basically, I want to take "String1|String2|String3|String4" and make it Dim string1 As String, Dim string2 As String, Dim string3 As String, Dim string4 As String and then save it to the database via a query I haven't figured out yet If you have any knowledge on that, I would appreciate that too!
If this helps, the PHP equivalent to what I want to do would be something like explode($string, "|") list($string1, $string2, $string3, $string4)
Thanks!
Steve
I am coming back to VB after about 5 years of a break. I had gone off to learn PHP and forgot all of my VB in the process! I have been asked to design an application that will take a string of text separated by pipes like this: "String1|String2|String3|String4" from a device that serves ascii text via http and then make them variables so I can add them to a MySQL database (VB.net does talk with MySQL, right?) which will then be accessed by my PHP website I built. I already have the string of text in a string. The reason I want to do it with VB.net is because this would have to be run on a schedule every 5 minutes or so via Windows Scheduled Tasks or maybe even as a windows service.
So basically, I want to take "String1|String2|String3|String4" and make it Dim string1 As String, Dim string2 As String, Dim string3 As String, Dim string4 As String and then save it to the database via a query I haven't figured out yet If you have any knowledge on that, I would appreciate that too!
If this helps, the PHP equivalent to what I want to do would be something like explode($string, "|") list($string1, $string2, $string3, $string4)
Thanks!
Steve