Jump to content

webtest

Members
  • Posts

    6
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://

Profile Information

  • Location
    Carllisle, PA USA
  • Interests
    Old Hacker

webtest's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Esteemed Forum Participants and Lurkers:===========================Adobe Acrobat 5.0: Forms & Controls programmingHelp a newbie! (Please!) Thanks to "aalbetski" for answering my previous "Trim" question.Now I need to add leading zeros to a string representation of a number. The function I am familiar with in Excel VBA is: "Format(aDateOrNum, "formatstring")Here's how I format a UPC from a number in VBA: myStrUPC = Format(myUPCNum,"0-00000-00000") It fills in the hyphens and leading zeros automatically.How can I do that in JS?
  2. Is there a RegEx section on this forum? Where is the best tutorial/forum for Regular Expressions coding?
  3. I knew it was going to come to this ... not only do I have to learn JS, but I also have to learn RegEx. Oh JOY!
  4. Ahhhhh ... I see from my Quickstart Guide that the RegEx "\s" is NOT just a space, but is "same as [\f\n\r\t\v]" (Formfeed, Newline Carriage Return, Tab, Vertical Tab).I can't find a code for just a Space ???
  5. Thank you "aalbetski", but it isn't just spaces ... "Trim" cuts off spaces, tabs, new-lines [chr(10)], etc. ... anything that isn't a printable character ... from both the front end and the back end of the string.That makes the function very valuable, but the replacement gets a lot more complex!
  6. Esteemed Forum Participants and Lurkers:===========================Adobe Acrobat 5.0 - Forms: Control Custom Validate ScriptI am an absolute newbie to JS, but am an otherwise fairly experienced old hacker in many languages. I have tested in MS VBA (Visual Basic for Applications - Excel) a function to validate user entered UPC codes in an Excel Cell. I'm attempting to move this into an Adobe Acrobat Form to validate the entry in a control. I have converted quite a bit of the code, thanks to the w3schools site, but here is my first dead end ...VBA:'Remove all whitespace from beginning and end of a string' leaves string with first and last characters as printable charactersmyString = Trim(myString)JS ... ???My sincere appreciation for helping me get started. Thank you for any and all comments, suggestions, and assistance in this effort.Blessings in abundance, all the best, and ENJOY!Art . . . Carlisle, PA . . . USA
×
×
  • Create New...