f_rsx.srf 409 B

1234567891011121314151617181920
  1. $PBExportHeader$f_rsx.srf
  2. $PBExportComments$读一个属性--函数
  3. global type f_rsx from function_object
  4. end type
  5. forward prototypes
  6. global function string f_rsx (string s1, string s2)
  7. end prototypes
  8. global function string f_rsx (string s1, string s2);string ls
  9. int li,lj
  10. li=pos(s1,'{'+s2+'=')
  11. if li>0 then
  12. lj=pos(s1,'}',li)
  13. ls=mid(s1,li+len(s2)+2,lj -(li+len(s2)+2))
  14. end if
  15. return ls
  16. end function