However you do sacrifice Unicode capabilities - seldom a real problem anyway though since most other VB6 controls are not Unicode aware either. If you insist on or must use an unbound data entry grid the DBGrid makes a good choice. When you want a data entry grid your best choice is a data-bound DataGrid control. I avoided Splits entirely here, because that seems to be an even more foreign topic to those who don't work with grid-based applications extensively. I find that most people are a bit clueless about ESC & DEL keys and grid navigation (arrow keys, and TAB if you enable it in the grid). The Form in the demo has some labels with a few basic instructions on how to use special keystrokes in a data entry grid. The source code has comments to help you understand it, but for details you might want to crack open that DBGRID32.HLP file! You should be able to just un-ZIP the attachment, open the VBP file, and Run. Users can enter quotes in the grid but load & store swap between quotes and vbFormFeed characters, a handy trick. ![]() For real programs you generally would do this in the IDE, but sometimes you want runtime flexibility too.īeyond this column layout INI, the program loads/stores using a TXT file in VB's Write#/Input# (CSV-like) format with a little twist to handle storing quotes (") in String fields that normally can't have them. This isn't required, and you can readily define your DBGrid columns in the IDE instead. However it sets up the column layout at runtime based on an INI file. This demo (attached) sets many of its DBGrid's properties at design time. ![]() And if they don't even have them even the willing and able can't do so.īut we can plop another copy/paste demo out here on the Web! We can't convince people to read manuals (this is a lost cause).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |