从我的表单保存和加载数据 [英] Saving and loading data from my form

查看:57
本文介绍了从我的表单保存和加载数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有保存并打开"按钮的表单
使用保存",我想保存运行时所有更改的表单
打开时,我要使用保存的最后更改打开表单,然后继续在表单上进行工作
(例如,我以某种形式设计填字游戏,用户可能在某些单元格中写了一封信,而其中一些是空的(保存),我想保存此表单,即使其未完全解决,也可以用以下方式打开它)最后更改(OPEN))
帮我...:sigh:

i have a form with Save and Open button
with Save i want to save my form with all changes in run time
with open i want to open my form with last changes that saved and continue my work on the form
(e.g, i design a crossword puzzle in a form, user may be in some cells write a letter and some of them be empty(SAVE), i wanna save this form even its not completely solved and other time i will can open it with last changes(OPEN))
help me... :sigh:

推荐答案

考虑阅读一本有关编程的基本书.很显然,我们不能回答这个(毫无意义的)问题,但是对于任何对编程概念有任何想法的人,答案应该是明确的,您需要计算出拥有的数据,格式和编写代码以保存数据的格式,然后可以编写代码以读取,以恢复表格.
Consider reading a basic book on programming. Quite plainly, we can''t answer this (meaningless) question ,but toanyone with ANY idea of what programming is, the answer should plainly be, you need to work out what data you have, in what format, and write code to save that data in a format you can then write code to read, to restore your form.


您需要更详细地了解要实现的目标.

保存数据
您的数据结构(表和字段)是什么
什么数据(用户,拼图编号,输入的信息等)
假设文件系统在哪里(文件系统,数据库)
哪个文件夹(exe,MyDocuments,App Data,共享数据等)
哪种格式(XML,CSV,文本,加密等)

如建议的那样,尝试获取一本基本的编程书籍并进行操作.
You need to have some more detailed idea what you want to achieve.

Save your data
What is your data structure (tables & fields)
What data (user, puzzle number, entered information etc.)
Where to (file system, database), assuming the file system
Which folder (exe, MyDocuments, App Data, shared data etc)
What format (XML, CSV, Text, encrypted etc)

As suggested try getting a basic programming book and working through it.


这篇关于从我的表单保存和加载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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