Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a large application with too many variables to document esily. Is there a method to export all the variables into a file for documentation puposes/
You can use a VB macro to store them in a text file or clipboard.
From API Guide:
rem ** Show name of all variables in document **
set vars = ActiveDocument.GetVariableDescriptions
for i = 0 to vars.Count - 1
set v = vars.Item(i)
msgbox(v.Name)
next
THis will loop through all the document variables, and within the for-next loop you can insert a line in a text file.
Hope this helps.
You can use a VB macro to store them in a text file or clipboard.
From API Guide:
rem ** Show name of all variables in document **
set vars = ActiveDocument.GetVariableDescriptions
for i = 0 to vars.Count - 1
set v = vars.Item(i)
msgbox(v.Name)
next
THis will loop through all the document variables, and within the for-next loop you can insert a line in a text file.
Hope this helps.
Thanks, this looks like a good workaround to a missing feature!
Steve