sys_ms@bmc1.uu.se (03/29/88)
I have a couple of questions concerning programming in 4th Dimension. 1) Is it in som way possible to have an included layout within a DIALOG procedure. 2) Is it possible to detect menu choices with the menu selected command while doing an ADD RECORD. I have only succeded with this command inside a DIALOG procedure. 3) Is it possible to pass a filename as a parameter to a global procedure. within proc1 globalproc2([filename]) and within globalproc2 NEXT RECORD($1) or something similar. This may be enough for today. Many thanks if you can give me the answers. Mats Sundvall BMC University of Uppsala Sweden mats@bmc1.uu.se
yvw@gmdzi.UUCP (Yvo Van Wezemael) (04/07/88)
In article <1393@bmc1.uu.se>, sys_ms@bmc1.uu.se writes: > > I have a couple of questions concerning programming in 4th Dimension. > > 1) Is it in som way possible to have an included layout within a DIALOG > procedure. > > 2) Is it possible to detect menu choices with the menu selected > command while doing an ADD RECORD. I have only succeded with > this command inside a DIALOG procedure. > > 3) Is it possible to pass a filename as a parameter to a global > procedure. > ad 1) I never tried, so I don't know. ad 2) I have worked with menu selected inside a ADD RECORD layout procedure. It works without problems after taking it out of a CASE which checked for buttons, modified fields etc. ad 3) It is mentioned somewhere in the manual that you CAN'T pass a filename as parameter. What you can do is passing the string "[filename]" and then using EXECUTE("NEXT RECORD("+$1+")"). (I hate it, I want to pass filenames too.) Hope it helps Yvo Van Wezemael -- Yvo Van Wezemael (yvo@L2): Postfach 1240 (Schloss Birlinghoven) D-5205 Sankt Augustin 1 seismo!...unido!gmdzi!yvw.UUCP