Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FUNCTION...ENDFUNC in a class.
Message
 
 
To
13/04/1998 20:37:54
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00090807
Message ID:
00091662
Views:
29
Peter,

Once the function is loaded into memory, I don't think there's significant delays. Also once you build the APP/EXE it's all in one file anyway.

The one thing you DO NOT want to do is put a FUNCTION/PROCEDURE statement in the file if the function is called a lot. For some rather bizarre reason Fox has always had a terrible performance hit because of it, we are talking order of magnitude kind of slowdowns. If the function name is the same as the filename you don't need the proc/func declaration, though it grates on my nerves to not have a "proper" block of code in the file.

>Is there any kind of speed penalty for keeping each UDF in a separate file?
>
>(I may have subconscious fears of this approach becuase of dBase II and III where the access time to a separate file was attrocious! :)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform