vb6 - 如何在 VB6 中使用自己的文件 ocx 解决“编译错误:类型不匹配”
问题描述
我有一个名为 GridEntry.ocx 的 ActiveX,我从下载链接GridEntry.ocx中找到它
我想用它来做一个软件。但我遇到了麻烦,并收到一条错误消息。“编译错误:类型不匹配”我的代码
Private Sub GridEntry1_KeyPress(KeyAscii As Integer, Row As Integer, Col As Byte)
If KeyAscii = 13 Then
Post = GridEntry1.CellFocus(0, 1)
With GridEntry1
.Caption = "TEST"
End With
End If
End Sub
解决方案
用这个
Private Sub GridEntry1_KeyPress(KeyAscii As Integer, Row As Integer, Col As Byte)
If KeyAscii = 13 Then
Call GridEntry1.CellFocus(0, 1)
With GridEntry1
.Caption = "TEST"
End With
End If
End Sub
推荐阅读
- java - HAPI FHIR 检索患者
- gdb - 进程的 GDB 全内存转储
- python - 如何在 C# 和 python 应用程序之间建立快速通信?
- python - 无法将参数从列表传递给脚本
- hl7-fhir - 有没有办法生成综合患者数据,然后通过 fhir 模式公开它?
- html - Flask:动态路由导致 render_template 忽略 (jinjer2) html-formatting
- fastreport - Fastreport 在 Getit Delphi 中不起作用
- r - 使用一个数据帧中的系数(斜率和截距)来计算第二个数据帧中的值列表
- javascript - 使用 JSON 数据迭代表
- node.js - 如何使用 EJS 链接 Express 中公共目录以外的文件?