Powerdesigner name/code automatically adjusts Chinese comments

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.