I have an Excel worksheet that tracks hours worked on a job. The jobs often require overnight shifts (this is a tugboat company) and sometimes even shifts longer than 24 hours. (You can sleep some as long as a proper watch is kept.)
When I try to calculate the number of hours by subtracting...
The form in question displays the contents of a purchase order. The Load event checks to see if the PO is new, i.e., whether to create it. (PO# = 0 => create) The Load event calls Procedure NewPO if needed to create a record in the PO table, changing the PO# to > 0. Then the Load event opens the...
Is there some reason that I can't release a form from within its load event? I have identified a situation in which I want to do that but the release() doesn't seem to do anything.
Suggestions?
Shanachie
This is interesting. I tried substituting MessageBox() for my DO FORM and the problem went away, everything behaved properly. MessageBox(), however, does not look right. The format of the dialog just doesn't fit with the rest of the application. Besides, it seems to me that I should be able to...
I am having a strange problem with my app. A form has a grid used to enter lines for a purchase order. One of the columns of the grid contains the item number, another contains the color number, and another the size number. When the user enters the color number or the size number, the valid...
Is there a way for a program to determine if it is running as a compiled version or within the VFP IDE? (Is that the right acronym? IDE = Integrated Development Environment) I have a feature (come to think of it, several) that I want to turn off for the users, who run a compiled version but I...
Thanks, all!
Right you are! The files I'm checking out are .EXE's (the latest version of the application, with a copy given the name "MyApp Current.EXE"), so the size is irrelevent, as pointed out above. The critical thing is the date/time. FDATE(), with the argument to return...
I have a need to check the file size and date of some files to compare for updating. (If the file is not the same as the one on the server, update it.) How do I do that in VFP?
TIA, as usual!
Shanachie
Anyone who's interested: this has turned out to be a problem related to changing the background colors from the default. The pages (I called them "tabs" before) that change color are all ones that got changed at some time in the past and are no longer default colors. They are the same...
Nope, not subclassed. Besides, the background color changes when I move it from my office to the client's and also when I move it from the client's back to my office. (Sometimes when I bring it to the client, they want minor tweaks done. I do them immediately and bring the changed source code...
Oddball problem: I develop the app at my office and periodically copy the source files to a Zip disk and take them to my client's place. I copy them to a machine there and compile an executable for their use. One form has a pageframe with 8 tabs. Every time I move from office to client or back...
Hi, Ramani!
Your comments are spot on. I had simplified the problem statement to focus on the issue. What I actually do is to have the text box collect a new string to be appended to the existing string. The form has two text boxes, the top one being read-only, showing the existing text. The...
In my app, there are several text boxes for users to input special instructions. When they click on the box, I insert the user's name and the date and time, to document who and when. (That settles a lot of arguments about who screwed up the customer's order.) When they do that, however, the...
The background: Pretty stable application, running for several years, frequently unpgraded but not huge changes. One feature that the client wanted was the ability to run multiple sessions. That way, while working on one customer's order, if another customer calls, the rep can minimize the...
Thanks to jimstarr and csr! They both were right. An array being SELECTed just got too big. I rewrote that logic using another approach and it works just fine.
Thanks Again!
Shanachie
I am suddenly getting a "Too Many Variables" error in a program that's been running without problems for six months. No changes at all have been made since January.
What would cause this to blow up now? The compile time message shows 139 symbols, which doesn't seem like a whole lot...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.