NetTalk Central

Author Topic: Form - When/How do the files get opened  (Read 3472 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Form - When/How do the files get opened
« on: October 25, 2008, 05:45:06 PM »
I've looked through the generated source for a netwebform and can't figure out the following:

1. When are the files opened?  I see OpenFiles and CloseFiles Routines, but nowhere in the generated source is there a call to the routines....  I see a call to OpenRelatedFiles but there is nothing in that routine in my app.

2. Is each field in the record read into the session queue?  And if so when?

Thank you for your assistance.

NT4.31 PR17

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Form - When/How do the files get opened
« Reply #1 on: October 27, 2008, 02:20:28 AM »
Hi David,

Your question is formed from the wrong point of view.
Rather -
a) always open, and close files where you need them to be opened & closed.
b) the current form record is stored in the session queue when the form is generated.

Remember the form procedure is not "called once". It's not a "windows" type procedure. Rather it is called many times. Many times it is called on different threads, during the life of a "form" (as seen by the user in a browser.

Cheers
Bruce