Ankündigung

Einklappen
Keine Ankündigung bisher.

MATCHWILD !"§$%&/

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • MATCHWILD !"§$%&/

    Hi!

    anyone out there who can explain the matchw (matchwild) logic to me? For me it seems illogical!

    RTFM says:

    Software Customisation Manual 2.5.62: String Object

    MatchWild(STRING two)

    BOOLEAN

    TRUE if strings are the same.
    STRING two may contain
    wildcard characters:
    ·* for any number of
    characters
    ·? for any single character.

    If i try to do use this in a Macro:

    <code>
    !a = 'YOUR NAME'

    q var !a.matchw('*OUR*')

    </code>

    At least I expect due to the description a "TRUE".

    But it tells me:

    (2,779) Method <STRING>.MATCHW(<STRING>) not found

    Obviously I am doing something wrong... Help!

  • #2
    You should write whole name of method:
    PHP-Code:
    !'YOUR NAME'
    var !a.matchwild('*OUR*'
    <BOOLEAN> TRUE
    uTube https://www.youtube....H9a37hEKcuOPDLA
    Blog http://mehungry.uphero.com/

    Kommentar


    • #3
      MATCHW is only PML1 and not a method for the STRING Object

      Kommentar


      • #4
        Thanks, me_hungry, typo error as usal.

        Kommentar


        • #5
          Wasn't this supposed to be the German User Forum according to "AVEVAworldforum"?? (Just joking!!)

          Kommentar

          Lädt...
          X