Jump to content
Sign in to follow this  
gazkin

If statement not matching

Recommended Posts

gazkin

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

Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
Share on other sites
gazkin

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

:)

Share this post


Link to post
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
Sign in to follow this  

×