Trouble setting the font of the text of a field

Dr. Hawkins dochawk at gmail.com
Thu Aug 11 14:28:13 EDT 2016


This code has been around a while; it's part of the maintenance routines.
But now it's glitching.

tgTg holds the long id of a field

Inside a conditional, the last line of the code

     set the txtFnt of tgTg  to "ArialMt"
     ck tgTg & cr &  the long name of tgTg
     set the textFont of the text of tgTg to empty


is giving the error

button "mkArialMt": execution error at line 8 (Chunk: error in object
expression) near "sofa_dpadr_", char 30


Maybe it just hasn't hit a field with the condition in a while, but isn't
this the correct way to clear the text of a field?

sofa_dpadr_ is indeed the name of the field in question, and it has text in
it.
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list