Author Topic: wcmatch problem  (Read 1419 times)

0 Members and 1 Guest are viewing this topic.

hmspe

  • Bull Frog
  • Posts: 361
wcmatch problem
« on: October 16, 2008, 12:28:04 PM »
I'm probably missing something obvious.  I've used WCMATCH many times in the past, but today it's not cooperating.  I've added the following for debugging

Code: [Select]
(print i_type)         
(print (wcmatch i_type "S"))

I'm getting this returned

Code: [Select]
"SLL"
nil

This is in R2004.  I've worked around by using vl-string-position, but I'd like to know what I'm missing here. 

Martin
"Science is the belief in the ignorance of experts." - Richard Feynman

T.Willey

  • Needs a day job
  • Posts: 5251
Re: wcmatch problem
« Reply #1 on: October 16, 2008, 12:31:24 PM »
That is testing is the variable i_type = S.  If you want to know if it starts with S, then use

Code: [Select]
(print (wcmatch i_type "S*"))

Quote
Command: (wcmatch "S" "S")
T

Command: (wcmatch "SILL" "S")
nil

Command: (wcmatch "SILL" "S*")
T
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

hmspe

  • Bull Frog
  • Posts: 361
Re: wcmatch problem
« Reply #2 on: October 16, 2008, 01:27:44 PM »
Thanks.
"Science is the belief in the ignorance of experts." - Richard Feynman