Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- armas = gcnew List<String^>();
- sWeapon->SelectedIndex = 0;
- for(int i=0; i != sWeapon->Items->Count;i++)
- {
- String^item=sWeapon->Items[i]->ToString();
- if (item->Contains("1000"))
- {
- array<String^>^ spl = Regex::Split(item, "1000");
- String^ itemName = spl[0];
- armas->Add(itemName+"|1000"+spl[1]->Trim());
- }
- else if(item->Contains("2000"))
- {
- array<String^>^ spl = Regex::Split(item, "2000");
- String^ itemName = spl[0];
- armas->Add(itemName+"|2000"+spl[1]->Trim());
- }
- else
- {
- array<String^>^ spl = Regex::Split(item, "3000");
- String^ itemName = spl[0];
- armas->Add(itemName+"|3000"+spl[1]->Trim());
- };
- }
- for (int i2=0;i2!=armas->Count;i2++)
- {
- array<String^>^ obj = armas[i2]->Split('|');
- sWeapon->Items[i2] = obj[0];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement