I have a procedure that works fine in Pan6 but not in PanX. What I do is copy data from an email and have Pan clean up the data and populate some fields. In PanX I’m only getting the fields called “Paid” and “Date reserved” populated, all others are blank. What do I have wrong here?
Here is the procedure (the comments at the top show what the original clipboard data would look like):
/*
Example of collected data in clipboard
Total $20.00
Entry Details
NAME Albert Petz
EMAIL apiiautoparts@aim.com
PHONE (631) 872-3721
*/
local raw,prefix,wholename,prefix,first,m,last,suffix,addr,mail,phone,null,Total
Total=“”
raw=clipboard()
;strip unneeded spaces, labels, etc.
raw=replace(raw, " ", " ")
raw=replace(raw, " ", " ")
raw=replace(raw, "NAME ", “”)
raw=replace(raw, "EMAIL ", “”)
raw=replace(raw, "PHONE ", “”)
raw=replace(raw, “Total $”, “”)
raw=replace(raw, “Entry Details”, “”)
raw=replace(raw, “(”, “”)
raw=replace(raw, ") ", “-”)
raw=strip(raw)
SplitLines raw,“1”,Total,“2”,null,“1W”,wholename,“1l”,mail,“1”,phone
GetName wholename,prefix,first,m,last,suffix
; populate the fields in the record
First=first
Last=last
email=lower(mail)
Phone=phone
Paid=val(Total)
«Date reserved»=today()