Expand my Community achievements bar.

Scott-Mc
Scott-Mc
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Most awesome.Hats off.

    Type

    Questions

    Views

    718

    Likes

    0

    Replies

    0
  • >>>Between the brackets should be an integer representing the index of the array.Zackly.So l1, l2, l3 etc are variables holding integers of the array indicies.I'd like the loop to use "i" to increment the variable names so that when the loop executes, these statements are formed:trip = distance [ l1...

    Type

    Questions

    Views

    717

    Likes

    0

    Replies

    0
  • It's choking on this:trip = distance [l + i] [l + (i + 1)]Any idea how to creat an expression which will result in this:trip = distance [ l1] [l2] // first time aroundtrip = distance [l2] [l3] //second time aroundtrip = distance [l3] [l4] //third time aroundetc.....Tried this:trip = distance ["l"+ i...

    Type

    Questions

    Views

    714

    Likes

    0

    Replies

    0
  • Thanks a mil.>>>Not sure what you're trying to do with:Don't worry about the last line; it's a mistake.But this:trip = distance [l(i)] [l(i + 1)];Is going to a two dimensional array to look up some distances. With my old script I used:trip1 = distance [from1] [to1];The new script may work too; I hav...

    Type

    Questions

    Views

    712

    Likes

    0

    Replies

    0
  • Hi All.Noob.Person1[Scott] needs a bit of syntax help.What's the correct way to handle the "l" and "f" variables in the loop below? It doesn't like the f(i) business.if (xfa.resolveNode("ExpenseClaim.Page2.DistanceRecord.TableKM.Row1["+rowNum+"]").Locations.Location1.rawValue != null{l1 = xfa.resolv...

    Type

    Questions

    Views

    1.9K

    Likes

    0

    Replies

    9
  • Yes, it was set to this. Funny thing, the script halts with a yellow arrow pointing at the "if" line of code, but no exception is reported.Oh well, it's working now. Now I need to move on to my next goal....making it work with multiple table rows.I see a bunch of "resolvenode" in my future....

    Type

    Questions

    Views

    556

    Likes

    0

    Replies

    0
  • Solved.You were right. The script chokes on the .length property for these objects. But if I snip it off and simply test the rawValue it's all good. Suits me fine.Thanks.

    Type

    Questions

    Views

    558

    Likes

    0

    Replies

    0
  • Helpful suggestions, thanks.I threw the script into a button and it still behaves the same way. However, when I open the document in Acrobat Pro (which actually has a debugger! Imagine!), the script halts (but doesn't throw an exception)  at the next unexectuted "if", so I think you might be onto so...

    Type

    Questions

    Views

    557

    Likes

    0

    Replies

    0
  • My noobish understanding is that "if" statements are excuted if a boolean true occurs, and if it doesn't occur the script continues after the closing curly bracket.The script below is from a numeric field and is fired by the calculate event, so it runs repeatedly. I'm wondering why the "hello world"...

    Type

    Questions

    Views

    1.4K

    Likes

    0

    Replies

    5
  • Here's  one method, but I'll be interested if there's a more elegant way.I provided an item made with a space character and this script:if (this.rawValue = " "){this.rawValue = null;}

    Type

    Questions

    Views

    325

    Likes

    0

    Replies

    0
Top badges earned by Scott-Mc
Customize the badges you want to showcase on your profile