Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-02-2005, 05:01 PM
Ken Ken is online now
Registered User
 
Join Date: 05-08-2003
Posts: 20
Nested macros

I am trying to use a crude version of macro arrays and running into issues. I would like it be able to have 3 (or more) macros with the names

SUMMARY0
SUMMARY1
SUMMARY2

and I would like to access them based on an index named %INDEX%. So that I can dump the contents to a file. So I would use a WriteTextToFile command to write the correct value to a file something like

%DATA%, %MY_FILE%, %INDEX%, %%SUMMARY%INDEX%%

Is this possible??

Ken
Reply With Quote
  #2  
Old 09-05-2005, 06:53 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
[vbld_AllMacros().Item("SUMMARY" & vbld_AllMacros().Item("INDEX").Value).Value]

or

[Application.ExpandMacros("%%SUMMARY" & Application.ExpandMacros("%%INDEX%%") & "%%")]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:36 AM.


Copyright © 1999-2023 Kinook Software, Inc.