I am trying to extract the first part of a string by splitting the string in parts using the spaces between the words, but I cannot get the code right. Where do I go wrong?
Var rs As RowSet
var FullName as string
Try
rs = app.db.SelectSQL("SELECT * FROM preferences")
FullName = rs.Column("FullUserData").StringValue //Text field
Catch error As DatabaseException
MessageBox("DB Error: " + error.Message)
End Try
Var FirstName As String
FirstName = Split(FullName, " ")
WinFileDialoge.lblWindowTitle.Text = "Welcome
to StoryCraft New Edition, " + FirstName + “!”