Hello,
possible to read the 'smart string' from a database ?
for example:
BBCodeView1.Text = $ & Variable & $
instead of:
BBCodeView1.Text = $"[Alignment=Center]Bitte ${CreateNamedLink("Anmelden","https://yourniceurl","#2D8879")}/${CreateNamedLink("Registrieren","https://yourniceurl","#2D8879")} um ein kommentar zu schreiben[/Alignment]"$
or is that only possible in the souce because it is also compiled
I am interested in the integration of functions (here e.g. CreateNamedLink)
Example from 'Alexander Stolte'
regards Frank
possible to read the 'smart string' from a database ?
for example:
BBCodeView1.Text = $ & Variable & $
instead of:
BBCodeView1.Text = $"[Alignment=Center]Bitte ${CreateNamedLink("Anmelden","https://yourniceurl","#2D8879")}/${CreateNamedLink("Registrieren","https://yourniceurl","#2D8879")} um ein kommentar zu schreiben[/Alignment]"$
or is that only possible in the souce because it is also compiled
I am interested in the integration of functions (here e.g. CreateNamedLink)
B4X:
Public Sub CreateNamedLink(name As String,url As String,color As String) As String
Return "[b][url=""" & url & """][color=" & color & "]" & name & "[/color][/url][/b]"
End Sub
regards Frank