Posts: 704
Threads: 118
Joined: Sep 2010
Reputation:
0
Is there any way to convert string to bool? Like string to int, string to float and ...
Posts: 73
Threads: 14
Joined: Dec 2010
Reputation:
0
What do you mean? These things are diffrent, bool can be true or false and strings are holding characters to make readable words.
Posts: 704
Threads: 118
Joined: Sep 2010
Reputation:
0
I have bool loading with y_ini:
if( ! strcmp( pavadinimas, "Parduodama", true ) ) MasinuDB[ masinosid ][ Parduodama ] = nustatymas;
Ofcourse I get an warning, because nustatymas is string.. And I need to convert it to bool ;S like strval, floatstr