Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure Hierarchy
Message
From
24/05/1997 17:25:53
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/05/1997 17:10:32
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00032985
Message ID:
00033535
Views:
46
> >If it is running, I'm rather confused, too ;( - this behavior contradits > >all the known behaviors in all the known versions of Fox. Is it possible > >that calling a form shortens up the call chain? > > The default behaviour is for the current program to look within itself for > the function (which forms now don't have) and to look next in the procedure > file(s) and if not there then up the program stack. Therefore, my function > would have been called after the check in the procedure file. If I don't > use a form, then the function exists in the current program and there is no > problem. I thought the procedure library came LAST but it actually comes > Next after the current program. > > This is good to know! (this information is from Randy Pearson. Goes to show > that we should not always rely on what we think we know) This goes to my > second rule of programming: "If you've done everything right and it still > doesn't work then something you did right is wrong." > > Bob You're right - I really did think that execution chain came before the procedure file... and I thought so for years. Well, it's probably because I very rarely use procedure files, and when I use them, it's for some limited time. But I do remember times when I was immensely confused with "which procedure fired", like in the case when the same procedure existed on local directory and along the fox's path, and the .fxps' dates were, er, messed up. BTW, what's the first rule, then?

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