I need to add a Chinese note to the name field. What should I do at this time?
The following two examples are useful to you.
Examples
· Script 1:
. Set_value (_ first, true, new)
. Foreach_part (% name % ,"'#'")
. If (% _ first %)
. Delete (% currentpart %)
. Set_value (_ first, false, update)
. Else
% Currentpart %
. Endif
. Next
In this example, the content behind # Of the name content is treated as code.
For example, in the name column, enterUsername # user_nameThe code column is automatically changedUser_name
· Script 2:
. Set_value (_ first, true, new)
. Foreach_part (% name % ,"'#'")
. If (% _ first %)
% Currentpart %
. Set_value (_ first, false, update)
. Endif
. Next
In this example, the content in front of # of name content is treated as code.
For example, in the name column, enterUser_name # User NameThe code column is automatically changedUser_name
The procedure is as follows:
1. Open tools> model options...> naming convention in the powerdesigner menu.
2. Select name and enable name/code conversions.
3. Select name to code.Code(Red) paste it in the conversion script content box.
Note: This script must be set before conversion.
If you have already designed it, setting it again will not change the previous things.