+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, Javascript Compare Values in Coding and Web Development; Hi All, Basically I need to compare two variables using the file name to ensure what file was sent out ...
  1. #1

    Join Date
    Jul 2010
    Posts
    25
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Javascript Compare Values

    Hi All,

    Basically I need to compare two variables using the file name to ensure what file was sent out is what was received back using JAVASCRIPT.

    var A - will have a file name such as 0000462 J&J MSD CONS PHARM 07 2010.xls

    var B - will be the same file name

    Windows automatically makes var B appear as 0000462 J&J MSD CONS PHARM 07 2010~1.xls

    Thus the comparison does not work. Any ideas would be much appreciated. I was looking at the contains method but cannot find anything. The file name above is just an example and the number of characters prior to the ".xls" will vary a lot.



    Thanks,

    T

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    It's difficult to suggest a solution without understanding the purpose. Why are you making this comparison, and why in Javascript?

  3. #3

    Join Date
    Jul 2010
    Posts
    25
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    We are using a BPM tool that only supports JAVASCRIPT or maybe VBSCRIPT. The reason for the comparison is that the file being sent out will be manipulated externally and once it has been returned, a user must attach the file to this BPM process. To negate the possibility of the user attaching the wrong file to the 'folder', this check is critical. Hope that helps.

SHARE:
+ Post New Thread

Similar Threads

  1. How to compare strings in Java
    By SimpleSi in forum Coding
    Replies: 29
    Last Post: 6th July 2010, 08:53 PM
  2. Compare Smoothwall with RM smart cache
    By nicholab in forum Internet Related/Filtering/Firewall
    Replies: 1
    Last Post: 13th January 2010, 05:20 PM
  3. [Video] Compare The Meerkat Babies
    By russdev in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 20th August 2009, 11:27 AM
  4. [Website] You CAN compare the meerkat... dot com!
    By WithoutMotive in forum Jokes/Interweb Things
    Replies: 11
    Last Post: 21st January 2009, 09:19 PM
  5. Compare Values Above, Equal and Below
    By TwyloII in forum How do you do....it?
    Replies: 7
    Last Post: 16th January 2009, 12:20 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •