• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Field length catch - FBN

 
Akshay Sharma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
While testing doing FBN I identified a potential problem.
If we have look at the kinda data in the db.db file
I observerd that the Fligt Number can be maximum of 5 characters.
IIIrly origin / destination airport can be max 3 chars.
Now when we add a new flight then should be we set the maxm field length of the text fields based on the lengths of fields.
Anyway when the Data class writes a record using Data Record it will pick up only the maximum length as specified in db.db.
The user is disillusioned as to why the flight no. etc has been truncated if
he enters a bigger value in the test field.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Akshay
Why are you adding new flights? Is this part of your GUI? I didn't see any requirements for us to add new flights.
You are right though - it would be a good idea to set up entry fields so that users cannot enter data larger than allowable size, plus do data validation during entry where possible, and further checks after entry to confirm the data is acceptable.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic