请问下面一段程序怎么解释呀 实在看不明白,求详细解释Public Function Xls_OpenFileName() As String Dim OF As OpenFilename, Temp As String, rtv As Long, Filter As String Temp = String$(5120, vbNullChar) Filter = "Microsoft

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 02:29:12
请问下面一段程序怎么解释呀实在看不明白,求详细解释PublicFunctionXls_OpenFileName()AsStringDimOFAsOpenFilename,TempAsString,rt

请问下面一段程序怎么解释呀 实在看不明白,求详细解释Public Function Xls_OpenFileName() As String Dim OF As OpenFilename, Temp As String, rtv As Long, Filter As String Temp = String$(5120, vbNullChar) Filter = "Microsoft
请问下面一段程序怎么解释呀 实在看不明白,求详细解释
Public Function Xls_OpenFileName() As String
Dim OF As OpenFilename, Temp As String, rtv As Long, Filter As String
Temp = String$(5120, vbNullChar)
Filter = "Microsoft Office Excel 文件 (*.xls)" & vbNullChar & "*.xls" & vbNullChar & vbNullChar
With OF
.lStructSize = Len(OF)
.hwndOwner = Application.hWndAccessApp
.lpstrFile = Temp
.nMaxFile = 5120
.lpstrFilter = Filter
.lpstrInitialDir = CurrentSelectpass
.nFilterIndex = 1
.Flags = &H4
.lpstrTitle = "请指定文件名"
End With
rtv = GetOpenFileName(OF)
If rtv Then
Xls_OpenFileName = Left$(OF.lpstrFile, InStr(OF.lpstrFile, vbNullChar) - 1)
' At Once the folder is selected one, it is maintaining.
CurrentSelectpass = Xls_OpenFileName
End If
End Function

请问下面一段程序怎么解释呀 实在看不明白,求详细解释Public Function Xls_OpenFileName() As String Dim OF As OpenFilename, Temp As String, rtv As Long, Filter As String Temp = String$(5120, vbNullChar) Filter = "Microsoft
Public Function Xls_OpenFileName() As String -方法名称:Xls_OpenFileName string类型
Dim OF As OpenFilename,Temp As String,rtv As Long,Filter As String -定义变量:of 打开文件名称,trmp string类型,filter string类型
Temp = String$(5120,vbNullChar) -temp 大小不能为空 最大5120K
Filter = "Microsoft Office Excel 文件 (*.xls)" & vbNullChar & "*.xls" & vbNullChar & vbNullChar
With OF -文件名称.xls
.lStructSize = Len(OF) -取长度
.hwndOwner = Application.hWndAccessApp -打开access一个方法
.lpstrFile = Temp -文件名
.nMaxFile = 5120 -文件最大值
.lpstrFilter = Filter -文件名
.lpstrInitialDir = CurrentSelectpass
.nFilterIndex = 1 -页码
.Flags = &H4 -编码
.lpstrTitle = "请指定文件名" -错误提示
End With
rtv = GetOpenFileName(OF)
If rtv Then
Xls_OpenFileName = Left$(OF.lpstrFile,InStr(OF.lpstrFile,vbNullChar) - 1)
' At Once the folder is selected one,it is maintaining.
CurrentSelectpass = Xls_OpenFileName
End If -判断文件是否选中
End Function -结束方法

请问下面一段程序怎么解释呀 实在看不明白,求详细解释Public Function Xls_OpenFileName() As String Dim OF As OpenFilename, Temp As String, rtv As Long, Filter As String Temp = String$(5120, vbNullChar) Filter = Microsoft 请问下面这个程序怎么解释 main() {int n=4; while(n--)printf(%d,--n); } 最后一步实在是看不明白 下面这段程序怎么解释?use adventureworksgoupdate person.address set city='Boston' where addressid=1请一句一句解释,特别是第一句这是数据库里面的一段程序 刘老师,打搅了~看到您对下面定理的证明,画红圈标注的地方不明白为什么,希望您能解释,谢谢刘老师最后边的这个结论怎么看出来的呀 请教一道数电题目这题为什么M1=1,QDQCQBQA=1100而M1=0,就等于1000,怎么看的?实在不明白,求详细解释,谢谢! 请问下面第9题怎么解释? 工地说的降水是什么意思啊我实在不明白 求解释 请分析下面一段话,我怎么看都不明白1.王汝鹏:“中红”秘书长.2.王树培:“商红会”会长.3.王树民:“商红会”副会长,王鼎公司前总经理.4.王彦达:“王鼎公司”法人代表,大股东.5.王抗 张大妈在超市买了一袋洗衣粉,发现包装袋上标有这样一段字条:净重:800±5g.张大妈怎么也看不明白是什么意思.你能给她解释清楚吗? 这下面的英文怎么解释,不懂怎么看 这个小篆体字,怎么读好像是“爪字头”的下面那部分看不明白 血液检查表怎么看,我实在看不懂,有谁可以解释下, 怎么求二分法的精确度实在不明白丫丫丫丫 关于数列计算 我怎么就看不明白上面怎么等于下面的里面怎么变成1-了呢 数列程序图怎么看 用matlab做下面图形,具体怎么写程序呀! 我实在是不明白.