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