You need to remove the return trolley, spaces, etc..

Hello

I am trying to build a string that is on a single line,

1,2,3,4,5,6,7,8,9

However, I end up with each number on a separate line.

1,

2,

3,

4,

5,

6,

7,

8,

9

My code looks like this:

var xxx = "";

for (var i = 1; i < = nNumWords; i ++) {}

global.srchVals [i] .name = "payer Mix."

global.srchVals [i] .blog = 0;

XXX = i;

If (I < nNumWords) {}

xxx = xxx + ",";

xxx = xxx.replace ("/ \s + / g," "") .trim ();

} else {}

xxx = xxx;

xxx = xxx.replace ("/ \s + / g," "") .trim ();

}

var PMItms = [xxx];

Console.println (xxx);

}

I tried to use the following line of code to remove spaces and carriage returns:

xxx = xxx.replace ("/ \s + / g," "") .trim ();

But it keeps giving me the following error message:

TypeError: xxx.replace(/\s+/g, "") .trim is not a function

Any help is appreciated.

Thank you

Linda

You are right.  It is a false problem.  I solve the problem this way:

var PMAddItms = "";
var PMLstItms = "";
for (var i = 1; i)<= nnumwords;="" i++)="">
global.srchVals [i] .name = "payer Mix."
global.srchVals [i] .blog = 0;

PMAddItms = i;
 
If (i< nnumwords)="">
PMLstItms = PMLstItms + PMAddItms + ",";
} else {}
PMLstItms = PMLstItms + PMAddItms;
}

 
}
var PMItms = [PMLstItms];

Now I get one line of numbers.

1,2,3,4,5,6,7,8,9

Thanks for your help.

Linda

Tags: Acrobat

