04-27-05 12:55 PM
Hello.
Xlang puts restrictions on what you can do with a string. When I have
needed complex logic, I have either called an outside .net component or used
a variable of type StringBuilder.
In your case, can you just add the string to the beginning of the other
string like this: SetFileName(FILE.ReceivedFileName) = Prefix +
InFile(File.ReceivedFileName));
You might have to set the context values to string variables first to get
this to work.
Hope this helps.
Stephen W. Thomas
http://www.geekswithblogs.net/sthomas
"njhudson" wrote:
> I am trying to use a message assignment shape to create the output
> filename for my message. I want the filename to be a prefix plus the
> input filename. The input file filename is
> "InFile(FILE.ReceivedFileName)". I declare the variable "Prefix" and
> then I use a Concat statement to splice them together. Intellisense
> doesn't indicate an error. However, only the ReceivedFileName piece
> shows up in the file name. What am I doing wrong? My code is
> below:
>
> Thanks,
> Nathan
> _________________________
> SetFileName = InFile;
> Prefix = "ABC";
> SetFileName(FILE.ReceivedFileName) = System.String.Concat(Prefix,
> InFile(File.ReceivedFileName));
> __________
> If the input filename is "SomeFileName.txt", I should get
> "ABCSomeFileName.txt". But I only get "SomeFileName.txt".
>
>
[ Post a follow-up to this message ]
|