This loop replaces the return_value contents every time through the loop, so if the last bound value returned by the query is an empty string, that's what you will get as a return from your function. Maybe you want "return_value +=" instead?while(query.next()) {
return_value = query.value(bound_out_value).toString();
}




Reply With Quote

Bookmarks