Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Chuanbing Chen
  Where is Chuanbing Chen?
 Shenzhen
 China
 Chuanbing Chen
 Tags
Subject: Vfp 9.0 Fix - Macro Substitution
Thread ID: 250329 Message ID: 250329 # Views: 82 # Ratings: 4
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Friday, January 15, 2010 5:18:18 AM         
   


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

ENTIRE THREAD

Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 1/15/2010 5:18:18 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Mike Gagnon @ 1/15/2010 12:15:56 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Mike Yearwood @ 7/29/2010 5:12:22 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Cesar @ 7/29/2010 5:40:10 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Yuri Rubinov @ 1/15/2010 4:07:43 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 1/16/2010 3:59:47 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Joseph Agarpao @ 1/17/2010 3:19:20 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 1/17/2010 7:49:28 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Cesar @ 7/28/2010 1:49:58 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 7/29/2010 1:58:56 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Cesar @ 7/29/2010 8:12:59 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 7/30/2010 1:07:28 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 1/17/2010 8:16:15 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Vladimir Radjenovic @ 7/29/2010 7:59:24 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by CHUANBING CHEN @ 7/29/2010 2:53:22 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Chuanbing Chen @ 12/12/2010 9:55:14 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Martin Krivka @ 12/12/2010 10:49:18 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Chuanbing Chen @ 12/12/2010 12:04:41 PM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Chuanbing Chen @ 12/13/2010 12:24:13 AM
RE: Vfp 9.0 Fix - Macro Substitution Posted by Martin Krivka @ 12/13/2010 2:15:22 PM