Forums - C# Corner

Forum guidelines
shabeer shaik

shabeer shaik

  • 1.3k
  • 40
  • 15.5k

ARRAYS THAT WILL CONCATTENATE TEXT AND NUMBERS

Dec 12 2012 2:19 PM
I have a form in visual studio 2008. one button and two text box1 and 2 and 1 combobox

The user selects a horsename from combo which updates textbox1. 
i have the following array which is in php and will like to convert to fit visual.
$ar = array('A' => 1,
'B' => 2,
'C' => 3,
'D' => 4,
'E' => 5);

when the user selects a horsename "DAB" WHICH updates textbox1. i want the form to work out that "DAB" is "4+1+2=7" and show in textbox3 as 7

please help as i have downloaded vs.php and phalenger3 but i am still stuck as i cannot activate it with my hkey.





Answers (13)

Visual Studio Live - Redmond 2016

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!