Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Problem -read field length in bytes

 
Vaishali Paramane
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
following is a code to read database.
I want to read field lenght.
right now i used hard coded.

Can anybody help me?



[ August 09, 2007: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have edited your post because we do not allow such large amounts of code which can possibly tell how to read the datafile.

Now - what exactly to you expect? What is the result that you are getting that is confusing you?

//I have problem here I want to display this field size


Why don't you just print it out?
[ August 09, 2007: Message edited by: Barry Gaunt ]
 
Sanjeev Singh
Ranch Hand
Posts: 381
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
following is a code to read database.

It is for reading the schema.
Why you are reading a short value though it is byte?
 
Vaishali Paramane
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Barry & Sanjeev

Thanks for help

My problem solved
[ August 10, 2007: Message edited by: Vaishali Paramane ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic