>Hi,
>May I know the file skeleton that able to find these files using ADIR()?
>
>1. MYPREFIX-MYTOPIC.APP
>2. MYPREFIX{space}{space}-MYTOPIC.APP
>3. MYPREFIX-MYTOPIC2.APP
>4. MYPREFIX{space}{space}-MYTOPIC2.APP
>
>P/S: MYPREFIXaa-MYTOPIC.APP should not be returned.
>
>Thank you
Try this...
? ADIR(aa,MyPrefix + "-" + MyTopic + "?.app")
? ADIR(bb,MyPrefix + " -" + MyTopic + "?.app")
DIMENSION aa[ALEN(aa,1)+ALEN(bb,1),ALEN(aa,2)]
ACOPY(bb,aa,1,-1,(ALEN(aa)-ALEN(bb))+1)
RELEASE bb
Greg Reichert