home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / codebsic / lookup.frm (.txt) < prev    next >
Visual Basic Form  |  1995-02-01  |  3KB  |  72 lines

  1. frmLookup1
  2. CodeControls 2.0
  3. Form55o    
  4.     CbMaster1
  5. Master4
  6. MASTER 
  7. MASTER.DBF!
  8. -    CbMaster1
  9. cmdMain
  10.     Main Menu
  11. CbEdit1
  12. Edit4
  13. ,0    CbMaster11
  14. CITY6
  15. CbEdit1
  16. CbEdit1
  17. Edit4
  18. ,0    CbMaster11
  19. ADDRESS6
  20. CbEdit1
  21. CbEdit1
  22. Edit4
  23. ,0    CbMaster11
  24. L_NAME6
  25. CbEdit1
  26. CbEdit1
  27. Edit4
  28. ,0    CbMaster11
  29. F_NAME6
  30. CbEdit1
  31. CbCombo1
  32.     ComboBox4
  33. 3    CbMaster14
  34. TRIM(L_NAME) + ", " + F_NAME5
  35. U_LNAME:
  36. CbCombo1
  37. Label1
  38. Label1
  39. Address
  40. Label1
  41.     Last Name
  42. Label1
  43. First Name
  44. Label1
  45. >Corresponding entry for the highlighted record in the list box
  46. Label1
  47. Enter a lookup value here:
  48. Label1
  49. Try entering values in the edit portion of this sample combo control and see how the highlighted list item changes to find the closest match. When the highlighted list item changes, the associated master control's record postion changes to the record that matches this entry, causing the other bound controls displayed here to be updated. All this happens without any code being written !  (The master control on this form is hidden)
  50. Label1
  51. When a CodeControls combo box is linked to a data file through a Master control, CodeControls provides a 'look-up' feature that allows users to automatically locate a record in the data file, based on the contents of the edit portion of the combo control.
  52. Label1
  53. .Lookup features of the List and Combo Controls
  54. MS Sans Serif
  55. CbCombo1_Lookup
  56.     searchstr
  57. Command1_Click
  58. Index
  59.     Form_Load
  60. SetFormPos
  61. Form_Unload
  62. Cancel
  63. frmMain
  64. cmdMain_Click
  65. value
  66. CbCombo1_Lookup
  67. Because tag is UPPER(L_NAME), upper case the search 
  68. value so the appropriate record is located
  69. cmdMain_Click
  70. Form_Load
  71. Form_Unload
  72.