J jotaele Member Licensed User Longtime User Dec 26, 2015 #1 Hi all: Is it posible to convert a STRING like "True" to boolean? Thanks
Steven Bacchioni Member Licensed User Longtime User Dec 26, 2015 #2 I use this Sub IntToBoolean(inInt As Int) As Boolean If inInt = 0 Then Return False Return True End Sub Sub BooleanToInt(inBoolean As Boolean) As Int If inBoolean = False Then Return 0 Return 1 End Sub Upvote 0
I use this Sub IntToBoolean(inInt As Int) As Boolean If inInt = 0 Then Return False Return True End Sub Sub BooleanToInt(inBoolean As Boolean) As Int If inBoolean = False Then Return 0 Return 1 End Sub
J jotaele Member Licensed User Longtime User Dec 26, 2015 #3 Thanks. Very simple functions that do the work. Nice. I was looking for a library to converting types, like strings to numbers, etc. Something like VB.NET CInt, CBool, ... Upvote 0
Thanks. Very simple functions that do the work. Nice. I was looking for a library to converting types, like strings to numbers, etc. Something like VB.NET CInt, CBool, ...
Steven Bacchioni Member Licensed User Longtime User Dec 26, 2015 #4 There are samples of those conversions available on the forum. Do a search for cint or string to int. Upvote 0
There are samples of those conversions available on the forum. Do a search for cint or string to int.