Hello everyone,
How to insert a string variable in a db.AddRow command?
Here’s my code, of course I get a databaseException → near"(":syntax error
datedujour is a string
Var PersonRecord As New DatabaseRow
PersonRecord.Column("Prenom").StringValue = Prenom.value
PersonRecord.Column("PhotoVideo").StringValue = Format(DateTime.Now.Hour,"00") + Format(DateTime.Now.Minute,"00") + Format(DateTime.Now.Second,"00") + s.LeftBytes(5) + uFile.Name
PersonRecord.Column("Identifiant").StringValue = "0"
Try
db.AddRow(datedujour, PersonRecord)
Catch e As DatabaseException
MessageBox(e.Message)
End Try
Thank you for your help.
6 posts - 4 participants