1 person found this helpful
Using "\n" should work. You also may be having an issue with the string escaping the "\" character. Make sure the string isn't something like "test \\n test" when you are setting it to the tool tip. Put in a break point and check.
The trouble is that the text comes from the database eg
SELECT depositRequestedCurrency + ' ' + CAST(depositOutstandingAmount AS
VARCHAR(max)) + ' \n'
It shouldn't matter where the string comes from. When you are setting
the string to the tooltip property, take a look at the assignment with
a breakpoint. Strings with \n in them will parse into a line break in
tool tips in Flex. This is why I think something fishy is going on
with the string you are getting back from your query.
You are correct the result has
n in it.hmm I wonder if I can fix that ms
sql 2005 side?
For a quick fix, you can double up the "\" character in your query. So
it would look like "SELECT .... + '
n' FROM ..."
Good idea , I tried
SELECT depositRequestedCurrency + ' ' + CAST(depositOutstandingAmount AS VARCHAR(max)) + '\\n'
but I just get \\ appearing in the Flex