Change the "Language=" to mvbasic. Change the WRITEs to CRT. WRITE
doesn't automatically add a return, so use a colon on the CRTs. You
can't use macros in mvbasic, but the equivalent of $$$OK is 1. Any
variable that begins with % (like %query) is a special variable that
acts similarly to an mvbasic named common variable (but without the
need for a COMMON declaration):
Method DrawYesNo(pTable As %ZEN.Component.tablePane, pName As %String,
pSeed As %String) As %Status [ Language = mvbasic ]
{
If %query(pName) = pSeed then
crt "Posted":
end Else
crt "":
end
return 1