B
ben h
Or to put it another way, how to format stored text?
I'm going to store UI and Error message languages in flat file or db
table - first field is the variable name as key (e.g.
ERR_No_AddressLine1), then English as second field, Russian as third
field etc.
The messages will be written to form labels, text boxes, and MsgBoxes,
and may be a bit like this (in VBA string format):
"Save failed: The details for step number %number% are incomplete." &
vbNewLine & "Correct the highlighted items and try again."
I'm thick, and I don't know how to handle basic formatting and
substitutions, like carriage returns, variables such as 'Company Name',
'Software Version' and all that. I started to write a string parsing
routine, but I'm sure this has been done a thousand times before and
better by many of you, what do you do?
Any help appreciated!
ben
I'm going to store UI and Error message languages in flat file or db
table - first field is the variable name as key (e.g.
ERR_No_AddressLine1), then English as second field, Russian as third
field etc.
The messages will be written to form labels, text boxes, and MsgBoxes,
and may be a bit like this (in VBA string format):
"Save failed: The details for step number %number% are incomplete." &
vbNewLine & "Correct the highlighted items and try again."
I'm thick, and I don't know how to handle basic formatting and
substitutions, like carriage returns, variables such as 'Company Name',
'Software Version' and all that. I started to write a string parsing
routine, but I'm sure this has been done a thousand times before and
better by many of you, what do you do?
Any help appreciated!
ben