home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / ingres / 2333 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.4 KB  |  58 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!rtech!ingres!pab
  3. From: pab@Ingres.COM (Phil Bloemink)
  4. Subject: Re: Windows4gl question on stackfield
  5. Message-ID: <1993Jan21.181055.22732@pony.Ingres.COM>
  6. Keywords: Windows4gl, stackfield
  7. Reply-To: pab@Ingres.COM (Phil Bloemink)
  8. Organization: Ingres Division, ASK Computer Systems.
  9. References: <1993Jan21.042018.3170@news.nd.edu>
  10. Date: 21 Jan 93 18:10:55 GMT
  11. Lines: 45
  12.  
  13. In article <1993Jan21.042018.3170@news.nd.edu>, nariani@tiamat.cc.nd.edu (Sunil Nariani) writes:
  14. >I have 2 stackfields containing button fields.
  15. >The stackfields are called row1, row2.
  16. >If a user clicks on a button in one of the rows, I 
  17. >want to know which row (not button) was clicked.
  18. >
  19. >The code should go as follows
  20. >
  21. >on ChildClick row1, on ChildClick row2 = 
  22. >begin
  23. >        What code tells if it was row1 or row2 ?
  24. >end;
  25. >
  26. >
  27. >Note: I don't want separate event blocks as in the following code.
  28. >on ChildClick row1 =
  29. >begin
  30. >    ...
  31. >end;
  32. >
  33. >on ChildClick row2 =
  34. >begin
  35. >    ...
  36. >end;
  37. >
  38. >
  39.  
  40. If you want to know the name of the stackfield that contains the button
  41. that was clicked on, you can use the following:
  42.  
  43. stack_name = FORMFIELD(CurFrame.TriggerField).ParentField.Name;
  44.  
  45. Or, if you just need the reference variable for the StackField
  46. you can use:
  47.  
  48. stack_ptr = FORMFIELD(CurFrame.TriggerField).ParentField;
  49.  
  50.  
  51. Phil Bloemink
  52. INGRES Tech. Support
  53.  
  54. <standard disclaimer>         <obscure quote>        <impressive graphic>
  55.  
  56.  
  57.  
  58.