Re: Dealing with data gathered by Open command

2006-08-22 Thread Robert Poland
On Aug 22, 2006, at 9:16 AM, Charles Yeomans wrote: On Aug 22, 2006, at 10:33 AM, Robert Poland wrote: On Aug 22, 2006, at 8:03 AM, David Glass wrote: I'm pretty sure userOpened should not be Static. You probably also want to declare userOpened as a property of the Window rather than i

Re: Dealing with data gathered by Open command

2006-08-22 Thread Charles Yeomans
On Aug 22, 2006, at 10:33 AM, Robert Poland wrote: On Aug 22, 2006, at 8:03 AM, David Glass wrote: I'm pretty sure userOpened should not be Static. You probably also want to declare userOpened as a property of the Window rather than in each location you are using it. On Aug 22, 2006, at

Re: Dealing with data gathered by Open command

2006-08-22 Thread Robert Poland
On Aug 22, 2006, at 8:03 AM, David Glass wrote: I'm pretty sure userOpened should not be Static. You probably also want to declare userOpened as a property of the Window rather than in each location you are using it. On Aug 22, 2006, at 06:39, Robert Poland wrote: RBNUBE, I guess I'm mi

Re: Dealing with data gathered by Open command

2006-08-22 Thread Terry Ford
On Aug 22, 2006, at 6:39 AM, Robert Poland wrote: I guess I'm missing something here; A Static variable is local to the method/event like a Dim statement is. You must either use a property or pass it to the OpenUpdate method as a parameter. Terry ___

Re: Dealing with data gathered by Open command

2006-08-22 Thread David Glass
I'm pretty sure userOpened should not be Static. You probably also want to declare userOpened as a property of the Window rather than in each location you are using it. On Aug 22, 2006, at 06:39, Robert Poland wrote: RBNUBE, I guess I'm missing something here; Here's what I'm doing; --

Re: Dealing with data gathered by Open command

2006-08-22 Thread Robert Poland
RBNUBE, I guess I'm missing something here; Here's what I'm doing; The user selects the menu item Open selects the file the menu handler does it's thing + Static userOpened As Boolean userOpened=True OpenUpdate(method) OpenUpdate if userOpened=True UpdateTextFields (,etc) RESU

RE: Dealing with data gathered by Open command

2006-08-21 Thread RBNUBE
Since someone is opening a file, the method of creation is known. Create a Boolean property, userOpened as Boolean. Create a method that houses your parsing code. The user presses a button, selects a file, userOpened is set to True and the method is called. The method checks the status of userO

Dealing with data gathered by Open command

2006-08-21 Thread Robert Poland
Hi, My little learning exercise is down to cleaning up some of the excess. Thanks for all the help I've had learning along the way. What it is; A form for tracking/reporting time for payroll. Visually, looks like a half page form. Labeled blanks for name, job details, hours (With weekday a