` 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 November 21, 2024, 11:58 am
This article has been viewed/printed 35205 times.