重新运行项目后,即使将其保存在localstorage中,也无法找到数据 [英] Can't find data after rerun project even if it saved in localstorage

查看:142
本文介绍了重新运行项目后,即使将其保存在localstorage中,也无法找到数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用sqlite和nsb-appstudio

我使用cmd在sqlite中创建一个数据库并将其与我在清单中的项目连接

然后

插入后,数据保存在本地存储中,当重新运行未找到的项目数据时

我想将数据保存在我创建的数据库中本地存储

或为什么我找不到选择的数据



我尝试过:



Hi,
I used sqlite with nsb-appstudio
I create a database in sqlite using cmd and connect this with my project in manifest
and then
after insertion, data saved in a local storage and when rerun the project data not found
I want to save the data in the database I created not a local storage
or why I can't find data in select

What I have tried:

Dim DB
Sub Main 
  DB = SqlOpenDatabase("test.db")
End Sub

Function btnSave_onclick()
  sqlList[0]=[" insert into activityInfo (id, userName, whatToDo, whereToGo,    whoToCall, whatToBuy, isOne, isTwo) VALUES (?,?,?,?,?,?,?,?)", [4, userName,   txtWhatToDo.text, txtWhereToGo.text, txtWhoToCall.text, txtWhatToBuy.text, isOne, isTwo]]
  Sql(DB, sqlList)
End Function

推荐答案

您的数据库文件是否在解决方案资源管理器中列出?如果是这样,请右键单击它并选择属性。 复制文件有一个选项,它可能设置为始终复制。每次在Visual Studio中的调试器下启动应用程序时,这将覆盖运行应用程序的bin文件夹中的数据库文件。
Is your database file listed in Solution Explorer? If so, right-click it and pick Properties. There is an option for "Copy File" and it's probably set to "Copy always". This will overwrite the database file in the bin folder from where your application is running every time you launch the application under the debugger in Visual Studio.


这篇关于重新运行项目后,即使将其保存在localstorage中,也无法找到数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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