Is not much of a conquer problem, but more a programming problem, but it's related to Conquer as it's for an ani editor.
So the problem is, when I'm reading the ids of the files, then the result is something like this:
I have tried split with \n and check if the current char was alpha only, but it still does it :/
And when I copy it from the .ani file itself, then it would be:
So what could I do to make the itemid being normal? It's really bugging me ><
And this is how I get the item id:
ItemIDs is a List<string>.
How I call it:
So the problem is, when I'm reading the ids of the files, then the result is something like this:
Code:
561359 1
And when I copy it from the .ani file itself, then it would be:
Code:
5613591
And this is how I get the item id:
Code:
for (int i = 0; i < Values.Length; i++)
{
if (Values[i].StartsWith("["))
{
ItemIDs.Add((Values[i] + 1).Replace("[Item", "").Replace("]", ""));
}
}
How I call it:
Code:
foreach (string id in ItemIDs)
{
string select = comboBox1.SelectedItem.ToString();
if (select == id)
{
textBox1.Text = "Item" + id;