Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max length for macro in VFP6 ?
Message
From
12/04/2002 17:27:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Max length for macro in VFP6 ?
Miscellaneous
Thread ID:
00644560
Message ID:
00644560
Views:
40
Seens to me that macros (& expressions) used to be limited to 255 characters or thereabouts.

I ran this test with over 500 characters under VFP 6.0 and it worked fine:
lc1 = '"****5***10****5***20****5***30****5***40****5***50"'
lc2 = '"****5***60****5***70****5***80****5***90****5**100"'
lc3 = '"****5**110****5**120****5**130****5**140****5**150"'
lc4 = '"****5**160****5**170****5**180****5**190****5**200"'
lc5 = '"****5**210****5**220****5**230****5**240****5**250"'
lc6 = '"****5**260****5**270****5**280****5**290****5**300"'
lc7 = '"****5**310****5**320****5**330****5**340****5**350"'
lc8 = '"****5**360****5**370****5**380****5**390****5**400"'
lc9 = '"****5**410****5**420****5**430****5**440****5**450"'
lc10 = '"****5**460****5**470****5**480****5**490****5**500"'

lcTest = lc1 + '+' + lc2 + '+' + lc3 + '+' + lc4 + '+' + lc5 + '+' + lc6 ;
 + '+' + lc7 + '+' + lc8 + '+' + lc9 + '+' + lc10
clear
? &lcTest
I looked under Visual FoxPro System Capabilities in Help and found that the string limit is now 16,777,184 characters, but I couldn't find the limit for macros.

BREAKING NEWS: Ah ha! Now I see it:

Maximum # of characters per macro substituted line: 8,192

Good. That's plenty for my needs.

Thought I would go ahead and post this in case anyone else was wondering.

Peter
Peter Robinson ** Rodes Design ** Virginia
Next
Reply
Map
View

Click here to load this message in the networking platform