Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Map columnMap(container fields, container mandatory = conNull())
- {
- int i;
- int n = conLen(fields);
- Map ret = new Map(Types::String, Types::Integer);
- for (i = 1; i <= n; i++)
- ret.insert(conPeek(fields,i), i);
- n = conLen(mandatory);
- for (i = 1; i <= n; i++)
- if (!ret.exists(conPeek(mandatory,i)))
- throw error(strFmt("@SYS26332", conPeek(mandatory,i)));
- return ret;
- }
- str getField(str name)
- {
- return conPeek(rec, map.lookup(name));
- }
Add Comment
Please, Sign In to add comment