f_wsx.srf 437 B

12345678910111213141516171819
  1. $PBExportHeader$f_wsx.srf
  2. $PBExportComments$写一个属性--函数
  3. global type f_wsx from function_object
  4. end type
  5. forward prototypes
  6. global subroutine f_wsx (ref string s1, string s2, string s3)
  7. end prototypes
  8. global subroutine f_wsx (ref string s1, string s2, string s3);int li,lj
  9. li=pos(s1,'{'+s2+'=')
  10. if li>0 then
  11. lj=pos(s1,'}',li)
  12. s1=left(s1,li -1)+mid(s1,lj+1)
  13. end if
  14. if s3>'' then s1=s1+'{'+s2+'='+s3+'}'
  15. end subroutine