home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!rtech!ingres!pab
- From: pab@Ingres.COM (Phil Bloemink)
- Subject: Re: Windows4gl question on stackfield
- Message-ID: <1993Jan21.181055.22732@pony.Ingres.COM>
- Keywords: Windows4gl, stackfield
- Reply-To: pab@Ingres.COM (Phil Bloemink)
- Organization: Ingres Division, ASK Computer Systems.
- References: <1993Jan21.042018.3170@news.nd.edu>
- Date: 21 Jan 93 18:10:55 GMT
- Lines: 45
-
- In article <1993Jan21.042018.3170@news.nd.edu>, nariani@tiamat.cc.nd.edu (Sunil Nariani) writes:
- >I have 2 stackfields containing button fields.
- >The stackfields are called row1, row2.
- >If a user clicks on a button in one of the rows, I
- >want to know which row (not button) was clicked.
- >
- >The code should go as follows
- >
- >on ChildClick row1, on ChildClick row2 =
- >begin
- > What code tells if it was row1 or row2 ?
- >end;
- >
- >
- >Note: I don't want separate event blocks as in the following code.
- >on ChildClick row1 =
- >begin
- > ...
- >end;
- >
- >on ChildClick row2 =
- >begin
- > ...
- >end;
- >
- >
-
- If you want to know the name of the stackfield that contains the button
- that was clicked on, you can use the following:
-
- stack_name = FORMFIELD(CurFrame.TriggerField).ParentField.Name;
-
- Or, if you just need the reference variable for the StackField
- you can use:
-
- stack_ptr = FORMFIELD(CurFrame.TriggerField).ParentField;
-
-
- Phil Bloemink
- INGRES Tech. Support
-
- <standard disclaimer> <obscure quote> <impressive graphic>
-
-
-
-