Storing arrays within a template

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

Could someone please point me in the right direction on this?

What I’m trying to achieve is this:

Create a single template to contain some simple boilerplate and code that
will build a document based on user selection of one or more command buttons
(on a custom tool bar – which I can do).
These command buttons would then build the document based on ‘semi
permanent’ text stored within the template.
The complication is that I’d like to make this multilingual. That is, the
stored text strings would effectively become arrays with different language
representations of the same object.
When I say ‘semi permanent’ above, I’d like to give the user the capability
to edit or add to these arrays of text. An example might be colour, So the
array might be, Green, Grüne, Verde, Groen, etc. I might need 100 or so of
these.

So the question is, Can this be done? Should I try this with, Docvariable
(Not sure, they can have arrays though), Autotext, doc properties or
something else? And can you please point me in the right direction where I
might be able to find some example code for storage and retrieval of said
values.

I guess I could always use an external file and read the values in, however,
I think this is a bit sloppy and doesn’t allow for easy distribution of the
template.

If this is off the scale, or I missed a previous post where its already
explained, then sorry of the inconvenience.

Alternatively, if some VBA magician can give me a pointer, I’ll be amazed at
your brilliance and forever in your debt.

Kind Regards,

Dave

.



Relevant Pages

  • Re: trouble creating array of objects
    ... > about dynamically multidimensinoal arrays is described. ... it's an excellent learning excercise. ... This is called the C++ standard template library and it is an addition to ... >> Another reason might be the overheads incurred. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Help needed for a sorting code in the literature
    ... It doesn't need to deal with checking memory. ... >>template version where the type being sorted is a template parameter. ... >>I have tested the speed of the heapsort code above on arrays of up to ...
    (sci.crypt)
  • Help: How many explicit specializations required?
    ... I need to have a template for T ... Passing arrays of T will be resolved into case 2. ... void func ... int main ...
    (comp.lang.cpp)
  • Re: Fortran vs. C++ : Which is best to choose now i
    ... programming through the template facility and associated standard ... All of the libraries mentioned below are ... You can't take a code that uses Blitz arrays ... LAPACK effectively requires compiling the entire LAPACK library ...
    (comp.lang.fortran)
  • Re: How to Enable/Disable Word Default Menus
    ... Put a macro into your template that intercepts the command. ... Charles Kenyon ... the template that I am using disables the ...
    (microsoft.public.word.vba.general)