- 2
- 0
- 约4.59千字
- 约 6页
- 2018-01-03 发布于河南
- 举报
树型目录代码
树型目录代码
thisform.label1.Caption =序号:+ltrim(Str(nIndex))
ThisForm.label2.Caption =路径:+ thisform.ctTree2.Path(nIndex)
ThisForm.label3.Caption=文本:+thisform.ctTree2.CellText(nindex,ncolumn)
***用到的函数
AddNode 添加
InsertNode 插入
RemoveNode 移除
*** OLE 控制事件 *** 2005-8-15
*** ActiveX Control Event ***
WITH this
.displayheader = .T.
.object.font.name = 宋体
.object.headerfont.name = 宋体
.object.headerfont.bold = .T.
.includetime = .F.
.headerfilltype = 2
.headerbackcolor = RGB(139,71,38)
*!* ********************************************************************
*!* The following will add the columns to the ctTree component *
*!* ********************************************************************
nIndex = .addcolumn(第一列,150)
.columnsortable(nIndex) = .T.
* nIndex = .addcolumn(第二列:Numeric,150)
* .columnsortable(nIndex) = .T.
* .columndatatype(nIndex) = 2
* nIndex = .addcolumn(第三列:Dates,150)
* .columnsortable(nIndex) = .T.
* .columndatatype(nIndex) = 3
*!* ****************************************************************************************************
*!* The following will add the nodes to the component. Please note that the dates are in the form *
*!* of an integer. Each integer represents the number of days since January 1, 1900. Please note the *
*!* sample code below illustrating the conversion process: *
*!* Variable = STR(DATE() - CTOD(01/01/1900)+2) Two days for the day offset property of the ctDate *
*!* nindex = thisform.ctList1.addItem (Variable + ;String) *
*!* ****************************************************************************************************
.AddNode(新项目;8984;37467, 0, 1)
nIndex = .AddNode(化纤长丝部;2436;34728, 0, 1)
.NodeExpanded(nIndex) = .F. 展开
.AddNode(生产办;2374;34827, 0, 2)
.AddNode(设备动力办;1273;33846, 0, 2)
.AddNode(博易短纤;2263;34857, 0, 1)
nIndex = .AddNode(织造公司;4563;33484, 0, 1)
.NodeExpanded(nIndex) = .
您可能关注的文档
- 施工员考试大纲(土建施工员(工长) 文本文档.doc
- 旅游实用礼仪.doc
- 旅游咨询师 管理入行月薪达3000.doc
- 无双大蛇Z人物素材攻略.doc
- 无双大蛇全外传及全角色出现的攻略.doc
- 无双大蛇全关卡出现方法.doc
- 无双大蛇攻略2.doc
- 无聊的时候.doc
- 无证驾驶致人伤亡保险公司该不该赔.doc
- 无限极让你成为富有的人.doc
- 浙江省温州市2024-2025学年七年级上学期语文期末考查卷.docx
- 精品解析:北京市建华实验学校2024-2025学年七年级下学期期中英语试题(原卷版).docx
- 精品解析:北京市通州区2024-2025学年七年级下学期期末考试英语试卷(原卷版).docx
- 精品解析:北京市回民学校2024-2025学年九年级上学期期中语文试题(解析版).docx
- 精品解析:北京市海淀区2025-2026学年九年级上学期期末语文试题(解析版).docx
- 精品解析:北京市东城区汇文中学2025-2026学年八年级上学期期中语文试题(原卷版).docx
- 精品解析:北京市回民学校2024-2025学年九年级上学期期中语文试题(原卷版).docx
- 精品解析:2024-2025学年广东省广州市从化区街口镇中心小学人教版五年级上册期中测试数学试卷(解析版).docx
- 精品解析:北京市通州区2024-2025学年七年级下学期期末考试英语试卷(解析版).docx
- 精品解析:北京市建华实验学校2024-2025学年七年级下学期期中英语试题(解析版).docx
最近下载
- 安徽省合肥市名校联考2026届数学八年级第一学期期末教学质量检测模拟试题含解析.doc VIP
- 2025年山西职业单招考试真题及答案 完整版2025.pdf VIP
- 区块链基本概念.pptx VIP
- 2021年度“双一流”建设专项资金绩效评价自评报告.pdf VIP
- 劳动法案例分析及参考答案.docx VIP
- 广西左江治旱黑水河现代化灌区工程环境影响报告书.pdf VIP
- FDA热效应评估指南(中文翻译件) thermal effects evaluation.pdf VIP
- 华东理工大学双一流建设中期自评报告.PDF VIP
- 项目环境与职业健康安全管理工作计划.doc VIP
- 人人商城恶意诉讼应诉指南-含胜诉答辩状和证据清单.docx
原创力文档

文档评论(0)