N
NachoShaw
Guest
Hey
I was trying not to ask but im not figuring this out properly. I am getting data from a data table. All of the data where all of the data is in string format. depending on the type of value, i need to convert the type as i loop through a dataset.
Data examples (there arent many)
the value comes into my function as a string like this (PropVal is the value)
Sub Test(ByRef PropName As String, ByRef PropVal As String)
So, Depending on the typical value as shown above, what would be a good way of converting PropVal based on the content of the String by either using CTYPE or any other method?
Thanks
Im a self taught VB.Net guy who writes code for Autodesk Inventor. I may not know the terminology but i try so please be patient. Im not a kid so please dont treat me like one
Continue reading...
I was trying not to ask but im not figuring this out properly. I am getting data from a data table. All of the data where all of the data is in string format. depending on the type of value, i need to convert the type as i loop through a dataset.
Data examples (there arent many)
- "LEFT HEAD" - (required as string type)
- "2019-11-16" - (required as date type)
- "FALSE" - (required as boolean type)
- 12.56 - (required as double type)
the value comes into my function as a string like this (PropVal is the value)
Sub Test(ByRef PropName As String, ByRef PropVal As String)
So, Depending on the typical value as shown above, what would be a good way of converting PropVal based on the content of the String by either using CTYPE or any other method?
Thanks
Im a self taught VB.Net guy who writes code for Autodesk Inventor. I may not know the terminology but i try so please be patient. Im not a kid so please dont treat me like one
Continue reading...