How convert TArray FString to TArray int32

Good day all. I have one question about convertation dynamic strings array to int32 array. Atoi don’t take all array, only first element.

Hi ,

You must iterate over string array and convert each element to int and add it to your int array.

TArray<FString> StringArray;

TArray<int32> IntArray;
for (auto& Str : StringArray)

Best regards,

Just to add to 's thing, depending on what you’re doing with the array and how frequently you can always just Atoi when you actually want to use your strings as ints also.

Thanks for answer, .
Yours faithfully, Andrew.