[PS] Multiple array´s split and merge

Is it possible to: when you have 3 array's split the value's after the comma and then from each array merge every 1st value with 1st, 2 with 2 and so on.
I know you can use split to split up an array, but i have no clue how to merge it like i want.
example:
array 1 :
1,7,5,0,9,1
array 2 :
dog,cow,cat,horse,man,girl
array 3 :
short,big,little,huge,long,small
output 1 :
1 dog short
output 2 :
7 cow big
output 3 :
5 cat little
or even better is that it gonna be variable
$array1 :
 1,7,5,0,9,1
$array2 :
 dog,cow,cat,horse,man,girl
$array3 :
 short,big,little,huge,long,small
output 1 :  $array1 $array2 $array3
output 1 :
 1 dog short
output 2 :  $array1 $array2 $array3
output 2 :
 7 cow big
output 3 :  $array1 $array2 $array3
output 3 :
 5 cat little
Sincerely,
Jeroen 

hi Jeroen,
sure you can do that. Simply iterate over each index of the arrays:
$int = 0
While ($int -lt $array1.Length)
($array1[$int] + " " + $array2[$int] + " " + $array3[$int])
$int++
Cheers,
Fred
There's no place like 127.0.0.1

Similar Messages

  • BPM Split and Merge

    Hi...
       I want to do scenario like file split and merge using BPM.
    for that i have used,
    1.Receive
    2.Transformation(1:N)
    3.Block(ForEach)
    4.Control
    5.EndBlock
    6.Transformation(N:1)
    7.Send.
    while executing the scenario, the message is going to the queue. In that it is showing the status as "Running".
    can you please tell if i did wrong in my scenario?

    > 1.Receive
    > 2.Transformation(1:N)
    > 3.Block(ForEach)
    > 4.Control
    > 5.EndBlock
    > 6.Transformation(N:1)
    > 7.Send.
    U are using an empty infinite block and hence it is in running state always. You dont need a block at all. after 1:n transformation, use the n:1 transformation and send. I know you must be doing a sample scenario. In reality you will have a send step usually for sending to another system line by line. That when you will need a block.
    VJ

  • Split and Merge Paragraphs

    When I split and merge a paragraph a line break is inserted.  Does anyone know a way around this. (Simply deleting the last character seems inelegant and, more importantly, prone to failure).  Here's the code:
    var textFlow:TextFlow = TextConverter.importToFlow(
                        "Hello World",
                        TextConverter.PLAIN_TEXT_FORMAT);
    textFlow.interactionManager = new EditManager();
    var textFlow2:TextFlow = textFlow.splitAtPosition(5) as TextFlow;
    textFlow2.interactionManager = new EditManager();
    textFlow.mxmlChildren = textFlow.mxmlChildren.concat(textFlow2.mxmlChildren);
    trace(textFlow.getText()); // returns "Hello\n World"
    - Daniel Freiman

    If you are asking how to split and merge a paragraph this works.
                var textFlow:TextFlow = TextConverter.importToFlow("Hello World",TextConverter.PLAIN_TEXT_FORMAT);
                // find the paragraph
                var para:ParagraphElement = textFlow.findLeaf(5).getParagraph();    // same as textFlow.getChildAt(0)
                // split paragraph at position five
                var newPara:ParagraphElement = para.splitAtPosition(5) as ParagraphElement;
                trace(textFlow.getText());
                // now the merge
                // remove newPara its being discarded
                newPara.parent.removeChild(newPara);
                // move the children
                while(newPara.numChildren)
                    para.addChild(newPara.getChildAt(0));
                trace(textFlow.getText());
    This is using pure model level calls.  In your original code you added an EditManager- it can be done that way too.  TLF is layered - the EditManager manipulates the model with model level calls.  It provides APIs connected to events that create operations do to that.
    Hope that helps,
    Richard

  • Split and merge frames.

    Hello everyone. Simple question.
    When i want to make rectangle path  with many rows and columns i use arrows on keyboard. (like this video  http://www.youtube.com/watch?v=5Gjhpk8Vmo0 )  But, how can i split and then merge created frame yet? Certainly i can at once to create one frame with many columns and rows, but recently i has needed create frame with 2 rows and 3 columns, and middle columns had to be connected. I didn't know  how do that!
    Thanks! )

    Once you have created a gridified frame, then using the Gap Tool, hold down Command or Ctl key while adjusting size of frame or gap individually. Make an adjustment where the two desired frames overlap, not just against each other. Then use the direct selection tool to select overlapped frames. Then use Object > Pathfinder > Add to merge two frames. This new frame will still be live within the gridified group.

  • Can iMovie split and merge audio/video?

    Hi, I'm wondering if someone could help me in my decision of video-editing software. I'm considering buying iMovie 11 but I want to know first if it does a few things.
    Does it let you split, move, merge, trim, fade, copy/paste, and edit the volume of audio (as opposed to iMovie 08's ability to only move, trim, and fade)?
    Does it let you do the same things, but with video clips?
    Also,
    Does it let you export to HD (either 720p or 1028p)?
    Do transitions cause the video to lose quality (like they do in iMovie HD)?
    Thanks! Any sort of advice on any of these things would be VERY appreciated.

    Once you have created a gridified frame, then using the Gap Tool, hold down Command or Ctl key while adjusting size of frame or gap individually. Make an adjustment where the two desired frames overlap, not just against each other. Then use the direct selection tool to select overlapped frames. Then use Object > Pathfinder > Add to merge two frames. This new frame will still be live within the gridified group.

  • Splitting and merging columns in a table?

    Hi I have asked this question before. Does any one know how to split a column into two in a table. Know this can be done in a Word Doc. I know the merge works but can't seem to find the split.

    The merge is simple if you do not think about it as in word:))
    The merge can be done using scripting: just concatenate the values of the fields into one variable, fill in the value to the first column, change its width (to the width of the previous 4 cols) and hide te remaining/ blank cols.
    Have fun, Otto

  • Split and Merge pages of a PDF in an Outlook VB Macro

    Hello,
    I was tasked with pushing PDF attachments to our image system using a VB Macro from Outlook.  Easy enough to do by itself but there is an additional requirement to direct certain pages of the attachment to one folio in the image system and other pages to a different folio.  In the event the user doesn't separate these different documents when they submit them, our home office users must select which pages go to which area.
    I have Adobe 9.0 Pro Extended installed but the users only have Reader.
    I think the best way to approach this is to have the document opened for viewing and select pages via some control (chkbox?) to save in to a separate document.  So, if pages 1, 8, 22-24 were selected, create a new pdf in the image queue with those pages only.  Maybe this isn't possible with users that only have Reader installed, in which case another method could be suggested? 
    If I can just get a general idea on how to accomplish this, what libraries to reference and a snippet or two of code, I can probably put the rest together.  Can anyone out there help me out with a direction to head?
    Thanks!

    If it is only for split&merge you can use a freeware tool from a long list which can do it, like PDFTK, .....
    HTH, Reinhard

  • In the New Photos, why can't I split and merge events?

    I performed and Update to my computer, and that has changed the entire user interface dynamic within the photos program. I want to be able to merge and split events at will like I used to, or at least have a similar process that does not require "open, copy, copy to, open again, erase" type processes. I dislike making copies when all I want to do is group photos together without having to make another folder and delete them from the previous...items get deleted with no intent on a system like this.

    Events don't exist in the application, that's why you can't. Now the primary organisational tool is the Moment, and they are inflexible. Either use Albums or, frankly, if that's a deal breaker for you, another app.
    http://www.apple.com/feedback/macosx.html is the place for feature requests and feedback

  • Splitting and Merging Clips

    Hi,
    I have some older edited video that I want to split into separate events by shooting subject. I know how to split the clips into separate events, but my problem is that imovie has imported the video into clips that combine subjects. Is there a way to split a clip within an event? Thanks!

    Bill has assumed you mean a physical splitting of the clip and if that is what you are after then he has given you the answer.
    But you might also consider virtual splitting within a project.
    In the Project Media panel you can create one or more project folders using the Folder icon:
    You can then take your 35 minute clip and create duplicates of it in your new folder(s). NB: These are not physical duplicates, only the original 35 minute clip is on your hard disk. So you don't have to worry how many duplicates you make, they do  not take up extra hard disk space.
    Having done this you can then rename the duplicates (in my example part 1, part 2, part 3). But the clever bit, that allows you to treat each of those duplicates as a separate clip, is that you can then set unique In/Out points for each duplicate. In the screen shot following you can see the In/Out point for 'part1'. In the Media panel you can see that part_1 is 13 frames long while part_2 is 1 second & 14 frames long.
    You can add these alternate versions to the timeline and apply different effects and transitions to each part.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Adobe Acrobat, Print multiple files to PDF and merge open files to closed files?

    I have Adobe Acrobat XI Professional.
    Print to PDF – How can this be done for more than 15 documents at a time?  Right now, if I select 16 or more documents, I cannot ‘right click’ and choose ‘print’.  Is this a setting issue?  If I have many documents I need to print to PDF at once, it would be helpful if there wasn’t this limitation.  Background: This needs to be done to PDF files created from Adobe Live Cycle (and possibly from other software) because the files cannot be merged unless they are ‘printed to PDF’ first.  I don't know an alternate way to merge these files.
    Also, if I have a multi-page PDF open and I need to parse out the pages to different files, is it possible to drag the selected pages out of the open PDF and hover over a closed PDF and have them added to the end of the closed PDF document?  I don't know of a way to do this, but I thought I would check to see if anyone else was aware of a simpler way to parse pages from one document into several pre-existing documents without opening each and dragging the files between them.
    Thanks!

    Thank you for your response...I can do the additional step to combine them, the problem that I have is that the documents need to be in chronological order.  If I print them to the pdf printer or export them, either way, windows sorts them and they are no longer chronological.  While I can organize them when I combine them there are many times that there way too many that need combined into one pdf, making it a very inefficient and cumbersome process to do.  So I was in hopes there was a way to just have the pdf printer create one file instead of one for each document, it would keep them in chronological order.  I suppose I could number them on the print to keep them chronological - but when there are 75 or 100 documents it is a bit of a pain to sit there and respond to each document as it is being printed, and then need to do the additional step of combining.  My goal in this process is to gain efficiency so thought I would see if anyone knew how to use the pdf printer to create the single file.

  • Mavericks Time Machine Server - multiple client backups disappear and merge

    Hi there,
    In our environment, which is shop environment where many computers are worked on, we use a Mac Pro with roughly 5TB disk space running Mavericks server. Essentially, we rename the computers to be worked on (in the Sharing pane of System preferences), then use Time Machine to connect and backup using a Sharing Only account that exists on the server. The TM backups are verified using Migration Assistant by opening MA and making sure the option to restore is present, without the 'No Backup Volumes found' message, common with TM backups on the network. All OS's are backing up to our server, the oldest being 10.6 and the newest likely being 10.10 now.
    Recently, we have noticed some backups seemingly disappear from the server. Just this morning, I looked at a VERY large sparesbundle and got curious.
    Upon launching Migration Assistant and opening that very large sparsebundle, I was able to find all the backups that 'dissappeared'. This is very concerning, as all of these backups were verified using MA immediately after having been created.  Migration Assistant is quit, the system shut down, and the computer's work proceeds.
    A few bits of information:
    -Computers sometimes come in to our shop (Apple Authorized) not being able to boot, so their storage volume is booted either via target mode or plugged in to another known good mac via a RocketStor Thunderbolt Dock, or simply directly in to another Mac
    -if a computer boots it is backed up natively using it's own OS
    -All of this takes place using AFP connections, and over an enterprise network, but devices are all plugged in to the same switch (at this point).
    There seems to be no rhyme or reason to the disappearance of the backups, and they are very frustrating to attempt to locate when they 'go missing', especially since these backups are only looked for when a HDD is wiped and data is needed....
    Any help is appreciated! As stated earlier, we are an Apple warranty authorized shop in a collegiate environment. Thanks all!
    Best,
    Chris
    Message was edited by: cmburkhalter
    Updated to make it slightly more clear

    Linc Davis wrote:
    I have indexing turned off for all my drives
    I suggest you turn it back on, at least on the ones you want to back up.
    Is this necessary? It seems to do half the backup without it. If I remember correctly I have indexing turned off not only because I don't use it but also because it was hanging up/using a lot of CPU... If I absolutely must I will turn the indexing back on and wait for it to do its dirty business, but I'm a bit reticent in trading my problem for one that I don't really have an interest in solving.

  • Selecting multiple layers and merge

    is it possible to select multiple layers (with layermask) and merge them?
    tell application "Adobe Photoshop CS6"
        tell current document
            set current layer to every layer of layer set "bloem 1-9" of layer set "Bloem"
            tell current layer
                merge
            end tell
        end tell
    end tell

    Yes, for that you have to select the layers that are in the set. Here is one way using javascript
    function selectLayerBelow( add ){
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Bckw" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        if(add!=undefined && add = true )desc.putEnumerated( stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelectionContinuous') );
        desc.putBoolean( charIDToTypeID( "MkVs" ), false );
        executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
    // assumes a layerSet the the activeLayer and doesn't work correctly if there are nested layerSets
    var numberOfLayersInSet = app.activeDocument.activeLayer.layers.length;
    selectLayerBelow();
    for(var layerIndex = 1;layerIndex<numberOfLayersInSet;layerIndex++){
        selectLayerBelow( true );
    app.activeDocument.activeLayer.merge();

  • Splitting and Concatenating a 1-D Array

    Hello,
    I have a 1-D array of numbers and I am trying to split the 1-D array and then contanenate into a new 1-D array. 
    I am taking three sets of data from the original 1-D array and then forming the new concatenated array with what should be a space in between.
    What I am finding is that the final concatenated 1-D array is empty.
    Also I think I am using the incorrect spacer between the three data sets. I'm usinga 1-D array of noughts and really what I what I want is to create 1 column of noughts.
    The .vi is attached.
    Thanks for helping.
    Attachments:
    Wavelength Split.vi ‏19 KB

    Thanks, your right. It can concatanate inputs. And yes, I should read the descriptions!!!
    So what I have now is the three data sets concatanated but there is no space between them.
    I have tried to make a zero data point as you can see from the .vi but non appears beacause it is an empty number.
    I've tried to pull a zero onto the constant but it reverts back to shaded meaning it cannot be entered. Is there a way around this?
    Addendum. Thinking is too complicated. I just used a zero numeric constant and that has solved it!!!
    Attachments:
    Wavelength Split.vi ‏19 KB

  • StringTokenizer vs. split and empty strings -- some clarification please?

    Hi everybody,
    I posted a question that was sort of similar to this once, asking if it was best to convert any StringTokenizers to calls to split when parsing strings, but this one is a little different. I rarely use split, because if there are consecutive delimiters, it gives empty strings in the array it returns, which I don't want. On the other hand, I know StringTokenizer is slower, but it doesn't give empty strings with consecutive delimiters. I would use split much more often if there was a way to use it and not have to check every array element to make sure it isn't the empty string. I think I may have misunderstood the javadoc to some extent--could anyone explain to me why split causes empty strings and StringTokenizer doesn't?
    Thanks,
    Jezzica85

    Because they are different?
    Tokenizers are designed to return tokens, whereas split is simply splitting the String up into bits. They have different purposes
    and uses to be honest. I believe the results of previous discussions of this have indicated that Tokenizers are slightly (very
    slightly and not really meaningfully) faster and tokenizers do have the option of return delimiters as well which can be useful
    and is a functionality not present in just a straight split.
    However. split and regex in general are newer additions to the Java platform and they do have some advantages. The most
    obvious being that you cannot use a tokenizer to split up values where the delimiter is multiple characters and you can with
    split.
    So in general the advice given to you was good, because split gives you more flexibility down the road. If you don't want
    the empty strings then yes just read them and throw them away.
    Edited by: cotton.m on Mar 6, 2008 7:34 AM
    goddamned stupid forum formatting

  • Describe delivery split and shipment split

    i have a sales order, with multiple line items
    i want to create multiple deliveries form that sales order(is this process called delivery split? )
    can u tell me the process
    now can these individual deliveries split or merged to create shipment,
    whats the process?

    Hi Sudheep,
    Shipment document
    The shipping document is the central element of transportation planning and shipment completion. It contains all the
    information necessary for carrying out transportation.
    You create shipment documents using a worklist. Different types of shipment documents have been defined to enable you to reflect in the system the various forms of transportation used in your organization.
    For example, you use the individual shipment document to plan and process the transportation of goods from one location to another. You use the collective shipment to move goods from one or more points of departure to one or more destinations. Separate document types deal with inbound and outbound shipments.
    You can use shipment documents to:
    Combine deliveries into one inbound or outbound shipment
    Specify shipment stages
    o Legs
    o border crossing points
    o load transfer points
    Assign goods to handling units
    Assign service agents
    Specify planned transportation deadlines
    Record actual transportation deadlines
    Specify output required for transportation (such as shipping papers or EDI messages)
    Define transport-relevant texts
    Create Shipment Document
    Use
    After the status of the delivery is open for transportation planning, it is possible to create a shipment document to schedule the transportation.
    Logistics &#61614; Logistic Execution &#61664; Transportation&#61664; Transportation Planning &#61664; Create &#61664; Single document
    T.code: VT01n
    Enter your transportation planning point and shipment type. Press enter.
    Creating the shipment cost document
    Use
    After the deliveries are scheduled by shipment and the shipment is executed, now it is time to maintain and close the shipment document in order to record all relative information and ready for the shipment cost settlement.
    Logistics &#61614; Logistic Execution &#61664; Transportation&#61664; Shipment cost &#61664; Create &#61664; Single document
    T.code: VI01.
    After creation of shipment cost doc. You settle the Shipment cost.
    Go to VI02, enter shipment cost no.and press enter.
    Then go to Overview -- Fright cost items, Select hte line item and double click it.
    Go as main menu: Itme --> Acc. assignment, You enter G/L acc. and cost center to which the transportation cost will be posted.
    On the Standard change, details – Freight cost items screen, then check the check box “Transfer”, which means you will transfer the relative transportation cost to FI/CO, in this case, the system should determined which Purchase Order will used to settle the cost, so after you check the “Transfer” check box.
    Press save button on the current screen.
    Shipment cost settlement and documents:
    Use
    After the shipment cost settled in shipment cost document, it has the following affects:
    It creates a service entry sheet that refers to the purchase order determined.
    It posts acceptance of services performed.
    It creates an accounting document for the accruals.
    Further subsequent documents are created in FI.
    Reward points pls.
    Reards,
    Govind.

Maybe you are looking for

  • Transfer data from FW drive to new imac

    My previous imac died (logic board) and the HD from it is now in a firewire enclosure. Any tips on the best way to transfer data such as addresses, email etc.. to my new imac?

  • Hyperlink to a Page in the current document ? LiveCycle v8.2

    Can anyone help me with the syntax to hyperlink to a page in the current PDF ? I have not been able to locate any information on this ! This is a fill able XFA form & am attempting a Table of Content TextBox on the Main page with links to different p

  • PHP and Forms

    I'm just getting started using PHP and I was wondering if anyone is using PHP to control access to Forms? I found a good article at http://www.oracle.com/technology/pub/notes/technote_as_signoff.html that discusses using PHP to create a custom SSO lo

  • Cannot update Photoshop CC. (U44M1P7)

    I tried to update my Photoshop CC to the newest update today but when it got to about 51% it cancelled saying there was an error during installation. The error number was U44M1P7. Also when I try to open my Photoshop it says: Photoshop.exe - Entry Po

  • Can't open PDFs in Firefox

    All of a sudden I can't open PDFs on my website when using Firefox, works in IE though - any idea?