This tutorial will show how to replace VbCrLf with <br>, so that the input of a textarea gets formatted for display.
When making a insert or update in Ultradev/MX you just have to make a small insert to make this work.
Find the code that is commented with 'create the sql insert statement' or 'create the sql update statement'.
In this code find (Ultradev):
FormVal = Replace(FormVal,vbCrLf,"<br>")
If (i <> LBound(MM_fields)) Then
In this code find (MX):
MM_formVal = Replace(MM_formVal,vbCrLf,"<br>")
If (MM_i <> LBound(MM_fields)) Then
Insert the red marked replace command and the flat text in a textarea will formatted where the user has made a Return.
This is very handy when using just a form to maintain for example a news admin-tool.
That's it !
This is a simple tutorial on how to replace VbCrLf in a textarea by <br>, so that you can format the input when displayed.