با سلام خدمت دوستان برنامه من هنگام restore خطا میگیره مبتدی هستم . مشکل از کجاست
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
'Database
Dim SQL1 As SQL
Dim DBFileDir As String : DBFileDir = File.DirDefaultExternal
Dim DBFileName As String : DBFileName = "mydb.s3db"
Dim DBFileBak As String : DBFileBak = "mydb.bak"
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("mm")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
' File.Copy(File.DirAssets,"mm.db",File.DirInternal,MPD.PersianShortDate&".db")
Sub Button1_Click
SQL1.Close
File.Copy(File.DirAssets, "mm.db", File.DirInternal, "mm.db")
SQL1.Initialize(File.DirRootExternal, "mm.db", True)
Msgbox("Database has been Backed Up", "")
End Sub
Sub Button2_Click
SQL1.Close
File.Copy(File.DirAssets, "mm.db", File.DirAssets, "mm.db")
SQL1.Initialize(File.DirRootExternal, "mm.db", True)
Msgbox("Database has been Restored", "")
سوال
mohsen1230 0
با سلام خدمت دوستان برنامه من هنگام restore خطا میگیره مبتدی هستم . مشکل از کجاست
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
'Database
Dim SQL1 As SQL
Dim DBFileDir As String : DBFileDir = File.DirDefaultExternal
Dim DBFileName As String : DBFileName = "mydb.s3db"
Dim DBFileBak As String : DBFileBak = "mydb.bak"
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("mm")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
' File.Copy(File.DirAssets,"mm.db",File.DirInternal,MPD.PersianShortDate&".db")
Sub Button1_Click
SQL1.Close
File.Copy(File.DirAssets, "mm.db", File.DirInternal, "mm.db")
SQL1.Initialize(File.DirRootExternal, "mm.db", True)
Msgbox("Database has been Backed Up", "")
End Sub
Sub Button2_Click
SQL1.Close
File.Copy(File.DirAssets, "mm.db", File.DirAssets, "mm.db")
SQL1.Initialize(File.DirRootExternal, "mm.db", True)
Msgbox("Database has been Restored", "")
End Sub
لینک ارسال
به اشتراک گذاری در سایت های دیگر
0 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.