` 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, 6:31 am
This article has been viewed/printed 35204 times.