I manage to decompile my shx to shp using shxconvert trial version. In the shx, I created a %%200 to represent m2.
My question is why wcmatch returns nil in one text whereas returns T in another text.
The 200 m2 is entered via command "text" using this text "200 %%200" whereas the 100 m2 is entered via lisp.
Both texts are using wingoh.shx font. Why the difference in the contents even though font display is the same?
(defun c:tx1 ( / txt b ma?)
(vl-load-com)
(setq txt "100 %%200")
(setq pt? (getpoint "\nSelect point to place text "))
(command "text" pt? 5 "0" txt)
(princ)
(setq b (car (entsel "\Select text ")))
(setq b (vla-get-textstring (vlax-ename->vla-object b)))
(setq ma? (wcmatch b "*%%200*"))
(print ma?)
)
(defun c:tx2 ( / b ma?)
(setq b (car (entsel "\Select text ")))
(setq b (vla-get-textstring (vlax-ename->vla-object b)))
(setq ma? (wcmatch b "*%%200*"))
(print (strcat "wcmatch " b ))(print ma?)
)