Similar Questions

  • you need to remove the license from computer to move to another PC.

    you need to remove the license from computer to move to another PC.

    It is all the information that I have and you can get on the product. I don't know when and who has been sold, or whose key is. Asked me to pass the software of an older laptop to a new laptop.

    Good luck with that.  Without a legitimate serial number, you're stuck.

    Download the Pro or Standard of X, XI or Acrobat DC versions

    Nancy O.

  • You need to remove the XML tag... Having the same element

    Hello guys,.

    need help, im having trouble removing the tag < EVENT [elem = 6] >

    < EVENTS elem = "6" >

    < FROM_CODE / >

    < PROMO_ID / >

    < TO_CODE / >

    < TELCO_INFO >

    < CALLED_TO > 0063 < / CALLED_TO >

    < CALLING_FROM > 63937390517 < / CALLING_FROM >

    < / TELCO_INFO >

    < GSM_INFO >

    < Indicated / >

    < USAGE_TYPE > DATA < / USAGE_TYPE >

    < / GSM_INFO >

    < START_T > 20/11/2015 22:08 < / START_T >

    < END_T > 20/11/2015 22:08 < / END_T >

    < BAL_IMPACTS elem = "0" >

    < AMOUNT > 0.89 < / AMOUNT >

    < IMPACT_TYPE > 258 < / IMPACT_TYPE >

    < QUANTITY > 103229 < / QUANTITY >

    < RATE_TAG / >

    VAT < TAX_CODE > < / TAX_CODE >

    < / BAL_IMPACTS >

    < BAL_IMPACTS elem = "1" >

    < AMOUNT > 0.11 < / AMOUNT >

    < IMPACT_TYPE > 4 < / IMPACT_TYPE >

    < QUANTITY > 0.89 < / QUANTITY >

    < RATE_TAG / >

    VAT < TAX_CODE > < / TAX_CODE >

    < / BAL_IMPACTS >

    < elem TOTAL = "608" >

    < AMOUNT > 1 < / AMOUNT >

    < / TOTAL >

    < AMOUNT_GROSS > 1 < / AMOUNT_GROSS >

    < AMOUNT_TAXED > 0.89 < / AMOUNT_TAXED >

    < / EVENTS >

    < EVENTS elem = "6" >

    < SYS_DESCR > Cycle before expenses (rev): 549 DUAL-DEF < / SYS_DESCR >

    < BAL_IMPACTS elem = "0" >

    < QUANTITY > 1 < / QUANTITY >

    Plan < RATE_TAG > < / RATE_TAG >

    < AMOUNT > 490,18 < / AMOUNT >

    < IMPACT_TYPE > 1 < / IMPACT_TYPE >

    VAT < TAX_CODE > < / TAX_CODE >

    < / BAL_IMPACTS >

    < BAL_IMPACTS elem = "1" >

    < QUANTITY > 549 < / QUANTITY >

    Plan < RATE_TAG > < / RATE_TAG >

    < AMOUNT > - 490.18 < / AMOUNT >

    < IMPACT_TYPE > 32 < / IMPACT_TYPE >

    < TAX_CODE > VTSKY < / TAX_CODE >

    100% of < DISCOUNT_INFO > < / DISCOUNT_INFO >

    < / BAL_IMPACTS >

    < BAL_IMPACTS elem = "2" >

    < QUANTITY > 490,18 < / QUANTITY >

    Tax of < RATE_TAG > < / RATE_TAG >

    < AMOUNT > 58,82 < / AMOUNT >

    < IMPACT_TYPE > 4 < / IMPACT_TYPE >

    VAT < TAX_CODE > < / TAX_CODE >

    < / BAL_IMPACTS >

    < BAL_IMPACTS elem = "3" >

    < QUANTITY > - 490.18 < / QUANTITY >

    Tax of < RATE_TAG > < / RATE_TAG >

    < AMOUNT > - 58.82 < / AMOUNT >

    < IMPACT_TYPE > 4 < / IMPACT_TYPE >

    < TAX_CODE > VTSKY < / TAX_CODE >

    < / BAL_IMPACTS >

    < elem TOTAL = "608" >

    < AMOUNT > 0 < / AMOUNT >

    < / TOTAL >

    < CYCLE_START_T > 20/12/2015-00:00:00 < / CYCLE_START_T >

    < CYCLE_END_T > 20/01/2016 00:00:00 < / CYCLE_END_T >

    < START_T > 20/12/2015-00:00:00 < / START_T >

    < END_T > 20/12/2015-00:00:00 < / END_T >

    < AMOUNT_GROSS > 490,18 < / AMOUNT_GROSS >

    < AMOUNT_TAXED > 0 < / AMOUNT_TAXED >

    < / EVENTS >

    in my XML file, it apprear 2 < elem = 6 EVENTS > but you just have to remove the entire < elem = 6 EVENTS > with < SYS_DESC >.

    Thanks in advance.

    Your XML file is invalid because it is not an outside element.  In any case, after that...

    with Data (THE_XML) as)

    Select xmltype (')

    0063

    63937390517

    DATA

    20/11/2015-22:08

    20/11/2015-22:08

    0.89

    258

    103229

    VAT

    0.11

    4

    0.89

    VAT

    1

    1

    0.89

    Cycle advance costs (rev): DUAL-DEF 549

    1

    Plan

    490,18

    1

    VAT

    549

    Plan

    -490.18

    32

    VTSKY

    100% discount

    490,18

    Tax

    58,82

    4

    VAT

    -490.18

    Tax

    -58.82

    4

    VTSKY

    0

    20/12/2015-00:00:00

    20/01/2016 00:00:00

    20/12/2015-00:00:00

    20/12/2015-00:00:00

    490,18

    0

    ')

    of the double

    )

    Select deletexml (the_xml, "/ ROOT/EVENTS[@elem="6 "and SYS_DESCR]')

    from the data

    (As requested) RESULT

    0063

    63937390517

    DATA

    20/11/2015-22:08

    20/11/2015-22:08

    0.89

    258

    103229

    VAT

    0.11

    4

    0.89

    VAT

    1

    1

    0.89

  • Need to remove the spaces between each words

    Hi guys,.

    I need to remove the spaces between each word. I'm doing this because I want to compare a column with a value.

    For ex: named - description "Negotiate APR - current balance" should be replaced by "NegotiateAPR-currentbalance.

    All can help me out here to achieve. Your timely help is well appreciated.

    Thanks in advance.

    WITH t AS (SELECT '"Negotiate APR - current balance"' str FROM DUAL)
    SELECT REPLACE (str, ' ') str
      FROM t;
    

    gives: "NegotiateAPR-currentbalance.

    Is that what you want...? If this isn't the case, please give some examples.

    See you soon,.

    Manik.

  • PowerCLI Remove-NetworkAdapter questions - need to remove the single card

    I need to remove a single adapter via PowerCLI:

    "Get-NetworkAdapter - VM myvm" returns:

    Name Type NetworkName MacAddress WakeOnLan
    Activated
    ----                 ----       -----------  ----------         ---------
    Network adapter 1 e1000 VM Network 00:50:56:09:09:09 False
    Network adapter 2 e1000 VM Network 00:50:56:01:08:07 False

    I want to only remove the NIC 2, so I tried:

    "Remove-NetworkAdapter - networkadapter"Network adapter 2"which returns:

    Remove-NetworkAdapter: cannot bind parameter "NetworkAdapter". Could not be converted
    the value of 'Network adapter 2' to type 'System.String' to type 'VMware.VimAutoma '.
    tion.ViCore.Types.V1.VirtualDevice.NetworkAdapter ".
    On line: 1 char: 38
    + delete-NIC - NIC < < < < '2 network adapter.
    + CategoryInfo: InvalidArgument: (:)) [delete-NetworkAdapter], Pa)
    rameterBindingException
    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomat
    ion.ViCore.Cmdlets.Commands.RemoveNetworkAdapter

    So I tried:

    $network = get-networkadapter VM - myvm

    Remove-NIC - NIC $network

    Who wants to delete the two network adapters:

    Confirm
    Are you sure you want to perform this action?
    Operation 'Remove network adapter' target 'NIC 1,
    NIC 2 ".

    So I tried

    $network = get-networkadapter VM - myvm

    Remove-NetworkAdapter NetworkAdapter - $network.networkadapter [2]

    Which returns:

    Cannot perform indexing in a null table.
    At line: 1 char: 63
    + delete-networkadapter networkadapter - $network.networkadapter [< < < < 2]
    + CategoryInfo: InvalidOperation: (2:Int32)], RuntimeException
    + FullyQualifiedErrorId: NullArray

    So, what don't get me?  I need to remove the 2 network adapter only.

    Any help would be greatly appreciated.

    -stephen

    You can do

    Get-NetworkAdapter VM - myvm | where {$_.} Name - eq 'Network adapter 2'} | Remove-NIC

    Note that a table of PS starts indexing at 0.

    If your last attempt should be

    $network = get-networkadapter VM - myvm

    Remove-NetworkAdapter NetworkAdapter - $network.networkadapter [1]

  • Need to remove the old account from creating new a new Internet service provider. TB31.

    New VAC .the see my old address 'Reply', forward, & "write". -Usually very inconvenient. -You should be able to remove the old according to that ISP no longer exists.

    Do you need to delete the emails too?

    If you delete your account

    • Go to Edition-> properties, then select the account. Then click Action account at the left bottom of the active window and delete your account.

    If you remove the only shipping address, then delete the SMTP Protocol

    • Go to Edition-> properties and select the Server (SMTP) "outgoing" > choose one you need to remove.

    By default, you can't remove them, if you want to remove the default value, and then create new SMTP and make default and remove the old SMTP

  • I need to remove the uneeded files: Purenetworks and PCFix. But I get: not deletenmrsrc.dll: access denied make sure the disk is not full or write protected and that the file is not in use.

    Original title: remove unnecessary files

    I need to remove the uneeded files: Purenetworks and PCFix. But I get: not deletenmrsrc.dll: access denied make sure the disk is not full or write protected and that the file is not in use.

    Ditto for PCFIX.exe.

    How can I remove these and clean unnecessary files? Thank you.

    Hello

    1. how exactly you are trying to remove it?
    2 have you connected the administrator account?

    Step 1: Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. click on start and then click Run.

    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.

    4. When prompted, click on restart to restart the computer.

    Step 2: Take possession of these program at the following location folder, and then check the issue. C:\Program Files\ 

    Reference: How is ownership of a file or a folder in Windows XP

  • need to remove the old updates, how can I know which ones who?

    I have so many updates in my computer, I think they use a lot of space - I don't have "have a lot of memory left. I have updates dating back to 2002. If I can delete some, can you tell me where?

    Thank you very much!

    E-mail address is removed from the privacy *.

    You should not remove the update but you can delete the uninstall information.

    I'll assume you mean the hard drive space.  You can also use Disk Cleanup to help the removal of junk. You can uninstall old programs is no longer, you use or alternatively, get a bigger hard drive.

    As to your question about updates - see: http://taurarian.mvps.org/WU_XP/removing_old_windows_updates.htm

    Folders that have uninstall as part of the name (for example $NtUninstallKB282010$ who reside in C:\windows (hidden files) are window Hot difficulty updating folders/files) can be removed safely (providing ever, you wish to uninstall the updates). I recommend you leave these records for a period of at least one month to make sure that the update works correctly.

    These updates can be removed individually or together. To learn more about the update/s go on:
    http://support.Microsoft.com/kb/xxxxxx
    NB: XXXXXX = the actual number, not to mention the "Q" or "Ko."

    Once you have removed the uninstall folders/files, then go to control panel, add/remove programs. Select the title of the corresponding Windows fix on the folder/file of the patch you just deleted, and select Delete. You will get a Windows error. This is because you deleted the uninstall folder/files. Simply choose OK and the entry will be removed from the Add/Remove Programs list.

    Don't NOT delete the folder $ $hf_mig

    Cleaning after installation of SP2
    http://aumha.org/win5/a/sp2faq.php#after

    and/or

    XP SP3: Post Installation Cleanup
    http://aumha.NET/viewtopic.php?f=62&t=33827

    Please note this is only for Windows XP and is not on Vista or Windows 7

  • XP key wep changes for new router linksys after the connection. you need to reinstall the WEP every time you start from the top.

    XP key wep changes for new router linksys after the connection. you need to reinstall the WEP every time you start from the top.

    Hello

    Let us perform the steps below and check out them.

    a. click "Start," "Control Panel", then "Add or Remove Programs". In the box "Currently installed programs", find the name of your wireless router. Click on the name of the software, and then click 'remove '. Click 'Yes' when prompted to confirm.
    b. click "Start" then "run". Type "Services.msc" and click "OK". Select 'Wireless Zero Configuration'. Click on 'start '.
    c. click 'Action', 'properties '. In the drop-down menu "Startup Type", click on the arrow and select 'Automatic' to assign the commissioning of automatic Wireless Auto Configuration. Click on 'OK '.
    d. restart your computer.
    e. right click on "Wireless connections" icon Select "View available wireless connections." Click on "change the order of preferred networks. Select the name of your network, and then click "Properties". Erase the old key and enter a new. Click the checkbox next to "Automatically use that key." Click on 'OK '.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I need to remove the old version of windows easy transfer to install a new... How can I do this

    I recently got a new laptop and I need to transfer my files to my computer windows vista to windows 7, but I need to remove the transfer windows easy off vista to install the new Windows 7... How can I do this. its driving me crazy

    You cannot remove the Windows program like that... Windows 7 easy transfer to restore.

  • I need to remove the program files o to send to:

    original title:?

    I need to remove the program files o to send to:

    I need to remove the program files o to send to:

    You want to remove entries from the right-click send to menu?

    If so, click on the round of Windows (start), type shell: sendto and hit enter. To remove a shortcut, right-click and choose Remove.

  • account users: I need to remove the old user accounts

    I need to remove the old user accounts

    http://www.Vistax64.com/tutorials/93026-user-account-delete.html

    Read the tutorial above.

    http://www.tech-recipes.com/Rx/2054/vista_how_to_delete_user_account/

    And meanings, too.

    The information above should solve the problem for you.

    See you soon.

    Mick Murphy - Microsoft partner

  • Backup utility Windows 7 application ' are you sure you want to remove the most recent data from the backup file "even if I'm trying to remove the backup set is not the most recent.

    I'm trying to reduce the amount of space that my Windows 7 backup uses so I've come to the place in Windows 7 backup:
    Manage space > view backups...

    I am then presented a list of three backup sets:
    01/03/2012 to 01/04/2012
    12/07/2011 to 12/21/2011
    23/11/2011 to 30/11/2011

    I would like to remove the older two, leaving the most recent. However, this doesn't seem to work as expected. If I try to delete one of the two most recent ones (the first two in the list above) I get the following warning "Are you sure you want to delete this backup file.

    However, if I try to delete the last one in the list, I get a slightly different error "Are you sure you want to remove the most recent data of the file backup?"-sounds strange because it is clearly not the most recent backup according to the dates it's show.

    Of course, I can go ahead and ignore the warnings, but I fear that maybe there are some files in the last backup the value in the list that may not be right more recent set backs.

    In 2011, I thought this might be something wrong with the date formats vs US UK (I am in England so the above dates are in dd/mm/yyyy format and not in jj/mm/aaaa) - but now it's 2012 and I backup from 2012 and 2011 games and he always seems to think that the oldest backup of 2011 is the most recent.

    Any ideas? Can I delete the oldest backup sets (that is, the two that are from 2011) safely?

    Any help much appreciated - thank you.

    Simon

    Update: I checked on other PCs in the office and the situation is the same - is not only something strange on a PC.

  • I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    I have a text field. I need to remove the first 8 characters of the field, leaving the remaining characters. Help?

    Example:

    Text Example.JPG

    I need to remove these numbers PXXXXXX. Leaving the other characters.

    Thank you

    Bob

    A normal 'substring' is what you're looking for.

    For a formula of the column in the response criteria tab:

    SUBSTRING ("YourPresTable". "YourPresColumn" OF 9)

    To make the RPD and the workload of shipping off the coast to the database rather than forcing the work on the server of the OBI or presentation:

    Substring ("01 - Sample App Data (ORCL)" ".." ") "" "BISAMPLE '." " D10 product (dynamic table)". ("' Prod_Dsc ' 9)

  • Hi, I have 3 movies (860 MB 950 mb 1, 750 MB) I try to 4.7 Gb Cd in again that it alerts you need more than 7 GB of space! Please help me how I can do? Thank you

    Hi, I have 3 movies by (860 + 950 MB + 1, 750 MB) I try to 4.7 Gb Cd in again that it alerts you need more than 7 GB of space! Please help me how I can do? Thank you

    The files must be legal DVD or still to retranscode them. If so, it will use "automatic" (in which case it should adapt), or settings you have applied.

    Look at assets in the project Panel and columns for the status of transcoding DVDs and transcoding DVD setting. What did he say? Or better, post a screenshot.

    try to make 4.7 Gb Cd

    I assume you mean DVD.

Maybe you are looking for