there was noting about a form in any thread here - or did i miss that ???
and where the info comes from is not a problem, as you're only using a string - and in javascript pretty much anything can be a string - so all code given here should be working regardless you're writing a form, reading datas from vb or from a text file or anything else
now i've got troubles understanding this : "the dash is in the vb program but on the PDF form it doesn't show up"
- the string you're reformatting is "xxxx" or "x-xxx" ???
- you've got a vb program, you'll send datas to a web page that is sending them to a pdf ???
- where do you want the string to be formatted : in the web page or in the pdf ?
------
please review FAQ183-874 - this will help you to get the best out of tt
[ "you" is not someone in particular - don't take it too personnal ]