hi i'm using microsoft visual studio 2015, c++ forms , having trouble split. have tried many code exemples (all of them on console application , didn't know how make them work me). how @ least imagining code (simplified code exemple below). there string take textbox1, split string there dot, , putting them in table.
string ^ text = textbox1->text; text->tostring()->split('.'); tablegrid->rows[0]->cells[1]->value = text;
split
not modify text
here. instead returns array of split results.
you need capture , use results this:
string^ text = textbox1->text; cli::array<string^>^ pieces = text->split('.'); (int = 0; < pieces->length; ++i) { // add pieces[i] table. perhaps: tablegrid->rows[0]->cells[i]->value = pieces[i]; }
Comments
Post a Comment