VB6 Turn vb.net

Source: Internet
Author: User

have been using VB6 to write software, but the recent system to do the Web version, but the previous business rules are all in the code to write dead, no use of the storage process, if the web-side rewrite rules, the workload is too large, project time is not allowed, had to transfer business rules to vb.net. Now the vb.net version is not supported from the VB6 transfer, but you can directly copy the business rules into the new vb.net, the difference is very small, basically change the line. The following points in the conversion process should pay special attention to:

1, VB6 in the procedure call can not enclose the argument without parentheses, such as add a A, this is legal, but vb.net does not support this notation, must be add (a, b) such a change.

2, VB6 support exclamation mark (!) The form of access to field, such as!order_no= "abcdef", is legal and must be changed to. Fields ("Order_no") in vb.net. value= "ABCdef".

3. Optional parameters must have a default value. IsMissing no longer valid, should be changed to nothing to judge.

Historical reasons, the 2nd question most, the system used a large number of exclamation mark, if a line of manual change will over, but also prone to error, had to write a conversion tool (internal use, not to deal with the interface), click the button to complete.

VB6 Turn vb.net

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.