Initialising Structures & SQL

CanelaKid

Member
Licensed User
Longtime User
Is there a way to initialise a structure with my values in 1 statement similar to below (Which produces an error on the last statement)

Type AlertDefn(Message As String, Sound As Int)
Dim Alerts(2) As AlertDefn
Alerts = Array As AlertDefn(("Sunday",1), ("Monday",2))

Also what is the correct syntax to open an SQL Database which has a password
 

CanelaKid

Member
Licensed User
Longtime User
Thanks

For more complex structures this is little more work than B4PPC but yes, it works fine, I thought I might be missing a trick somewhere. What about the Opening of SQL Databases with Passwords?
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…