fnCODE function

dynamic fnCODE(
  1. dynamic value
)

Expression function CODE(s): Parses the "code" portion of a formatted field. The Dart result differs from the Windows engine; see the manual, Appendix C.3.

Implementation

dynamic fnCODE(dynamic value) {
  final s = varToStr(value);
  final p = s.indexOf("=");
  if (p < 0) return '';
  return s.substring(p + 1);
}