Can I use the "Like" operator in a SalesLogix statement??

Question:

I’m working on a “Manage Form” in SLX LAN v7.2.1.

 

And I’m trying to do an if-else statement using the LIKE operator but it’s not working I keep getting the following error: “Sub or Function not defined” and it’s saying the error is the If statement. Is there an equivalent of LIKE that I can use?

Sub cmbCompetitorChange(Sender)

If cmbCompetitorTier.Text Like “GC%” Then

Msgbox(“Information Saved”)

Else

Msgbox(“Start Again”)

End If

End Sub

 

Answer:

You can use InStr….see below

If InStr(cmbCompetitorTier.Text,”GC”)>0 Then

 

Msgbox(“Information Saved”)

 

Else

 

Msgbox(“Start Again”)

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!