将纯文本数据存储在自己的文件中 [英] storing plain text data in its own file

查看:105
本文介绍了将纯文本数据存储在自己的文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我刚开始回到VB,我需要一些帮助。


我正在编写一个程序,要求用户键入一组数字/信件

(在这种情况下是运输集装箱)。


输入数据后,我有4个字母,我希望能够打电话给

与4个字母有关的数据。


基本上我希望它显示容器属于谁以及任何其他数据

i希望放在那里与容器有关。


而不是在一个单独的文件中硬编码我想要的一切。


谢谢

史蒂夫

解决方案

" Steve" < no@no.com>在留言中写道

news:41 *********************** @ news.optusnet.com.a u ...

大家好我刚刚开始回到VB,我需要一点帮助。我正在编写一个程序,要求用户输入一组数字/字母(在这种情况下是装运容器)。输入
数据后,我有4个字母,我希望能够调出与4个字母相关的数据。基本上我希望它能够显示容器所属的人以及我希望放入与容器相关的任何其他数据。而不是硬编码
我希望它在一个单独的文件中。




.. 。 。你的问题是?


我该怎么做?

Mike Williams <弥** @ WhiskyAndCoke.com>在消息中写道

news:cj ********* @ newsg4.svr.pol.co.uk ...

" Steve" < no@no.com>在消息中写道
新闻:41 *********************** @ news.optusnet.com.a你...
< blockquote class =post_quotes>大家好我刚刚开始回到VB,我需要一些帮助。我正在编写一个程序,要求用户输入一组数字/字母(在这种情况下是装运容器)。输入
数据后,我有4个字母,我希望能够调出与4个字母相关的数据。基本上我希望它能够显示容器所属的人以及我希望放入与容器相关的任何其他数据。而不是硬编码
我希望它在一个单独的文件中。



。 。 。 。你的问题是?



2004年10月2日星期六20:33:20 +1000,史蒂夫 < no@no.com>写道:

我该怎么办?




看看史蒂夫,我们当然可以指出你提供的方向

a解决方案,但是了解更多关于

你的问题会很有帮助。


例如

1)你过去对VB的了解程度如何?

- 不是问题,但它给出了一个起点

2)多少个容器?

3)你想存储的典型数据位是什么?

4)你为什么说''文件''?

(你可以有明确的理由来指定文本文件

- 或者你可能没有

真正了解优点/缺点)

5)搜索什么您最初预期的标准是什么?

6)是否需要报告?

7)这是现有手动系统的装饰吗?


我个人最初的反应是你问过:

''如何编写CardBox应用程序?''


这可能相当有趣,它让我想起了一个帖子

的启发我几年前写过GPrint.cls(Mike W知道我在说什么。
谈论)

OTOH你可能需要寻找现有的


Hi all i am just starting to get back into VB and i need a little help.

I am writing a program that asks a user to type in a set of numbers/letters
(in this case shipping containers).

Once the data is entered i have my 4 letters and i want to be able to call
up data relating to the 4 letters.

Basically i want it to show who the container belongs to and any other data
i wish to put in there relating to the container.

Rather than hard code everything i want it in a seperate file(s).

Thanks
Steve

解决方案

"Steve" <no@no.com> wrote in message
news:41***********************@news.optusnet.com.a u...

Hi all i am just starting to get back into VB and i need a little
help. I am writing a program that asks a user to type in a set
of numbers/letters (in this case shipping containers). Once the
data is entered i have my 4 letters and i want to be able to call up data
relating to the 4 letters. Basically i want it to show who
the container belongs to and any other data i wish to put in
there relating to the container. Rather than hard code
everything i want it in a seperate file(s).



.. . . . and your question is ?


how do i do it?
"Mike Williams" <Mi**@WhiskyAndCoke.com> wrote in message
news:cj*********@newsg4.svr.pol.co.uk...

"Steve" <no@no.com> wrote in message
news:41***********************@news.optusnet.com.a u...

Hi all i am just starting to get back into VB and i need a little
help. I am writing a program that asks a user to type in a set
of numbers/letters (in this case shipping containers). Once the
data is entered i have my 4 letters and i want to be able to call up data
relating to the 4 letters. Basically i want it to show who
the container belongs to and any other data i wish to put in
there relating to the container. Rather than hard code
everything i want it in a seperate file(s).



. . . . and your question is ?



On Sat, 2 Oct 2004 20:33:20 +1000, "Steve" <no@no.com> wrote:

how do i do it?



Look Steve, we can certainly point you in directions that will provide
a solution, however it would be helpful to know quite a lot more about
your problem.

For example
1) How well did you know VB in the past ?
- not a problem, but it gives a starting point
2) How many containers ?
3) What are the typical bits of data you want to store
4) Why did you say ''text file'' ?
(You could have spectactularly good reasons for
specifying text files - alternatively you might not
really understand the advantages/disadvantages)
5) What searching criteria do you initially anticipate ?
6) Any reports required ?
7) Is this an embellishment of an existing manual system?

Personally my initial reaction is that you have asked:
''How do I write a CardBox Application ?''

This might be rather interesting, it reminds me of a post that
inspired me to write GPrint.cls some years ago (Mike W knows what I am
talking about)
OTOH it might be that you need to look for an existing


这篇关于将纯文本数据存储在自己的文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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