AW: [Hbasic-userinfo] IF - String
Status: Beta
Brought to you by:
mengels
From: Engels, M. <Mar...@SP...> - 2004-01-08 09:47:32
|
Hello Danilo, your program is correct. The problem was that I haven't yet implemented = the comparison operators for strings. I have appended a new version of the = file runtime_lib/rt_operations.cpp which handles this functions in the interpreter. Replace the old file rt_operations with this new one, = start "make" and "make install" again and restart your program. I think this = new version should solve the problem. Otherwise this will be in the next = version of HBasic. Marcus -----Urspr=FCngliche Nachricht----- Von: Danilo Aguiar Prevides [mailto:da...@do...] Gesendet: Mittwoch, 7. Januar 2004 14:07 An: hba...@li... Betreff: [Hbasic-userinfo] IF - String I have a program, with the code: sub button1_clicked() if lineedit1.text =3D "OI" then =A0=A0=A0=A0=A0=A0=A0=A0print "OIII" end if end sub When I try to run this program, it returns with the problem: Operator not allowed for this type of values. In the documentation it says that I just can use integers with IF, =A0How can I make a verification with strings ? Thanks and Sorry by poor english, I'm from Brasil . ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dclick _______________________________________________ Hbasic-userinfo mailing list Hba...@li... https://lists.sourceforge.net/lists/listinfo/hbasic-userinfo |