如何打开文件并将其内容放入文本字段?
我正在尝试学习如何使用公共对话框(Visual Basic 6 中的命令对话框)打开文件,并将其内容放入文本字段中。
我需要仅使用公共对话框,因为我正在尝试在eVB中做同样的应用程序,而eVB不支持这样的东西,这使得VB6开发更加简单:
Dim objFSO As New Scripting.FileSystemObject
Dim objStream As Scripting.TextStream
I'm trying to learn how to open a file, and put its contents in a TextField, using a Common Dialog, only a command dialog in Visual Basic 6.
I need this using a only a common dialog, because I'm trying to do the same application in eVB, and eVB does not support things like these, that makes the VB6 development more simple:
Dim objFSO As New Scripting.FileSystemObject
Dim objStream As Scripting.TextStream
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看通过 WinCE API 访问 eVB 文件。 本文中的示例代码(假设您已经从通用对话框中获取了文件名 (myFileName)):
Check out eVB File Access through the WinCE API. Sample code from the article (assuming you already got your filename (myFileName) from the Common Dialog):