Back

Display RPG source

Display the external HTML source

more on parsing in CGIDEV2




When parsing input from a table, more powerful parsing tools are required.

ZhbCountAllVars: returns the number of occurrences of all variables in the input string (ZhbGetInput must have been run before calling this subprocedure)

ZhbGetVarDetails: returns the following information on the user-specified nth input variable (out of those counted with ZhbCountAllVars): variable name, variable occurrence number, indicator (char 0/1) whether variable was found.

Here is an example of using ZhbCountAllVars and ZhbGetVarDetails to get details when parsing data from a table. Approve some orders, enter some comments and submit the form to see how procedure ZhbGetVarDetails parses out the data.

Order# Cust# Approve Comments
01650 99999
01651 1001
01652 29292
01653 10002
01654 12121
01659 55555555
01661 1212
01664 1212
01678 1212
01681 cusno1
01682 67676
01683 12345
01685 45534422
01691 121222
01692
01694 123456
01695 123456
01696 11111
01697 1111
01698
01699 8888
01700 12345
01701 WGV
01702 11111
01703
01704
01705 12345
01706 1