Easy MessageBox question

cpp.net United States
  • 15 years ago

    Hi,
    I am reading data from an XML file, and am checking whether a node exists, if not then I display "no nodes", but if so I want to display the number of nodes using the Count method - however I can't work out how to do this using MessageBox::Show. So far I have:


    Code:

    if (nodesXML->Count == 0)
    {
       MessageBox::Show("There are no sound nodes");
    }
    else
    {
       MessageBox::Show("There are " <nodesXML->Count> " sound nodes.");
    }


    I know that <nodesXML->Count> is not right but that's where I want the integer to go. I've tried +'s, &'s and anything else I can think of, and can't find examples anywhere of how to do it so any help would be greatly appreciated.


    IxxI

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Anyone who considers arithmetic methods of producing random digits is, of course, in a state of sin.” - John von Neumann