` Printed Icetips Article

Icetips Article



Par2: Converting string to ASCII using Evaluate
2001-02-06 -- Kurt Pawlikowski
 
Apparently, Evaluate doesn't like variables passed to it
directly. This code worked properly:

  DrawerOpenCode = PassedCode
  bind('draweropencode',draweropencode)
  if errorcode()
    stop('Bind errorcode:' & Errorcode() & ': ' & error())
  .
  x" = evaluate('draweropencode')
  if errorcode()
    stop('Evaluate errorcode:' & Errorcode() & ': ' & error())
  .
  message(len(clip(x")) & '=' & clip(x"))
  message(draweropencode)
  unbind('draweropencode')

... Note DrawerOpenCode is in single quotes.



Printed May 11, 2024, 2:00 am
This article has been viewed/printed 35117 times.