concatenation

VB.NET concatenation problem

I have this line of code which I want to concatenate -or at least solve the loop problem... test = 1 - ("0." & thisnumber(0) & thisnumber(1) & thisnumber(2)) I want this to have a loop in it... -Increasing thisnumber() Until it gets to about 500, Can some implement a loop into this? Or suggest a way... Thanks a lot.. James :) ...

play wav files one after the other in java

I'm trying to play a few WAV files after each other. I tried this method: for (String file : audioFiles) { new AePlayWave(file).start(); } but that plays them all at the same time. So i need a function that looks like this: public void play(Vector<String> audioFiles); the vector contains the files, eg: "test1.wav","test2.wav" ...

Bash: Concatenate all arguments and wrap them with double quotes

function foo() { A=$@... echo $A } foo bla "hello ppl" I would like the output to be: "bla" "hello ppl" What do I need to do instead of the ellipsis? ...

Performance with Perl Strings

I've been running across a lot of Perl code that breaks long strings up this way: my $string = "Hi, I am a very long and chatty string that just won't"; $string .= " quit. I'm going to keep going, and going, and going,"; $string .= " kind of like the Energizer bunny. What are you going to"; $string .= " do about it?"; From my backgr...

concatenating 2 rtf fields stored in blobs with a sql script

I need to concatenate 2 rtf fields stored in 2 separate blob columns (actually they are nvarbinary(max) in sql server). I need to do this with a database script, not in an application. Is there a way? Or the only solution is to remove all the rtf headers, concatenate the "body" of the 2 fields and then recreate the headers? By headers...

How to concatenate using lstrcat in Visual C++?

Hi, I would like to append two strings together so that I can rename a file using the MoveFile function. But my strings refuse to concatenate, so instead of adding "E:\" to "FILE-%s-%02d%02d%02d-%02d%02d.txt" to give me "E:\FILE-%s-%02d%02d%02d-%02d%02d.txt", it gives me just "E:\" as if nothing happened. Here is a snippet of my full c...

Combine two constant strings (or arrays) into one constant string (or array) at compile time

In C# and Java, it's possible to create constant strings using one or more other constant strings. I'm trying to achieve the same result in C++ (actually, in C++0x, to be specific), but have no idea what syntax I would use to achieve it, if such a thing is possible in C++. Here's an example illustrating what I want to do: #include <st...

MATLAB - concatenating items within a cell array

Hi, I have a cell array: X = {1x2} {1x2} X{1} = '' A X{1 2} = 10 113 I wish to concatenate the sub cells in such a way that Y = 10 113A Thanks, S :-) ...

C# 2-d array concatenation

Is there a more performant way to concatenate 2-d arrays than this? static void Main(string[] args) { int[][] array1 = { new int[] { 1, 2, 3 }, new int[] { 4, 5, 6 }, new int[] { 7, 8, 9 } } ; int[][] array2 = { new int[] { 1, 2, 3 }, new int[] { 4, 5, 6 }, new int[] { 7, 8, 9 } }; int[][] a...

T-SQL Nested Subquery

I want to place this working code within a SQL Statement, OR do I need to perform a UDF. The result set is a one line concatenation, and I want it to be place in every one of the overall result set lines. ---- MAIN QUERY SELECT H.CONNECTION_ID, H.SEQUENTIAL_NO, H.INVOICE_NUMBER, H.INVOICE_DATE, H.LAST_INVOICE_NUMBER, ...

Can I order the results of a concatenation in tsql?

SQL Server 2008 - I want to concatenate four columns into delimited values, but I want them to be ordered alphabetically. Is this possible? *UPDATE:*More info... This will be used on approx 700k-1M rows per day in an ETL job via SSIS. If there is an easier way to do it within SSIS, please let me know (script task, etc). It could also be...

Concatenating a second string to a row already containing a string

I have a PHP process running as a result of a JavaScript AJAX request, which is potentially running for some time and will produce data from time to time. From a usability perspective, I'd like to be able to return data to the JavaScript as soon as it's produced, but this appears not to be possible. My workaround is to write it to an SQ...

How to concat lists in erlang without creating nested lists?

I'm trying to be a good erlanger and avoid "++". I need to add a tuple to the end of a list without creating a nested list (and hopefully without having to build it backwards and reverse it). Given tuple T and lists L0 and L1: When I use [T|L0] I get [tuple,list0]. But when I use [L0|T], I get nested list [[list0]|tuple]. Similarly, [L...

How do concat a vector of character in R?

I tried using the paste command but it returns the same vector? x = c("a","b","c") y = paste(x) y [1] "a" "b" "c" length(y) [1] 3 I want a single character of "abc" ...

Long Concatenated WAP PUSH over SMS

Can anyone kindly explain how to send a concatenated WAP PUSH SMS? I can send an SI that spans just one message, but I haven't figured out how to send one that spans multiple messages ...

Ant: Concatenate properties from a fileset

Hi everyone, I am trying to do the following in ANT but I am stuck. Read which projects are installed in my project workspace. workspace buildtools build.xml project1 build.xml project.name = "project1" IP = "44.55.66.77" SERVER_NAME = "project1.local" DOCUMEN...

Regex expression to split a line to three segments in Perl

I am parsing a text file and I get multiple lines in the form shown below. Then I try to split each line to three segments: Part1: sf; part2: name; part3:direction. But now I am encountering difficulty in how to write my regular expression. I have thought about splitting on whitespace and using an array to concatenate new strings: S1...

PHP - single quotes or double quotes for variable concatenation?

Is it better to concatenate a variable (say, $name) into an existing string (say, $string) like this: $string='Hi, my name is '.$name or like this: $string="Hi, my name is $name"; or like this: $string=sprintf("Hi, my name is %s",$name); in terms of processor time/efficiency. ...

how can i list items in one field MySQL?

i have a table filled with models,the models start year and end year and productid's that are assigned to it ModelNo | StartYear | EndYear | ProductID | 0 | 1997 | 2000 | 511777 | 1 | 1998 | 1998 | 511789 | what i'd like is an sql result as follows: ProductID | Profile 511777 | 0-1997,0-19...

VBA: Difference between & and +

What is the difference between: string1 + string2 and string1 & string2 Are they equivalent? Why have two different symbols that do the same thing? ...