Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
...
Dim strOld as String
Dim strNew as string
Dim objMtext as AcadMText
strOld = objMtext.TextString
strNew = Replace(strOld, "Old", "New", , , vbTextCompare)
objMtext.TextString = strNew
objMtext.Update
etc...
...
Dim strOld as String ' Current MText text string.
Dim strNew as String ' New MText text string.
Dim strSrc as String ' String being sought.
Dim objMtext as AcadMText ' Mtext object.
Dim iPos as Integer ' Position of strSrc within strOld.
strOld = objMtext.TextString
' Option 1:
iPos = InStr(1, strOld, strSrc, vbTextCompare)
If iPos > 0 Then
strNew = Replace(strOld, "Old", "New", , , vbTextCompare)
Else
' Instr found nothing, add missing text.
End If
objMtext.TextString = strNew
objMtext.Update
etc...