MatchPattern() doesn't work ???

Report any Hollywood bugs here
Post Reply
gerograph
Posts: 39
Joined: Thu Mar 04, 2010 9:38 pm

MatchPattern() doesn't work ???

Post by gerograph »

MatchPattern("test.jpg","*jpg") gives me "True" on Amiga OS4 but on windows it gives me a "FALSE" ????

Try this one below:

Code: Select all

Function p_chktype(dateiname$)
  DebugPrint(dateiname$)
  dateityp = False
  r = MatchPattern(dateiname$,"*.jpg")
  If r = True 
    dateityp = True
  EndIf
  r = MatchPattern(dateiname$,"*.jpeg")
  If r = True
    dateityp = True
  EndIf
  Return(dateityp)
EndFunction


DebugPrint("---Start---")
If p_chktype("test.jpg")
  DebugPrint("match....")
Else
  DebugPrint("no match....")
EndIf
WaitLeftMouse  
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: MatchPattern() doesn't work ???

Post by airsoftsoftwair »

MatchPattern() is currently only supported on AmigaOS & compatibles. This is because Windows & Mac OS use different pattern mechanisms. I still have to work out a cross platform pattern matching mechanism...
Post Reply