用VB递归算法实现BOM展开的树型结构操作
·26· 机械 2004年第31卷第3期
用递归算法实现BOM 展开的树型结构操作
梁志强,谢菁
(昆明理工大学 机电工程学院,云南 昆明 650093)
摘要:树结构能够很好地表达产品BOM的层次关系,在应用程序中广为应用。本文介绍了用Visual Basic 6.0的树型
结构控件TreeView从数据库中提取数据,显示产品BOM的层次关系。运用递归算法实现在树型结构上直接对树节点进
行查询、删除等操作来完成对数据库的操作。
关键词:递归;BOM;树型结构
中图分类号:TP391 文献标识码:A 文章编号:1006-0316(2004)03 -0026 -03
An implementation of operation of BOM with tree structure using recursive strategy
LIANG Zhi-qiang ,XIE Jing
(Faculty of Mechanical and Electronic Engineering , Kunming University of Science and
Technology, Kunming 650093,China)
Abstract:Tree-structure is good for expressing then rank order of BOM. It is far-ranging in applications. This paper introduces a
method using TreeView Controller of Visual Basic 6.0 to extract d