` Printed Icetips Article

Icetips Article



Par2: Function to delimit strings for filters
2000-05-31 -- Alexey Solovjev
 
Declare a function as follows to produce quoted or normal
string depending from value type:

Quote  PROCEDURE (? V)  ! returns STRING type
  CODE
  IF  ISSTRING(V)
    RETURN '''' & CLIP(V) & ''''
  ELSE
    RETURN CLIP(V)
  END

and use it to build filter expressions.



Printed May 5, 2024, 2:38 am
This article has been viewed/printed 35118 times.