如何在列表框中发送文本项目 [英] How to text file items in a listbox

查看:36
本文介绍了如何在列表框中发送文本项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究数据库,我希望有人可以告诉我如何将列表框中的内容列入记事本中的文本文件我已经尝试了所有我知道的但我仍然无法做到这一点?我用过

i have been working on a database and i was hoping someone out there can tell me how i can list the things in a listbox to text file in notepad i have tried everything i know but i still cant do it? i have used

展开 | 选择 | Wrap | 行号

推荐答案

您可以在立即窗口中打印相同的内容吗?

换句话说,你非常非常确定有什么要附加到外部文件吗?
Can you print the same thing in Immediate window ?
In the other words, are you very very sure that is there something to append to external file ?


当我做的时候它,它说坏文件名但是列表框中有一些东西。那么为什么不打印。我的意思是如果列表框中有什么东西它应该打印正确吗?
well when i do it, it says "bad file name" but there is some thing in the listbox. so why doesnt it print. i mean if there is something in the listbox it should print right?


ff NOT 一个字符串,因为FreeFile返回一个数值。

我不知道它是一个整数还是一个长整数。

所以从DIM语句中删除 As String 以便尺寸ff作为变体(默认尺寸,如果你没有指定任何尺寸)。


让我知道钢铁不工作,我会仔细看看顺序帮助你。
ff is NOT a string because FreeFile return a numeric value.
I don''t know exactly if it is an integer or a long.
So remove As String from DIM statement in order to dimension ff as a variant (the default dimension if you don''t specify any dimension).

Let me know if steel not work and I''ll take a closer look in order to help you.


这篇关于如何在列表框中发送文本项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