Merging two or more unique strings

Hi,
Problem: I want to be able to merge two or more completely different strings into a single string. These strings can contains any letter or number; I don't want to merge the entire string all the time I want to be able to merge certain parts of it for example: String A contains: "Have A" String B contains: "Nice Day" String C contains: "#1" I want to be able to combine these strings in any form such as: "1 Have Nice A Day #".
I did a quite a bit of searching on Lab view I have found "Merge Query Expressions" but I don't think it will do what I am looking for I am still trying to get an output with it but I am unable to get at currently. I don't expect anyone to give me a flat out answer but if you could point me in the right direction I would be grateful. Any example I will happily accept thank you.
Message Edited by MrSafe on 08-11-2008 12:32 PM
Message Edited by MrSafe on 08-11-2008 12:32 PM

You still haven't explained the logic of what you want to do (meaning how the program will know how to combine the strings), but you can probably do everything you want with these functions:
Shift registers
Concatenate Strings
String Subset
Searching for them should provide more data.
If you want to learn more about LabVIEW, I suggest you try looking at some of these tutorials.
Try to take over the world!

Similar Messages

  • Merging two or more separate Pages documents into a single document

    Hello everyone... I have written a book as a bunch of separate Pages docs. I want to compile these together as a single document that I can edit and paginate. Therefore, I don't want to convert to PDF format, since I wouldn't be able to do any editing. Does anyone know how to merge two or more separate documents into one?
    Thanks for your time and thoughts,
    Mike Ryan

    Michael,
    Display both documents with the Page Thumbnails showing in the Sidebar. Copy the thumbnails from one document and Paste them into the Thumbnail sidebar of the other.
    Jerry

  • Merging two or more audio files, by a contextual menu item within the finder

    Hello, everyone,
    I want to merge or concatenate two or more simple audio files (wavs at the same sample rate and bit depth) into a new wav file - which don't need any conversion. I want to do this using a contextual menu service within the finder. Is there any possibility to do this? I can't find any software in the market that will allow me to do this.
    so that,
    'start.end_1.wav' + 'start.end_2.wav' + 'start.end_3.wav' = 'start.end_1&start.end_2&start.end_3.wav'
    Can anyone help? would sox help me with this, and if so, how to add it onto a finder contextual menu?

    Both of those directories are empty and I have deleted them and re-created them. I have been able to add and remove plugins for other applications so this is very strange.
    Using "Easy Find" I did locate a preference file, which I have deleted but that has not resolved it. I have tried safe mode and single user mode but no luck. I couldn't find any automator actions either.
    When I click on the menu item it says "ClamXav is not installed. Please install ClamXav and try again" so it knows it needs to use this program somehow.
    It's very odd and must be a result of a crash I had, though I would love to get to the bottom of it, it isn't serious and will hopefully go when I upgrade to Snow Leopard
    Thanks for your help though as it has taught me a few things!

  • Retrieving the union of letters from two or more character strings

    Dear Gurus,
    Need your help in writing ABAP logic for the below requirement.
    Assume we have Var1 = 'ABCD' , Var2 = 'CDEF' and Var3 = 'EFGH'. The requirement is to populate Var4 with union of the letters from the above three strings. That means, Var4 should be equivalent to 'ABCDEFGH' after the logic is executed. Can any body help in writing this logic.
    Appreciate your quick help.
    Thanks
    Aryan

    Here's an algorithm that might work for you.. I'm sure there are plenty more!
    report zlocal_jc_union.
    parameters:
      p_var1(10)            type c default 'ABCD',
      p_var2(10)            type c default 'CDEF',
      p_var3(10)            type c default 'EFGH'.
    start-of-selection.
      perform logic.
    *&      Form  logic
    form logic.
    * "Work out unique letters and keep them in sequence.
      data:
        l_union(300)        type c,
        l_byte(1)           type c,
        l_offset            type i.
      concatenate
        p_var1
        p_var2
        p_var3 into l_union. "append them together
      format reset.
      write: / 'Before:', l_union(80).
    *" then remove duplicates, one at a time...
      do.
        l_byte = l_union+l_offset(1).
        do.
          replace l_byte with space into l_union.
          if not sy-subrc is initial. "no more to replace
            exit.
          endif.
        enddo.
        l_union+l_offset(1) = l_byte. "replace original value
        condense l_union no-gaps.
        write: / 'Offset', l_offset, l_union(80).
        add 1 to l_offset.
        if l_offset = strlen( l_union ). "run out of bytes
          exit.
        endif.
      enddo.
    endform.                    "logic

  • Can i merge two apple ids into one

    i have two apple IDs that i need to merge.  money is both accouts, paid apps on both accounts.
    What are my options?
    thanks

    http://appletoolbox.com/2012/10/can-i-merge-two-or-more-apple-ids-using-multiple -apple-ids/
     Cheers, Tom

  • 'Merge Cell' is greyed out - how do I activate it and merge two cells together?

    I am just learning Numbers, trying to merge two cells together should be a very simple process!
    I have followed the instructions in help
    The 'merge cells' function remains greyed out no matter what I do - I therefore cannot merge two or more cells into one!
    Please help, is there something I need to activate in the cell?

    Hi Claudia,
    Actually, a "truly blank document" would be an empty canvas, containing no table of any type, no document header or footer locations, no document margins, no page definitions, no page orientation. Just a blank sheet onto which you could put whatever objects you wish.
    Perhaps Apple should have named the 'not blank' templates "Basic" rather than blank, removed the header column, and left the header row intact. That would match the "Basic" table style available in the Tables button's menu, used for adding a table to a Sheet.
    If you really do want to always start with a table which has no header rows and no header columns, it's easy enough to set up.
    Open a new 'blank' document (Apple's 'blank').
    Click on the Table 1 icon in the Sheets list and press delete. (faster than selecting cell A1, then taking two trips to the Table menu to delete first the (header) row then the (header) column)
    Click the Tables button and choose Plain to insert a 'plain' table (no header row, no header column)
    (optional) Add or delete rows or columns to make the blank table the size you desire.
    (optional) Position the table where you want it.
    Save the result as a Template.
    In Numbers Preferences > General > For New Documents, select Use Template, then Choose your new template.
    Until you change that preference, any New document you make will contain your new, 'blank' table.
    Regards,
    Barry

  • Merging two quicktime videos

    Can i merge two or more videos into one long streaming video? I like to take videos of my nephew and cousins of the toddler variety but you end up with these 5 minute little videos. I was thinking about getting quicktime pro but wanted to make sure I would be able to edit the videos with quicktime pro and if I could stick one video onto the end of another.

    There are threads here and over in 10.6.x forum as well as Mac related news sites about youtube, flash, plug-ins, itunes, etc performance. QuickTime doesn't surprise me.
    There are also some problems with anything that requires Rosetta.
    The main reason for getting 3 x 1GB RAM is usually to upgrade on your own later, hopefully cheaper, but I'd play 3GB as very minimal for this system or for 10.6.
    The same behavior on same machine but running Windows 7 isn't seen, so it is Mac OS, even though iTunes and QT are mainly single threaded, not optimized, and audio tries to and tends to cause excessive cpu usage.
    Don't think Apple 'says' much and someday there may be "improves compatibility and performance" is all that gets listed in software updates, you know?

  • Ok, my problem....merging two unique files batch Process

    Ok, my problem....I have been deconstructing films, so I have thousands of picture files for batch processing in Photoshop (Resizing etc) What I would like to do is batch merge two or maybe three lots of deconstructed film footage image files from different sources, one as a background film image file and one as the forground film image file layer, thousands of images all at once, after they have been processed first in photoshop, so I have seperate folders with the image files in each folder, they need to be combined in sequence as I want the image/frame numbers to match up in each folder, then combined to non merged layers and saved into another folder, I want non merged layers, so I can use an action later to balance the overlay. I know premiere and After Effects could maybe do this, but I am looking for a different kind of effect.....thanks 

    This might help, but very probably one of the more experienced Scripters has a Script (possibly with a more comfortable interface or more features) for that, too:
    #target photoshop
    // dialog for folder-selection;
    var theFolderOne = Folder.selectDialog ("select a folder containing the backgoround images");
    var theFolderTwo = Folder.selectDialog ("select a folder containing the foreground images");
    var theFolderThree = Folder.selectDialog ("select a folder to save the combined images to");
    if (theFolderOne && theFolderTwo && theFolderThree) {
    var theFilesOne = theFolderOne.getFiles(checkFor);
    var theFilesTwo = theFolderTwo.getFiles(checkFor);
    // check if both folders contain the same number of files;
    if (theFilesOne.length != theFilesTwo.length) {
    alert ("the folders don’t contain the same number of images")
    // else do the stuff;
    else {
    // create the psd-options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = false;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // run through the files;
    for (var a  = 0; a < theFilesOne.length; a++) {
    // open background-image;
    var theFile = app.open(File(theFilesOne[a]));
    theFile.activeLayer = theFile.layers[0];
    // place foreground-image;
    var idPlc = charIDToTypeID( "Plc " );
    var desc6 = new ActionDescriptor();
    var idAs = charIDToTypeID( "As  " );
    var desc7 = new ActionDescriptor();
    var idfsel = charIDToTypeID( "fsel" );
    var idpdfSelection = stringIDToTypeID( "pdfSelection" );
    var idpage = stringIDToTypeID( "page" );
    desc7.putEnumerated( idfsel, idpdfSelection, idpage );
    var idPgNm = charIDToTypeID( "PgNm" );
    desc7.putInteger( idPgNm, 1 );
    var idCrop = charIDToTypeID( "Crop" );
    var idcropTo = stringIDToTypeID( "cropTo" );
    var idboundingBox = stringIDToTypeID( "boundingBox" );
    desc7.putEnumerated( idCrop, idcropTo, idboundingBox );
    var idPDFG = charIDToTypeID( "PDFG" );
    desc6.putObject( idAs, idPDFG, desc7 );
    var idnull = charIDToTypeID( "null" );
    desc6.putPath( idnull, new File( theFilesTwo[a] ) );
    var idFTcs = charIDToTypeID( "FTcs" );
    var idQCSt = charIDToTypeID( "QCSt" );
    var idQcsa = charIDToTypeID( "Qcsa" );
    desc6.putEnumerated( idFTcs, idQCSt, idQcsa );
    var idOfst = charIDToTypeID( "Ofst" );
    var desc8 = new ActionDescriptor();
    var idHrzn = charIDToTypeID( "Hrzn" );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc8.putUnitDouble( idHrzn, idRlt, 0.000000 );
    var idVrtc = charIDToTypeID( "Vrtc" );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc8.putUnitDouble( idVrtc, idRlt, 0.000000 );
    var idOfst = charIDToTypeID( "Ofst" );
    desc6.putObject( idOfst, idOfst, desc8 );
    var idAntA = charIDToTypeID( "AntA" );
    desc6.putBoolean( idAntA, true );
    executeAction( idPlc, desc6, DialogModes.NO );
    // save the combined files;
    theFile.saveAs(new File (theFolderThree + "/file" + bufferNumberWithZeros((a + 1), 4) ), psdOpts)
    theFile.close(SaveOptions.DONOTSAVECHANGES)
    ////// check for psd, tif or jpg //////
    function checkFor (theFile) {
    if (theFile.name.slice(-4) == ".psd" || theFile.name.slice(-4) == ".tif" || theFile.name.slice(-4) == ".jpg") {return true}
    else {return false}
    ////// buffer number with zeros //////
    function bufferNumberWithZeros (number, places) {
    var theNumberString = String(number);
    for (var o = 0; o < (places - String(number).length); o++) {
    theNumberString = String("0" + theNumberString)
    return theNumberString

  • Is it possible to link two or more accounts without merging?

         Is it possible to link two or more accounts without merging? For example: give access for apple id [email protected] (obviously fake and is used by John) to apple id [email protected] (also obviously fake and is used by Rose). This would only allow access from one consenting party to another, for temporary sharing.
         The accounts would be temporarily linked/paired in the same manner as a bluetooth device (device A shows the user a password to input into device B) except John receives password abc123 and Rose receives password xyz789. they exchange passwords and can use this to do multiple things, such as; pool money to buy a game, a movie, or a song album, or they could share an app or two with each other.
         Is there any feature in apple remotely like this in any way? If so please let me know how I can find or use this feature.
         If not, I would recommend implementing this in the future, if not the near future. There are a lot of people that would use it, and it could allow app designers to make more money, because people would be able to buy something by pooling their money. If you think otherwise, ask anybody who lives in an apartment with three other people, because that is the only way they can afford it.

    You cannot merge or link accounts.
    Sorry.
    You can leave feedback for Apple at:  http://www.apple.com/feedback

  • How to create a unique key using two or more attributes?

    how to create a unique key using two or more attributes ?

    The following example illustrate how to create a unique key using two or more attributes/fields
    Scenario: Implementing Unique Key on ManagerID & Location ID in DepartmentEO(Department Table)
    Step#1: Open the Desired Entity Object “DepartmentEO”. Go to Overview tab & Click “General” Finger tab.
    Step#2: Expand “Alternate Keys” section & click “+”.
    Step#3: In the Pop-up wizard, Enter a name for alternate Key “Unique_Manager_X_Location”.
    Step#4: Select the desired attributes/fields from available list & Shuffle to right side.
    Step#5: Now go to “Business Rules” finger tab.
    Step#6: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
    Step#7: In the Pop-up, Select “Rule Type” as Unique Key
    Step#8: In the “Rule Definition” tab select the key “Unique_Manager_X_Location”created.
    Step#9: Now go to “Failure Handling” tab, and click the Magnifier Icon .
    Step#10: If the key is not already created then in the “Select Text Resource” Popup, Using the functional design document, Enter display value, Key and Description. And click “Save & Select” Button.
    Step#11: Now Click “OK”.

  • Merging two lists?

    I need to know if it is possible to merge two lists using coldfusion.  I have one list uploaded to the site then they want the ability to upload a second list with may have additional fields and/or different number of records.  Need to know if this is possible, how to do it if it is, and how the two list will match up.  Thanks in advance for the help.

    Right, well in that case this isn't really anything to do with merging lists per se, hence the confusion I believe. Technically, you'd do this:
    <cfset newData = fileOpen("c:\newlist.csv","read") />
    <!--- Loop through your file, one line at a time --->
    <cfloop condition="NOT fileIsEof(newData)">
      <!--- Create a string of the line, this is a true list --->
      <cfset thisLine = fileReadLine(newData) />
      <!--- Get the elements of the list we want for the query --->
      <cfset thisForename = listGetAt(thisLine,1) />
      <cfset thisSurname = listGetAt(thisLine,2) />
      <!--- Check if this person exists --->
      <cfquery datasource/username/password name="qCheckExists">
        SELECT    id
        FROM      mytable
        WHERE     firstname = <cfqueryparam cfsqltype="cf_sql_varchar" value="#thisForename#" />
        AND       surname = <cfqueryparam cfsqltype="cf_sql_varchar" value="#thisSurname"#" />
      </cfquery>
      <!--- If we found rows, update --->
      <cfif qCheckExists.RECORDCOUNT eq 1 >
        <cfquery datasource/username/password>
            UPDATE   mytable
            SET      forename = <listGetAt,thisLine, FIELD>,
                     surname = <listGetAt,thisLine, FIELD>,
                     address = <listGetAt,thisLine, FIELD>,
                         etc etc etc
            WHERE    id = qCheckExists.id
        </cfquery>
      <cfelseif qCheckExists.RECORDCOUNT >
        <!--- here you found more than one matching row, up to you what to do --->
      <cfelse>
        <!--- here you didn't find a match, so do an insert --->
      </cfif>
    </cfloop>
    <cfset fileClose(newData) />
    That's how you'd do it on a technical level, the Business decisions are yours. What if it's John not Jon? What if it's Jonathan? That's not a programming problem, that's up to you to decide - I'm not sure we can help you there.
    O.

  • Generate fixed-length unique strings

    Hi all,
    I'm trying to generate 16 byte unique string from two input strings. Essentially, the unique string will be used as primary key in the database. The two input strings are (siteUrl, productId) in which siteUrl is the url of a website which has one or more productId. Each productId in a site is unique but there might be duplicate productIds from different sites. I want to generate 16 byte ids from each pair of (siteUrl, productId) such that they are unique (or have a very small chance of collision). Has anyone done this before? Please share your experience! Thanks heap!

    >>>>>
    KajThanks for the answer. However, what I want toknow
    is how to convert say productId to unique 8
    byte
    string. Any idea?What does the product id look like?Product id is usually a string of digits andletters:
    2323, 234lasfd1kj3,....
    What I'm looking for is a hash function h suchthat:
    h(siteUrl) -> 8 byte string
    h(productId) -> 8 byte string
    I now can combine h(siteUrl) and h(productId) toget
    16 byte unique string.
    Sorry but you can't! Since the hashes will not be
    unique the combination will not be unique.There should be such hash function somewhere but I haven't found it. The definition is here http://www.x5.net/faqs/crypto/q94.html.

  • Strings comparision and get unique string in pure sql,

    Dear all,
    Here is two strings
    S1='A,B,C,D,F';
    s2='C,F,H,B,A,K';
    output should be like unique string values ..
    S3= A,B,C,D,F,H,K;
    How to get this in pure sql..
    thanks in advance,
    Roots

    Hi,
    In a relational database, each column of each row should store one value, not a repleating group of values, such as a delimited list. This is so basic to database design that it is called "First Normal Form". You don't have to follow rules like this, but, if you don't, your code will be complicated, inefficient, and error-prone. It sould be best to re-design your application so that each value was on a separate row.
    If you can't do that, then you can start by splitting your delimitd lists into separate rows. Then you can easily fond the distinct values, and use any String Aggregation technique to combine the results into one output row.
    Here's one way to do all that:
    WITH     got_params     AS
         SELECT     'A,B,C,D,F' AS str, 1 AS str_id     FROM dual     UNION ALL
         SELECT     'C,F,H,B,A,K',          2            FROM dual
    ,     got_part_cnt     AS
         SELECT     str
         ,     1 + LENGTH (str)
                - LENGTH (REPLACE (str, ','))     AS part_cnt
         FROM    got_params
    ,     cntr          AS
         SELECT     LEVEL     AS n
         FROM     (
                  SELECT  MAX (part_cnt)     AS max_part_cnt
                  FROM    got_part_cnt
         CONNECT BY     LEVEL     <= max_part_cnt
    ,     got_substr     AS
         SELECT DISTINCT
                REGEXP_SUBSTR ( p.str
                               , '[^,]+'
                        , 1
                        , c.n
                        )          AS sub_str
         FROM    got_part_cnt p
         JOIN     cntr          c  ON     c.n     <= p.part_cnt
    ,     got_r_num     AS
         SELECT     sub_str
         ,     ROW_NUMBER () OVER (ORDER BY  sub_str)     AS r_num
         ,     ROWNUM                                        AS r
         FROM     got_substr
    SELECT     MIN ( SUBSTR ( SYS_CONNECT_BY_PATH (sub_str, ',')
                          , 2
             )          AS unique_sub_strs
    FROM    got_r_num
    WHERE     CONNECT_BY_ISLEAF     = 1
    -- START WITH     r_num     = 1
    CONNECT BY     r_num     = 1 + PRIOR r_num
    ;This works in Oracle 10.2.0.2.0 Express Edition, which is the only database I can use right now. For the main query, you should be able to say:
    SELECT     SUBSTR ( SYS_CONNECT_BY_PATH (sub_str, ',')
                , 2
                )     AS unique_sub_strs
    FROM    got_r_num
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     r_num     = 1
    CONNECT BY     r_num     = 1 + PRIOR r_num
    ;but, when I try that on my database, I only get 'A,B' as the output. CONNECT BY is very buggy in Oracle 10.2; if you have Oracle 10.1, the simpler form might work.
    The query above can be shortened some, but I wrote it this way to make it easier to understand.
    You can, for example, combine the sub-queries got_sub_str and got_r_num. If you do, use DENSE_RANK instead of ROW_NUMBER.
    This does not assume that the sub-qtrings are all 1-character long. If they are, then the query can be simplified.
    For more about string aggregation, see
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php

  • How do I merge two valid, purchased iTunes accounts into one so all my music is in same account?

    I have two valid, purchasd iTunes accounts.  Older iPod has some great music, I just got a new iPad and set up second iTunes account, bought some more iTunes items for that account.  Just discovered iCloud.  Now I want to put all my music from both accounts onto the cloud so I can access it on all my apple devices.   Can't seem to add from one account to the other.  Can sign onto the new account wiht my old iPod, but it will not let me sync without erasing all the music on the device.  How can I merge these two accounts into one?
    PS  Makes you wonder how helpful support is when the usernames "Frustrated," "really frustrated," and "Help!!!!" are all taken...lol

    HeyStupid wrote:
    how do I merge two valid, purchased iTunes accounts into one so all my music is in same account?
    You cannot. iTunes pruchases remian tied to the account they were purchased with.
    I just got a new iPad and set up second iTunes account,
    Why?
    Remove your info from new account, update old account as needed and use that.

  • How do I merge two different libraries, linked to one account? They're on two different computers but I want them to be on one

    How do I merge two different libraries, linked to one account? They're on two different computers but I want them to be on one

    This should do the trick
    Home Sharing Learn More
    http://support.apple.com/kb/HT201976
    Best of Luck

Maybe you are looking for

  • Cannot open Word in Office 2011 after upgrade to Mavericks

    Hi, Word is crashin while trying to open it. Error details as below: Microsoft Error Reporting log version: 2.0 Error Signature: Exception: EXC_BAD_ACCESS Date/Time: 2013-11-06 18:04:55 +0000 Application Name: Microsoft Word Application Bundle ID: co

  • Copy Themes from iWeb 2.0 to 3.0

    Hi , I copied a theme from iWeb 3.0 "Fine Line" to iWeb 2.0. I thought the copied theme would show up in 2.0 but it doesn't. Am I doing something wrong or is it simply not possible to copy a theme the way I did it. I took the theme and thumbnail from

  • CreateLink doesn´t work

    Hello, I am trying to create Links in KM API. But I get always the error LinkType cannot be resolved. My code is: ILink link = parent.createLink(u201Clinku201D, u201C/documents/fileu201D, LinkType.INTERNAL, null); Best Regards Philipp

  • Photos app years does not show countries

    After updating to iOS 7 I noticed that under the "Years" section, pictures from 2010 to 2012 all displayed the names and number of countries I have visited. However, no countries are listed in the year 2013, beside the heading even though this was th

  • SSIS Data Flow Question

    While working on my current project, a problem came to mind. On past projects in SSIS, I was taking data from an Excel or csv source and converting for use in SSMS. Straightforward and fairly simple, as I became more and more acquainted with SSIS. Bu