SPONSORS:






User Tag List

Results 1 to 4 of 4

Thread: MatchStr()

  1. #1
    Member
    Join Date
    Sep 2002
    Location
    Garden Grove, CA, USA
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MatchStr()

    MatchStr("javascript","javascriptTTTT")

    Why this function always return FALSE.

    it suppose to return TRUE right?

    Thanks,

    ------------------

  2. #2
    Member
    Join Date
    Sep 2002
    Location
    Chicago, Illinois, USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MatchStr()

    No. You need to use:
    MatchStr("*javascript*","javascriptTTTT").

    ST Help will give you the info you need.

    ------------------

  3. #3
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MatchStr()

    I think there is a bug with this. Try putting asterisk before and after your string, like this...MatchStr("*javascript*","javascriptTTTT"). It should now work.

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MatchStr()

    Perhaps try:

    integer iPos = StrPos("javascript", "javascriptTTTT")

    if iPos > 0
    Print("Yo! Babeeeeey! We found it!)

    else
    LogError("Bummer dude. It's not there.")

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:42 PM.

Copyright BetaSoft Inc.