home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / 8487 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!agate!usenet.ins.cwru.edu!po.CWRU.Edu!beh
  2. From: beh@po.CWRU.Edu (Bob E. Hetzel)
  3. Newsgroups: comp.databases
  4. Subject: Re: Paradox 4.0 ShowDialog CheckBoxes question
  5. Date: 15 Dec 1992 04:59:16 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 28
  8. Message-ID: <1gjon4INNmbm@usenet.INS.CWRU.Edu>
  9. References: <92348.230646ISPAJW@ASUACAD.BITNET>
  10. Reply-To: beh@po.CWRU.Edu (Bob E. Hetzel)
  11. NNTP-Posting-Host: slc12.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, ISPAJW@ASUACAD.BITNET (Robert's Dad) says:
  15.  
  16. >Hi,
  17. >  I would like to create a dialog box in such a way that the user can
  18. >select one or more ID numbers to process.  I know that I can use the
  19. >ShowDialog CheckBoxes feature.  Here's the fun part:  The list of ID
  20. >numbers is not static.  They are contained in a table which I load into
  21. >an array using Scan.  Is there a way to use CheckBoxes (or another,
  22. >similar feature) so that the user can select one or more ID numbers
  23. >when the number of ID numbers is not known until runtime?
  24.  
  25. Faced with the idea of having several dialog boxes pop up at the
  26. user when appropriate fields are entered in formview, I decided
  27. to make a procedure I called showdialogbox.  as parameters, I passed
  28. all information needed, such as the pickarray name, size of the 
  29. pickarray, location, width, height, location of the ok button, etc.
  30. You can then just call the procedure with one line of code whenever
  31. you need a popup that is different from others you need to have.
  32. Sound logical?  
  33.  
  34. It worked for me--reducing 10-15 lines of code x 10 popups to only
  35. about 25-30 or so lines of code.
  36. -- 
  37. "I held the blade, in trembling hands,
  38.  Prepared to make it hurt.
  39.  Just then the phone rang... 
  40.  I never had the nerve to make the final cut".-- Pink Floyd, 1983.
  41.