Ah, true, yes, that extra space will cause a problem. Here are two other options. One would be to completely remove the comma but leave the space:
vstring = "Cleveland, OH 44041".
vstring = REPLACE(vstring,",","").
Now each piece of information is separated by a space so you can do:
assign City = entry(1,vstring," ")
State = entry(2,vstring," ")
Zip = entry(3,vstring," ").
The other would be to use the spaces for State and Zip like this:
assign City = entry(1,vstring,",")
State = entry(1,ENTRY(2,vstring," ")," ")
zip = entry(3,vstring," ").
For State I changed vstring,"," to vstring," " and for Zip I told it to use the 3rd entry, not the 2nd.
Both ways work equally well. Which one to use? Personal preference. I would validate vstring before doing the assign to make sure the data is where I expect it. If it isn't (like there isn't a space after the comma), then I would output that string to an error log along with what the error was. Hopefully there would be very few errors, I could manually fix them, and reload them.
Rich