This topic is locked

how to get the values of the labels

2/15/2009 4:59:11 PM
ASPRunnerPro General questions
T
totti_60 author

in the event sessions, after updated record, if add event "send email with new data"
dkeys = dict.keys

For n = 0 To dict.Count-2

message = message & dkeys(n) & " : " & dict(dkeys(n)) & vbcrlf

Next

Based on "choose fields to appear on each pages" the array dkeys(n) return to me the values of fields, but if i want to obtain the label value what i have to do ???

Better if i could get the labels i use in the "miscellaneus" session for different language.
Thank you for your precious support

Antonio

J
Jane 2/16/2009

Antonio,
here is a sample:

message = message & Label(dkeys(n),strTableName) & " : " & dict(dkeys(n)) & vbcrlf

T
totti_60 author 2/16/2009

Antonio,

here is a sample:


It works nice, thank you Jane, but instead to get these labels i wish to get the labels i use in the labels language list.

Since there are 3 sort of peoples involved in this procedure, chinese, italian, and english, i created three labels language list, so that i wish to send email based on customer's language selecting the approriate label from the labels language list.
Thank you for you kind attention.

Best Regards

Antonio

J
Jane 2/17/2009

Antonio,
Label() function returns labels for current selected language.

If you select italian on the page all labels will be in italian.

T
totti_60 author 2/17/2009

Antonio,

Label() function returns labels for current selected language.

If you select italian on the page all labels will be in italian.


Dear Jane, I will never finish to say thank you for you promptly reply.

Anyway, I have office Honk Kong, China And Italy, also I have customer in Italy and outside italy.

The software i created avoid language conflict in exchange informations.

It means that even i work in Italian or english or chinese, when i put an information in my database, the program will spread out this info by email to chinese office, italian customer, and honk kong supplier, so based od the data i recorded in advance in know the language of the receiver, that means that even i work in italian, my system will send email in english to customer, in chinese to the chinese inspetor, and in english to the administrative department in Hong Kong.

Since the information of the different language label is inside, how can I take it out and use ??????
I love this software . . .
Thank you for support

Antonio

J
Jane 2/19/2009

Antonio,
I suppose you need to select language before sending email:

cur_lang = Session("language")

Session("language") = "English"

'send email here

Session("language") = cur_lang