Hi all,

I'm having a problem with a character value being returned by one of my stored procedures in Oracle using the OCi driver.

I create a QString to retrieve the data into but I found that I also have to create a char* variable to bind to the procedure value:

QString fp;
char fpc[525];
...
query.bindValue(1, fpc, QSql:ut);
...
query.exec();
...
fp = query.boundValue(1).toString();

Is this the correct approach? The thing is, the value of fp is, of course, fixed length & padded with garbage characters after the "real" value. How can I get rid of those garbage characters? Maybe this isn't really a stored procedure question just a character string manipulation question.

Thanks very much,
Jim