How do I Keep a variable for future use?

J

John W.

I'm trying to design a template with which 20 or so people would input
information.
I don't know the names of each person and wish them to enter their own
name into the template they going to use - but only once as this
information won't change.

Would I use an input box to get the name then save the template for
future use, with the name in it (the first time it is used), can I do
this with a template? or could I
save the name to disk and have each new document retrieve the name
from disk?

If so, how do I do this? Where do I save it to?

Many thanks if youcan help.

John.
 
M

Malcolm Smith

John

No used the User part of the registry for this.

1. Open the template.
2. On the open, check the required part of the HKEY_CURRENTUSER hive of
the registry for the required value.
3. If it's not present then ask for it.
4. If the user changes the value then insert it into the HKEY_CURRENTUSER
hive.


Does this make any sense?

Malc
www.dragondrop.com
 
W

Word Heretic

G'day John W. <>,

<coffs>

You mean your Standard Operating Environment (SOE) needs to ensure the
user name is properly set for each machine so you can read
Application.UserName???


John W. said:
I'm trying to design a template with which 20 or so people would input
information.
I don't know the names of each person and wish them to enter their own
name into the template they going to use - but only once as this
information won't change.

Would I use an input box to get the name then save the template for
future use, with the name in it (the first time it is used), can I do
this with a template? or could I
save the name to disk and have each new document retrieve the name
from disk?

If so, how do I do this? Where do I save it to?

Many thanks if youcan help.

John.

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email (e-mail address removed)
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 
J

John W.

On Sat, 04 Oct 2003 00:08:01 +1000, Word Heretic

This template is for my wife who is a teacher, to do 30 or so school
reports. She will input the pupil's name into each document (based on
the template) along with their comments and marks etc. That's not a
problem.
But if it works OK I'd like to give it to her fellow teachers to use
also.

This will mean a different Teacher's Name on the front of each of
their own reports, which I can't put on the original template 'cos I
don't know all the teachers.

I presume that I can't anticipate that the computer that each teacher
will use (maybe at school, maybe at home) will have the name required
for the front of the report therefor can't use Application.UserName?

So I need each Teacher to enter their own name once only when they
first run the Template/document thence never need to enter it again
for the following 30 or so reports which may be done over several
days.
Many thanks for your reply.
John.
 
W

Word Heretic

G'day John W. <>,

Almost impossible by process definition:

Your teachers do not have personal machines - thus any attempt to
store their name for that machine is fraught with failure.

About the best bet is to populate a text file on the server with their
entered attempts and attempt to match each keypress against single
name, or pop up a dialog that displays all known names from the file
with a button for Add New Teacher.


John W. said:
On Sat, 04 Oct 2003 00:08:01 +1000, Word Heretic

This template is for my wife who is a teacher, to do 30 or so school
reports. She will input the pupil's name into each document (based on
the template) along with their comments and marks etc. That's not a
problem.
But if it works OK I'd like to give it to her fellow teachers to use
also.

This will mean a different Teacher's Name on the front of each of
their own reports, which I can't put on the original template 'cos I
don't know all the teachers.

I presume that I can't anticipate that the computer that each teacher
will use (maybe at school, maybe at home) will have the name required
for the front of the report therefor can't use Application.UserName?

So I need each Teacher to enter their own name once only when they
first run the Template/document thence never need to enter it again
for the following 30 or so reports which may be done over several
days.
Many thanks for your reply.
John.

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email (e-mail address removed)
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 
J

John W.

OK. Thank you Steve.

G'day John W. <>,

Almost impossible by process definition:

Your teachers do not have personal machines - thus any attempt to
store their name for that machine is fraught with failure.

About the best bet is to populate a text file on the server with their
entered attempts and attempt to match each keypress against single
name, or pop up a dialog that displays all known names from the file
with a button for Add New Teacher.




Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email (e-mail address removed)
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 
M

Malcolm Smith

John

What is wrong about using the h KEY_COMMONUSER hive of the registry as in
my previous post?

- Malc
 
W

Word Heretic

G'day (e-mail address removed) (Malcolm Smith),

Because n teachers share 1 machine :) They don't logon, they just
work up and use it.

(e-mail address removed) (Malcolm Smith) was spinning this yarn:
John

What is wrong about using the h KEY_COMMONUSER hive of the registry as in
my previous post?

- Malc

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email (e-mail address removed)
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top