Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Array and Compile Errors
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618488
Message ID:
01618559
Views:
45
>>>EXTERNAL ARRAY laArray in your prg seems to solve the issue
>>
>>Ah yes. I couldn't remember that damn command :-)
>
>EXTERNAL command is one of the commands that should be named #EXTERNAL, because the damn thing is for use just when compiling, but being a command it is executed every time with your code, using preciuos CPU time whithout any sense.

Actually I don't think that's true. Fox code is precompiled and certain commands have essentially no runtime affect. Variable declarations in particular don't cause any runtime overhead they're just markers for the compiler when it parses the code. Variable scope is something the compiler fixes up. I'm not sure whether EXTERNAL is different but I'm pretty sure it's the same as LOCAL/PRIVATE etc. which are basically compiler directives. After all even if you compile and get the error the code runs just fine.

+++ Rick ---

>
>
>>
>>I HATE FOXPRO ARRAYS!
>>
>>It's an awful, awful data structure.
>>
>>+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform