Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What happens to 'set procedures' when switching forms?
Message
From
28/06/1999 15:43:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/06/1999 10:28:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00234486
Message ID:
00234920
Views:
33
>>Cutting and pasting? Blyaccchs! Write a routine to parse it and stuff into >little .prg files, with the old Procedure and/or Function line commented. >Wanna bet it can be done in one hour?
>
>ah, but I'm still happy with the procedure file as I have it! And there's the niggling issue of the project managers refusal to take more than the first character of the program name you're trying to find, which would be a nightmare with several hundred small prgs, not to mention that I frequently want to do multiple replacements of with wherever I've used it, and doing that in one file rather than several hundred seems to be a more efficient way of dealing with it. Nope, I definitely aint sold on this idea yet!

OK, Harry, each to his own way (...out of mind... know the rest?). There may be some speed issues here (VFP needs to parse those hundred names each time instead of looking directly into the .app or .exe), but they may be neglectable, and some memory issues (loading the whole procedure file with hundreds of functions where you only use a dozen), which are also neglectable on today's machines.

Though, I think you either have nice sets of similar functions there, if you can do a global search & replace just like that. I've had such a set of couple of hundreds of routines (each in a separate .prg) and I never had to edit more than two or three at a time. They're all doing their jobs happily unaware of each other, unless they call each other, but then they talk through their parameters. Can't remember the last time I did any sort of global search/replace... maybe five years ago, when I was inventing my own naming convention within these functions, to avoid stumbling over public or outer private vars.

Still, doing a global search/replace on dozens of files worked fine in Filer. Don't you miss Ctrl+F, enter parameters, Ctrl+W to close the dialog, Ctrl+E to open all tagged files, eh?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform