Kbase 16600: TranMan and INITIAL values (workaround)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/04/2000 |
|
TranMan and INITIAL values (workaround)
In both TranMan I (v7) and TranMan II (v8),
INITIAL values are stored in an in-memory database
record, just like a real database record. This is so
program variables are accessed just like database
fields (takes care of transactions and other things
automatically). Text strings are stored in the r-code as
offsets in the text segment.
Strings are translatable because string references can be
parsed out by the XREF option in the compiler. This XREF
output file is then used to acquire all translatable strings
for Translation Manager. INITIAL values exist as values in
the program variable record and cannot be parsed out
during a compile.
A workaround would be to develop a script or C program
which would parse through your p-code and look for DEFINE
statements containing the modifier INITIAL and then add a
corresponding assignment statement. DEFINE statements
containing EXTENTs would have to be coded for specially or
recoded by hand. Be sure to make a copy of all of your
affected programs before editting them in this manner!
**** INITIAL values are translatable beginning with version 8.2B. ****
Progress Software Technical Support Note # 16600