Size of the concatenated string variable?

Hi all

I have the following question:

In Labview, there is a function called concatenate strings. When I want to 'Add' three strings I can pull the string to concatenate to the size three for three entries.

Is there a possibility to implement a digital control where I can enter a number that ranges from my entries for the string concatenation function?

If I want to add three channels I enter 3 in my digital control, my function gets three entries. After my program that I want to have five added channels so I would like to enter 5. Is it possible to do this?

Thank you for your help in advance.

Best regards



It seems to me that your program should be in a loop FOR, autoindexing on the points table.

Tags: NI Software

Similar Questions

  • [JS, Win/Mac] The Clipboard string variable?


    I want to put the contents of a string variable to the system Clipboard. For Mac, it is simple via AppleScript, but how this might work for windows? I searched and read all relevant messages and did some research with google.

    Here is my potion of the code:

    // copy to clipboard
    if ( $.os.toLowerCase().indexOf('mac') >= 0 ) {  
        app.doScript ( 'set the clipboard to item 1 of arguments', ScriptLanguage.applescriptLanguage, [_stringOUT] );  // mac
    } else {
        app.doScript ( 'echo ' + _stringOUT + ' | clip', ScriptLanguage.visualBasic );  // win

    One of my friends has tested the Windows part - I work only on a Mac-, but it does not work. Is someone can you please help me understand this?

    Thank you!


    After a long search, I think I finally did:

    _OUT = "Ich bin ein Copy-Paste-Test.";
    if ( $.os.toLowerCase().indexOf('mac') >= 0 ) {  // widows to clipboard
        app.doScript ( 'set the clipboard to item 1 of arguments', ScriptLanguage.applescriptLanguage, [_OUT] );  // mac
    } else {
        app.doScript ( 'Dim theObject\r Set theObject = CreateObject (\"htmlfile\")\r Call theObject.ParentWindow.ClipboardData.SetData(\"text\",\"'+_OUT+'\")', ScriptLanguage.visualBasic );  // win

    Can someone please test this piece of code on a windows machine?

    Thank you!


  • How to find the size of the text string...

    Hi friends,

    How to find the size of the text, in KB or in bytes or MB, I have a text box control, when I type a text in do I find the size of the text that is entered control.please of entry help very urgent...



    Hi David,

    Nice Solution, but I think that it will not give the exact size of the string for a particular case where the string contains UTF string as a single letter format can exceed more than 1 byte.

    So I think it should be modified as:

    private function getTextSize(value:String): String


    var div_by:int = 100;

    var sze_is:String = 'KB ';

    var len_is:int = getUTFLength (value); now the length is actually measured, regardless of the format of the text

    If (len_is > 1000000)


    div_by = 100000;

    sze_is = 'mb ';




    private void getUTFLength(value:String):int
    var byteArray:ByteArray = new ByteArray();
    byteArray.writeUTFBytes (value);
    Return CharArray.Length;



  • Configurator error 'the hard size in the first string of RAID must be smaller than the drive selected in the second Raid channel'

    Hello, I hope this is the forum for this question rigth.

    I am trying to set up a new T330 for one of our customers, and I want to use a Raid 1 + Raid 1 configuration. First raid for the operating system and daily backups, second raid for a database.

    I tried the C15c configuration, but I always get the error "the size of the hard drive in the first RAID channel must be smaller than the selected hard drive in the second Raid channel".

    Is it really necessary to buy an SSD that is bigger than the HD used in the first Raid? The DSS may be relatively low, but I need more space for the backup.

    Is there an alternative solution to this?

    Thanks in advance,


    Yes. In fact, you can mix drive types on the SAME channel... they just cannot be mixed in the same virtual disk (table).

  • addition of transport refers to a member or the text string variable

    I would like to structure a variable text line 1 at a time and then put this text in the text member and ultimately in an external text file but get a 'bad type' error when I use the script below. I guess I can't refer to the line in the sub-provincial text until they are there, but how can I add the?

    also how can I get to pick the text in this member of text in an external file... or better yet, how to take the text of the text variable in an external text file?

    There seems to be no 'next' code

    The constant RETURN can be appendd to the text to insert a new line

    myString = "this is a line" & return & "second line".

    Member ("textDisplay"). Text = myString - he would put in a text member

    Included with the Director fileIO xtra is the standard for writing in a
    text file, the simplest form would take about 5 lines of code to get
    to write to a text file.

    -Here is an approximate example

    myFile = new (xtra "fileio")
    openFile (myFile, myPath, 0)-read/write access
    writeString (myFile, myString)
    closeFile(f) (myFile)
    myFile = empty - purge xtra instance, also directed by Manager ending

  • Unexpected error "the result of the concatenation of string is too long."


    I use the Oracle 11.2.0 database.

    When querying my database with a common table expression that concatenates strings VARCHAR2, I get an error ORA-01489 even if I suspect that I am concatenating more 4000 characters.

    To be more precise, I have a table entity which basically stores the XML elements, including their parent element and their position of brother among his brothers and sisters. The CREATE statement for this table is listed below.

    CREATE TABLE (entity
    Name VARCHAR2 (100) NOT NULL,
    Parent NUMBER (10,0) REFERENCES Entity (ID),
    Sibling_Pos NUMBER (2.0) DEFAULT 0

    Now, I would like for all items to be concatenated with their ancestors elements to a structure as follows:

    "(/ root_element(sibling_pos)/.../ancestor_element(sibling_pos)/parent_element(sibling_pos)/current_element(sibling_pos).
    (where root_element, ancestor_element, parent_element and current_element are fair values in the name column of the table of the entity)

    To do this, I use a common table expression that concatenates the values of name and sibling_pos as shown below:

    WITH entity_cte (lvl, id, path) as)
    SELECT 1 AS lvl, id, ' / '. name | ' (0' | sibling_pos |) ')' IN the path
    OF the entity
    WHERE parent IS NULL
    SELECT lvl + 1 lvl,, entity_cte.path | '/' || e.Name | ' (': cast (e.sibling_pos AS VARCHAR2 (2)) |) ')' IN the path
    Of entity_cte, e entity
    WHERE = e.parent
    SELECT lvl, id, path
    Of e entity_cte

    After the insertion of certain values, I get the error ORA-01489, the result of concatenating string is too long. The maximum is called as 4,000 characters for VARCHAR2 in the oracle documentation and various Web sites. Of course, it is clear to me just by using the common table like that expression, I could run in such an error. However, because of the structure of XML documents, I doubted that channels resulting would be since a long time more than 4000 characters.

    So I reorganized my query to count the characters to concatenate instead of actually concatenate. The query is listed below, that the changes are marked in "BOLD":

    WITH entity_cte (lvl, id, path) as)
    SELECT 1 lvl, id, length ('/ ' | name |)  ' (0' | sibling_pos |) ') IN the path
    OF the entity
    WHERE parent IS NULL
    SELECT lvl 1 lvl,, AS entity_cte.path + length ('/ ' | |) ' (': cast (e.sibling_pos AS VARCHAR2 (2)) |) ') IN the path
    Of entity_cte, e entity
    WHERE = e.parent
    SELECT lvl, id, path
    Of e entity_cte
    Way to ORDER BY DESC

    The result of the query gives me a maximum length of 319 characters.

    To be sure, I also checked the maximum level (indicated by the column named lvl in the common table expression), which means that the maximum number of items in my way (the concatenated string). The result is 18. As I use VARCHAR2 (100) for the name column and add 5 charcaters in each level, the maximum number of characters expected to 18 levels would be 1890.

    So, now I wonder is the ORA-01489 may have triggered another reason? Or is there something else I'm missing?
    Any help would be appreciated. Other suggestions to track down the error are more than welcome. Thanks in advance.

    I found by trial and error that launch the query anchor seems to work, but I don't know why, then you can try this.

    with entity_cte (lvl, id, path)
            1 lvl,
            cast('/' || name || '(0' || sibling_pos || ')' as varchar2(4000))  path
            parent is null
        union all
            lvl + 1 lvl,
            entity_cte.path || '/' || || '(' || cast(e.sibling_pos as varchar2(2)) || ')' path
            entity e
   = e.parent
    select lvl, id, path
    from entity_cte e

    Not tested since no table definitions or examples of data provided.

  • How the PATH environment variable longer?


    I use Windows Vista Business.  Lately, I just installed the beta of Intel Parallel Studio and found that my path variable ran out of space.  Internet research concluded that there cannot be more than 1024?
    It is too little for me to welcome all directories program that I installed, and thus some programs no longer work correctly.
    I wonder if there-
    (a) is a way I can expand the size of the Path system variable?
    (b) add another variable which can take some Path variable values so that I do not violate the limitation of 1024.
    Thanks in advance!

    Hello, Gutsingh

    The PATH environment variable has a fixed limit of 1023 characters can be used. It doesn't seem to be a way to extend this. Other environment variables have a higher limit, which can be useful.

    Let us know if that helps.

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • error "result of concatenating string is too long" when I try to run the following code. Help me!

    When I try to perform the following PROCEDURE, he throws me an error:

    Error from line: 2 in command.




    Error report-

    ORA-01489: result of concatenating string is too long

    ORA-06512: at "AFLOBIDW. FACT_UPDATE', line 22

    ORA-06512: at line 2

    01489 00000 - "result of concatenating string is too long."

    * Cause: Result of concatenation of string exceeds the maximum size.

    * Action: Make sure that the result is less than the maximum size.


    I can't change the logic of the code since I'm trying to do Informatica at the back done and compare performance between Informatica and Oracle DB. Is there another solution for errors? I add only the SQL query that is part of the PROCEDURE for easy viewing. Please help me. Thank you!





    || ', DETAILS_WID ='


    |', SOURCE_WID ='


    |', TARGET_WID = '


    || ', RUN_STATUS_WID ='


    |', SEQ_NUM ='

    || NVL (TO_CHAR (SEQ_NUM), 'NULL')

    |', NAME = "'

    || NVL (TO_CHAR (NAME), 'NULL')

    || ' ', NO_POSITION = "'


    ||'' ', INSTANCE_NAME = "'


    || ' ', TYPE_CD = "'

    || NVL (TO_CHAR (TYPE_CD), 'NULL')

    ||'' ', STATUS_CD = "'


    ||'' ', START_TS ='

    || DECODE (START_TS, ",' to_date(''e))

    || To_char (START_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', END_TS ='

    || DECODE (END_TS, ",' to_date(''e))

    || To_char (END_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', DURATION = '


    |', STATUS_DESC = "'


    || ' ', DBCONN_NAME = "'


    ||'' ', SUCESS_ROWS ='


    || ', FAILED_ROWS ='


    |', ERROR_CODE = '


    |', NUM_RETRIES ='


    || ', READ_THRUPUT ='


    |', LAST_UPD = '

    || DECODE (LAST_UPD, ",' to_date(''e))

    || To_char (LAST_UPD, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', RUN_STEP_WID = "'


    || ' ', W_INSERT_DT = '

    || DECODE (W_INSERT_DT, ",' to_date(''e))

    || To_char (W_INSERT_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', W_UPDATE_DT = '

    || DECODE (W_UPDATE_DT, ",' to_date(''e))

    || To_char (W_UPDATE_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', START_DATE_WID ='


    |', END_DATE_WID = '


    |', START_TIME ='


    |', END_TIME ='




    ||''';' AS Column



    ORA-01489 is one of these error messages that really means what he says. The error message you posted pretty much sums up the situation.

    What version of Oracle are you using?  (You must still include this whenever you have a question.  See the FAQ forum: Re: 2. How can I ask a question on the forums? )

    From 12.1 of the Oracle, there is an option to allow VARCHAR2s in SQL to be as big as 32767octets.  (The default is 4000).

    Otherwise, if you can't change the code, either do not run. or ensure that the concerned channels are quite short so the error does not occur.

  • Create a concatenated string of attributes on Multiple Instances of the entity

    Hello world

    I wonder if someone has met this challenge, or ideas. We have been asked if OPA could produce a string containing the concatenation of the values of an attribute of text stored on multiple instances of an entity. The number of instances is variable, generally.

    Example: Assume that the attribute is "DayOfWeek", and we have an entity called "Appointment", with the authorities:

    appointment_1 (DayOfWeek = 'Monday')

    appointment_2 (DayOfWeek = 'Thursday')

    appointment_3 (DayOfWeek = 'Sunday')

    ... we need produce a string "AllAppointmentDays" = "on Monday, Thursday, Sunday.

    We don't think that this is possible without either: (a) an external system to generate the resulting concatenated string of the output, or (b) modules with the command of the approach to read the white paper Oracle in Nov 2012 (approaches to limits, thresholds and preferences), combined with hard-coding and the constraints on the length of the string.

    I was wondering if there was a better way to do it without external script or forced / hardcode.

    Thank you


    I don' t know that an external implementation would be easier, but it could be more effective if well written.  Internal or external, you must decide how you want to classify or ordering entities before concatenation.  The order must be absolute (i.e. without fasteners).  Policies to 'solve' the first entity out of string and the string output of the policy to concatenate a string to produce this entity = the entity 'before' + ', ' + attribute of the entity are fairly simple.

    I guess the answer is: it is not necessarily a better way to do it in OPM and I don't think that there are constraints, or a more effective solution is necessary unless you already know you will work with a very large number of entities or very long strings.

  • Dynamically size movieclip to adjust the width and height of the text string


    I'm trying to size a movieclip dynamically to adapt to the size of the height of the strings a text and width (this text is inside the movieclip)

    Here is my code so far...

    var Font1_ = new Font1();

    var Format2:TextFormat = new TextFormat();

    Format2.size = 36;

    Format2.align = TextFormatAlign.CENTER;

    Format2.font = Font1_.fontName;

    var MessageBox:MovieClip = new MessageBoxMC();

    MessageBox.Text1.defaultTextFormat = Format2;

    MessageBox.Text1.embedFonts = true;

    MessageBox.Text1.antiAliasType = AntiAliasType.ADVANCED;

    MessageBox.Text1.wordWrap = true;

    MessageBox.Text1.width = 800;

    MessageBox.Text1.height = 400;

    MessageBox.Text1.textColor = 0xFFFFFF;

    MessageBox.Text1.cacheAsBitmap = true;

    MessageBox.Text1.mouseEnabled = false;

    MessageBox.Text1.text is a String ("use the arrow keys to move");.

    MessageBox.width = MessageBox.Text1.width;

    MessageBox.height = MessageBox.Text1.height;

    MessageBox.x = 400;

    MessageBox.y = 200;

    addChild (MessageBox);

    This does not work for me... someone knows the best way to do it?

    I want also the text is centered in the movieclip, with a border of 2-4 pixels

    Also I'm not sure if I should use text.length? advice and comments was very well received.

    Thanks in advance!

    Essentially, you must check for a change in .textWidth or .textHeight, which are different from the .width and .height.

    This code works for me (guess a box called bottom bg and an instance of inside a moveclip and an X fg foreground text and there delimits variable shift to say what distance you want from the text box and a textFrameNudge to provide a value to tweak).

         // Resize background box = thisBox.fg.x - boundsOffsetX + textFrameNudge; // I'm using .4 as the tweak value for textFrameNudge = thisBox.fg.y - boundsOffsetY; = thisBox.fg.textWidth + boundsOffsetX*2 +textFrameNudge*thisBox.fg.getTextFormat().size; = thisBox.fg.textHeight + boundsOffsetY*2;
  • Maximum size of the string scanner


    I use a scanner to read the contents of a text file to a string, but the file is not read in compeletely, and the length of the resulting string is 1024. The flie has 4160 characters inside.
    Scanner rScanner = new Scanner(rStream);
    String rCommands =;
    I use Java 1.7.0_01. This limit is documented anywhere? I would like to avoid a loop and the concatenation in my code.

    Thank you

    Dario Strbenac
    Research Assistant
    Epigenetic cancer
    Garvan Institute of Medical Research
    Darlinghurst NSW 2010

    user3454292 wrote:
    It's a nice way to do it for files in the file system. However, rStream is acutally reading a text file from inside the JAR file.

    So it is a 'resource' and not a 'file', and one cannot get the length of a resource without reading.


    InputStream rStream = getClass().getResourceAsStream("/R/accessory.R");

    Given that no object file involved here, I have to do it in a loop anyway, right?

    Yes--but it's almost trivial. Just read N bytes at a time loop of the resource and write in a ByteArrayOutputStream can convert the bytes to a string. Otherwise, read the resource N characters at a time in a loop and write to a StringWriter.

    Actually, come to think of it, I can just hard code the size of the byte array, as the text file contains the code to another programming language that probably won't change in the future.

    This approach looks like a train wreck waiting to happen. Not him.

    What do you have against a simple loop?

  • HP - 50g RPN - how to increase the size of the variable icon in the command screen in the RPN


    How can I increase the size of the icons 'F' keys for variables in the RPN command line window?

    My reason for this is to be able to see the full name of the variable.

    Thank you.

    Edit: Perhaps sizes of keys to function 'F' is what determines the size of the variable icon. Does this mean that it cannot be increased?

    If you press SHIFT RIGHT and then press the ARROW KEY down, you can see more than 5 characters that are currently displayed for the softkey text.

    a second solution to think abou... to help the CSE function and custom designed GROBs.

    (However, take into account the current size of the police... how small it really is possible and stay legible-

    You must take account of the resolution of the screen of 50 G... it's not a 'Tablet' hi-res-like display)

    See the example on page 20-4 of the 50G users guide.

    a copy of the user guide can be downloaded here: & lang = to & CC = US & docIndexId = 64179 & TaskID = 120 & prodTypeId = 215348 & prodSeriesId = 3235173

    Here is the example used on page 20-4

    % HP: T (3) A (R) F (.);
    { {
    21 8 00000EF908FFF900FFF9B3FFF9A2FFF9A3FFF9A0FFF388FF GROB

    the list above on the battery... run


    If you try to increase the amount of visible characters when running programs, you can use INFORMATION or an application like GUIPLUS located here:

  • Using the string Variable name to ChnFind

    Overview - I find crossing points of zero on a set of data so that I can calculate the phase shift of channel to another in my data.

    Small image - I start by finding the zero 1 cross in the data, once I found I want to use the index to find the next and so on


    The posted script comes from looking for the 1st pass by zero before moving on to the next channel. The problem is that I can't find out do my group and channel changes with loops.

    Option Explicit  ' force explicit declaration of all variables in a script.
    Dim intCount, intChan ' loop variables
    Dim z

    IntCount = 2 GroupCount-1 ' groups
    Call GROUPDEFAULTSET (intCount) ' change the current group
    IntChan = 1 to ChnNoMax ' Browse channels
    Z = ChnFind ("Ch(""[intCount]/[intchan]"")<0") 'this="" does="" not="" work,="" but="" i'm="" not="" sure="" how="" to="" fix="">
    MsgBox (z)

    I don't know I'm missing something obvious.


    Hi Michael,

    You need not global variables to simplify this, but I would certainly use object variables to simplify.  When indexing of groups or channels, it is easier to use the variable of index with the Data.Root.ChannelGroups collect or Group.Channels collection directly.  I also prefer to store the group object and the channel object in a variable.  For example, you can then use Channel.DataType to add exactly the same string data to the new group coming from the old group.  You can also easily get the name, unit and all sorts of other properties directly from the object variable.  I prefer to use a separate group object variable to reduce congestion in the colde, although it adds 2 lines to your example of code snippet.

    Set FromGroup = Data.Root.ChannelGroups (intCount)
    Set FromChannel = FromGroup.Channels (intChan)
    Define participatory = Data.Root.ChannelGroups ("Index" & FromGroup.Name)
    The rise in the value = ToGroup.Channels.Add (FromChannel.Name & "Rising", DataTypeChnFloat64)
    Fall in the value = ToGroup.Channels.Add (FromChannel.Name & "Falling", DataTypeChnFloat64)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Setting the size of the font of an array of strings programmatically

    I can't find the correct property to programmatically adjust the size of the font of an array of strings.  For a chain, it is quite easy with a property node and the text. FontSize property.  There must be a similar property to an array of strings, but I'm not.  Can anyone help?

    Take the element ref table and class type a more specific (string) and then you can set with a property node's font size.

  • Insert variable in the text string

    Hi, can someone help me insert variables in a text string? I use the "base series writing and in labview.

    I need to send the following string to the serial port:

    Normal 0 false false false fr X-NONE X-NONE MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 cm 5.4pt cm 0 5.4pt ; mso-para-margin : 0 cm ; mso-para-marge-bottom : .0001pt ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-fareast-font-family : « Times New Roman » ; mso-fareast-theme-font : minor-fareast ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ; mso-bidi-font-family : « Times New Roman » ; mso-bidi-theme-font : minor-bidi ;}

    -$$ INPUT1SMSPHONE = numbers1, telephone2, phone3

    -$$ INPUT1SMS_WSEC = 5


    How to do a vi with numbers1, telephone2 phone3 and TYPE SMS MESSAGE HERE as variables and send it to the serial port?

    If someone could make an example vi that would be fantastic.

    Kind regards


    Thank you for your quick response. Your example is perfect thanks mate.

    See you soon,.


Maybe you are looking for

  • After running a Norton PC Cleanup utility, some web pages are formatted incorrectly

    I had installed Firefox v17 and it was running. I installed a copy of Norton PC Tools and ran from cleaning that removes temporary internet files, cookies, and other things. After running Norton, some web pages do not properly format. Instead of the

  • I can not play spades on msn it repeat issue with server with firewall problem

    I can not play spades on msn I can not play spades on msn he repeats the question severor problem with the firewall. Open portsand check firewall settings, but I don't know how to do this or what to look for so can you please help me thank you.

  • can someone change my WZC and the setting of security through the internet?

    can someone change my WZC and the setting of security through the internet? I was watching a video on youtube when my stop comp. and restarted on its own. start and my security program was not able to start, had to uninstall and reinstall to turn bac

  • Compaq presario co50-210us - fail to start

    We have a laptop Compaq Presario CO50-210US, yesterday, the screen started to decrease in intensity, and access to programming or internet became slow. Finally, the screen went black and the computer turns off.  Since then, any attempt to power on th

  • RT Surface browser

    The RT Surface will get a version update of internet explore is equivalent to the version of office capabilities?  I am an educator and bought the rt, but unfortunately cannot even access the main site of IEP online because of the current browser.  I