Forums Register Login

squares pad out the fields in my db

+Pie Number of slices to send: Send
has anyone else's database got hex characters 01 to 1F padding out the fields in their database.
is that one of the functions of the Data subclass, to filter this kind of stuff out?
any advise greatly appreciated. cheers, dean
+Pie Number of slices to send: Send
Try out .trim(), should help!
+Pie Number of slices to send: Send
cheers, mate
+Pie Number of slices to send: Send
I can't filter out this stuff using trim() , my code is as follows
for ( int i = 1; i < count; i++ ) {
try {
if ( null != ( row = db.getRecord(i) ) ) {
rowData[i] = row.getValues();
}
} catch(DatabaseException dbe)
{
System.out.println(dbe.getMessage());
}
}
JTable table = new JTable(rowData, columnNames);
Please suggest me a way to do this.
Thanks
Ravindra
+Pie Number of slices to send: Send
In your data class, readRecord method you replaced a deprecated method for the constructor of a String, if you add it to the end of that statement, you will be fine.
So
rv[i] = new String(blahParam, blahParam, etc).trim();

Mark
+Pie Number of slices to send: Send
Great !
The square pads are removed now.
It is high time , I should start using the debugger in IntelliJ IDEA 2.5.1 Java IDE which I am using it to develop my FBN project.
Thanks
Ravindra
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 673 times.
Similar Threads
Updating an object in Hibernate without loading entire object
Reading fields' information of DataBase
Entering data into a DB - very newbie :/
Books or Links - Database Application
Writing to DB file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:20:46.