NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·ERP
·REALbasic
·All Categories


Binding EditFields to a Multi-Column ListBox
Topic:REALbasic   Date: 2006-08-15
Printer Friendly: Print   Mobile View: mobile

spacerspacer
<<  <   >  >>

Subject

If you have a ListBox with multiple columns and want to bind EditFields to the columns so that when you select a row with a mouse click or with arrows the EditFields match the columns in the ListBox, then use the change event for the ListBox and assign the EditFields. For instance, for a ListBox with date, title, type, and entry columns and EditFields by the same name, put this code in the Change event for the Listbox:

datefield.Text = me.cell(me.ListIndex,0)
titlefield.Text = me.cell(me.ListIndex,1)
typefield.Text = me.cell(me.ListIndex,2)
entryfield.Text = me.cell(me.ListIndex,3)

Note that if you want to bind a single column ListBox and an EditField, simply select both and add a binding. The above method isn't a binding in this sense, but it does what is needed.


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2012 NetAdminTools.com