String error

Hi there!

To use as part of a xml file, I need to create a dynamic string with something like that:

<set label='631' value='0' /><set label='689' value='3' /><set label='699' value='4' />

With the following code I was ALMOST able to do it...

------------------------------------------------
Dim strSymbolsList

While ((Repeat1__numRows <> 0) AND (NOT rsQuantPercentiles.EOF))
  strSymbolsList = strSymbolsList & "set label='" & rsQuantPercentiles.Fields.Item("UserID").Value & "' value='" & rsQuantPercentiles.Fields.Item("NormalCDF").Value & "' />"
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  RecordCounter = RecordCounter+1
  rsQuantPercentiles.MoveNext()
Wend
---------------------------------------------------------------------

This code would generate, in the corresponding example, the following:

set label='631' value='0' />set label='689' value='3' />set label='699' value='4' />

As it easily seen, the ONLY problem was with the < character, presented in bold above, but NOT in my code (of course)!

The easy modification that I guess should work is:

 strSymbolsList = strSymbolsList & "<set label='" & rsQuantPercentiles.Fields.Item("UserID").Value & "' value='" & rsQuantPercentiles.Fields.Item("NormalCDF").Value & "' />"

But with little modification the "Response.Write(strSymbolsList)" gets nothing!

I cannot imagine why... how should I correct that, please?

Thanks!
fskilnikAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontyWeb Ninja at largeCommented:
are you certain nothing is getting written out? you're generating what could be perceived as an HTML tag, with the beginning "<". If you look at the source, do you see the tag there being generated?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fskilnikAuthor Commented:
Hello, Big Monty!

Thank you for coming again to rescue me from my ignorance!!   :)

You are right! In the source code I see that I really got what I wanted...

Thanks a LOT!

Kind Regards,
fskilnik.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.