1234567
for(auto& i : stringVariable) { if(i >= '0' && i <= '9') { return whatEverErrorCodeYouAreUsing; } }