当前位置: 代码迷 >> VFP >> Vfp 9.0 Fix - Macro Substitution解决办法
  详细解决方案

Vfp 9.0 Fix - Macro Substitution解决办法

热度:7953   发布时间:2013-02-26 00:00:00.0
Vfp 9.0 Fix - Macro Substitution
Hello everyone:

  In vfp9, the procedure size can greater than 64KB.

  There is a program for test:

  *PROC testmacro

  SET STEP OFF
  SET ECHO OFF
  SET DEBUG OFF
  SET ESCAPE OFF
  SET TALK OFF
  SET SAFETY OFF

  _SCREEN.VISIBLE=.T.
  _SCREEN.WINDOWSTATE=2

  PRIVATE m.x1
  m.x1=".F."

  IF &x1
  ?"Y"
  ELSE
  ?"N"
  ENDI
  WAIT

  RETURN

  * END OF PROC TESTMACRO.

  PROC testmacro_bigprogram

  PRIVATE m.x2
  m.x2="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  m.x2="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  ...
  m.x2="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  m.x2="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

  RETURN

  * END OF PROC TESTMACRO_BIGPROGRAM.

  The size of the procedure testmacro_bigprogram is about 100KB, it is greater than 64KB.

  The program is simple, we think it will display "N" and wait any key to continue ...

  But when we run the program, it occur an error: Command contains unrecognized phrase/keyword (Error 36).
  If we choice Ignore, it display "Y" and wait any key to continue ...


More details please refer to:

Vfp 9.0 Fix - Macro Substitution
http://www.baiyujia.com/vfpdocuments/default.asp

source code download:
http://www.baiyujia.com/f_download.asp



------解决方案--------------------------------------------------------
谢谢告知
------解决方案--------------------------------------------------------
多谢!
------解决方案--------------------------------------------------------
OK,谢谢
------解决方案--------------------------------------------------------
没明白,EN文不好,是不是vfp有漏洞。要打上哪个补丁?
  相关解决方案