Jump to content

Bug: Comparing two string variables


frigschneck

Recommended Posts

When I try to compare two string variables var1 and var2, the builder changes the second variable to a constant string "var2", i.e. instead of

 

if var1 == var2 then

 

I get

 

if  Wherigo.NoCaseEquals(var1,"var2") then

 

Each time I change it in the source, it is changed back by the builder. As there is an implicit save before compiling, I see no chance to get what I want.

 

Any ideas or comments?

Link to comment

Perhaps the following?

 

if Wherigo.NoCaseEquals(var1,var2) then

 

Yes, I guess that's what it should be - however, and that's the bug I am reporting, if you construct this if-statement in the builder, selecting for both sides "variables", then the builder generates code where the rhs is converted to a constant string.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...