Skip to content

Instantly share code, notes, and snippets.

@nvg
Last active July 20, 2017 15:01
Show Gist options
  • Select an option

  • Save nvg/0edd53243a69be3f6bf71eaca1f62542 to your computer and use it in GitHub Desktop.

Select an option

Save nvg/0edd53243a69be3f6bf71eaca1f62542 to your computer and use it in GitHub Desktop.
peoplecode: record to string
Local number &z;
Local string &s = "";
For &z = 1 To &rec.FieldCount
&s = &s | " " | &rec.GetField(&z).Name;
try
&s = &s | "=" | &rec.GetField(&z).Value;
catch Exception &err
&s = &s | "=" | "[f%#k]";
end-try;
End-For;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment