func init if(linked("Result") and linked("doDelete")) sys.add_var_extern(this.name, 2) end end func make(srcstr, position, count) return('(' && d("SrcStr") && ').Remove(' && d("Position") && ',' && d("CharCount") && ')') end func doDelete(srcstr, position, count) if(linked("Result")) blk.println(this.codename, ' = ', make(srcstr, position, count), ';') event("onDelete", this.codename) else event("onDelete", make(srcstr, position, count)) end end func Result if(linked("doDelete")) return(this.codename) else return(make()) end end