MapX reads data from the database to form a new layer

Source: Internet
Author: User

InC #ImplementationMapXThere are two problems in forming a new layer for reading data from the database:

1.MapXRead data from the database to form a new layer;

2.SetDataTableConvertADOOfRecordset.

The second problem is caused by the first one, becauseMapXIsCOMControl, and it only supportsADOAndC #It is generally used for programming.ADO. NETMethod. Therefore, you need to perform a conversion between the two methods. (You can alsoC #Used inADOMethod, but this is a lagging method after all. For the solution, refer to the article 《Visual Basic. NETUsed inADOAccess the database).

For the solution to the second problem, see the author's article titledDataTableConvert objectsRecordsetObject (aspx "> http://blog.csdn.net/allentao/archive/2005/05/11/373634.aspx), this article only describesRecordsetObject, how to solve the first problem.

The procedure is as follows:

1.CreateCMapXFieldsObject, and add fields to the fields in the database;

2.CreateCMapXBindLayerObject, specify the serial number of its coordinate value field;

3.DirectionMap. DataSets

Related Article

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.