Name off the dbase file

parijs

Active Member
Licensed User
Hi,

I want to give my db the name of the street


B4X:
In Main
adress = "DowningStreet"

SQL.Initialize(File.DirRootExternal, "Transmis/" & Main.adress & "&".db", True)

Everything up until now I tried gave me an error.

:sign0163:
 

Kiffi

Well-Known Member
Licensed User
the String is not correct:
B4X:
SQL.Initialize(File.DirRootExternal, "Transmis/" & Main.adress & ".db", True)

Greetings ... Kiffi

//Edit:

Works as expected:

B4X:
 Dim address As String
 address = "DowningStreet"
 File.MakeDir(File.DirRootExternal, "Transmis")
 SQL.Initialize(File.DirRootExternal, "Transmis/" & address & ".db", True)
 
Last edited:
Upvote 0
Top