请教vb中的setgrid 函数 和setgridhead 函数的意思和用法

来源:百度知道 编辑:UC知道 时间:2024/09/25 00:29:56
Public Sub setgridhead()
On Error GoTo setheaderror
MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 0
setgridhead 是什么意思
If Option2.Value = True Then
sql = "select * from 户型资料 where hst_buildarea >='" & Trim(Text1.Text) & "' and hst_buildarea <='" & Trim(Text2.Text) & "'"
a.CursorLocation = adUseClient
a.Open sql
setgrid
setgridhead
displaygrid
a.Close
End If
setgrid setgridhead 是什么意思

VB貌似没有这两个函数
=============================

刚看到贴出的代码,这个 setgridhead 是一个无返回值的过程,从名字上看应该是设置MSFlexGrid1.Col 的各列头宽度,而这个 setgrid 应该是处理根据上面打开的数据集对MSFlexGrid1付数据等的,用鼠标指着 setgridhead 及 setgrid 按右键—>定义看看是不是。

同意楼上观点,没有这个函数好像也没有这个api,因该是个自定义函数啦,如果有代码就贴出给你看下

调用的自定义函数,你那个是个模块或类模的一个过程,因该还有一个自定义函数setgrid的 setgridhead这个就是你这个过程