Jump to content

If statement not matching


Recommended Posts

I am wondering what is going wrong in this piece of code

$melding = ClipGet()
if $melding = "There was an error registering your serial number. Please contact support." Then
MsgBox(4096,"Breitnerlaan ICT BV", "Serial klopt niet")
Endif

I have already checked that the error sentence is correct.

Please help

Edited by gazkin
Link to comment
Share on other sites

There may be hidden chars in the string, try this instead:

$melding = ClipGet()
if StringInStr($melding,"There was an error registering your serial number. Please contact support.")=0  Then
MsgBox(4096,"Breitnerlaan ICT BV", "Serial klopt niet")
Endif

muttley

Edited by monoceres

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

That did the trick mate muttley

Thnx

There may be hidden chars in the string, try this instead:

$melding = ClipGet()
if StringInStr($melding,"There was an error registering your serial number. Please contact support.")=0  Then
MsgBox(4096,"Breitnerlaan ICT BV", "Serial klopt niet")
Endif

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...