Thread View: uw.wordperfect.users
4 messages
4 total messages
Started by sherburn
Tue, 24 Feb 1998 00:00
passing data to nested macro in merge file
Author: sherburn
Date: Tue, 24 Feb 1998 00:00
Date: Tue, 24 Feb 1998 00:00
14 lines
1041 bytes
1041 bytes
I am trying to revise a merge procedure that creates a catalogue from a database. What I want to do is include an image of the item with the data and believe I need to put a nested macro into the merge in order to accomplish this. I am ok to this point, but I also need to pass the file name to the macro (which of course will be different for each record) from the data file. Can I do this using one of the data fields? I am having trouble finding any reference to this sort of action. Any help would be appreciated. Thanks, Paul Downie
Re: passing data to nested macro in merge file
Author: Kenneth Hobson
Date: Wed, 25 Feb 1998 00:00
Date: Wed, 25 Feb 1998 00:00
15 lines
1225 bytes
1225 bytes
>accomplish this. I am ok to this point, but I also need to pass the file >name to the macro (which of course will be different for each record) from >the data file. Can I do this using one of the data fields? Caps are Merge codes: ASSIGN(Add1, FIELD(Address1)) NESTMACRO(teststr) The macro can then reference the variable Add1 which will have the value of Address1 for that record. For an example of the technique in use look at my strtran.zip file at Mac's site http://n9vst.com/wpwin/files.html or get it directly with ftp://n9vst.com/pub/strtran.zip
Re: passing data to nested macro in merge file
Author: Gordon McComb
Date: Wed, 25 Feb 1998 00:00
Date: Wed, 25 Feb 1998 00:00
25 lines
1776 bytes
1776 bytes
In addition to Ken's suggestion, you can also use the ASSIGN command to assign a variable in the first merge, then use VARIABLE command in the second merge to see what's in said variable. That said, I'm not sure I understand the application you want to use this for, and perhaps there is a better way than nesting. So the above just answers your direct question... -- Gordon http://gmccomb.com/wp/ -- New macros book just published http://wpwin.com/ sherburn@pangea.ca wrote: > > I am trying to revise a merge procedure that creates a catalogue from a > database. What I want to do is include an image of the item with the data > and believe I need to put a nested macro into the merge in order to > accomplish this. I am ok to this point, but I also need to pass the file > name to the macro (which of course will be different for each record) from > the data file. Can I do this using one of the data fields? > > I am having trouble finding any reference to this sort of action. Any help > would be appreciated.
Re: passing data to nested macro in merge file
Author: sherburn
Date: Thu, 26 Feb 1998 00:00
Date: Thu, 26 Feb 1998 00:00
20 lines
1385 bytes
1385 bytes
In article <19980225075952UMTR121@DSIBM.OKLADOT.STATE.OK.US>, UMTR121@DSIBM.OKLADOT.STATE.OK.US (Kenneth Hobson) wrote: > >accomplish this. I am ok to this point, but I also need to pass the file > >name to the macro (which of course will be different for each record) from > >the data file. Can I do this using one of the data fields? > > Caps are Merge codes: > ASSIGN(Add1, FIELD(Address1)) > NESTMACRO(teststr) > > The macro can then reference the variable Add1 which will have the > value of Address1 for that record. > > For an example of the technique in use look at my strtran.zip file > at Mac's site http://n9vst.com/wpwin/files.html > or get it directly with ftp://n9vst.com/pub/strtran.zip Yeah, that seems to work great, thanks to everyone who responded.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads