Olaf was specifically talking about RETURNing from within a LOOP. NOT a good idea in every case. Of course I use RETURN for functions and ending procedures. It is even moronic to suggest that I don't.
Yes, after just now re-reading Olaf's post I see he was talking about using RETURN in...
Thanks, Olaf. But I got it. I did use macros as it doesn't make any sense (to me) to make it any more complicated. The "usual" solution is sometimes the best :). Can't flip the data as that would be very counter-productive in this case.
Also, I NEVER use "RETURN" in my code, it is BAD logic...
I need to flip a bunch of checkboxes and I've forgotten how. They are all named the same with 1 to 60 at the end. I have started looking through old code but that could take a LONG time. :) Any help is greatly appreciated.
All I need is the syntax for the command that actually does the flipping...
Be careful indexing on ALLTRIM() as it could lead to pointing to the wrong records. If the key field is 4 characters (for example) the index should be 4 characters as well. And, of course, the RELATION, too. In other words, all characters in the key field should be used in the index and the SET...
Thanks Mike Lewis!
This has bothered me for years. I knew it was a focus problem so I am very used to clicking on my apps after starting :) I assume I can just copy and paste this code into my form as is?
THANK YOU!
And also be aware that memo fields (which are actually a separate file from the table itself) are more prone to corruption. It might be a really good time to consider adding the fields to your table. You can write some code to extract the data from your memo field and populate the new fields...
I have to ask, are you putting the entire address in a memo field? If so, I highly suggest that you split it into the 5 common fields: addr1, addr2, city, state, zip (more if needed). Then you can index and search on whatever you want.
Larry (TPG)
Well... All I can say is, I have also seen odd behavior on a touch screen - if I remember correctly, some things don't even work. I think you have to assume that FoxPro is NOT a modern platform and was never intended to be used with a touch screen since they didn't exist at the time. My...
Are you using West Wind? If not, maybe you should check it out, I'm sure it is easy to find. I am NOT any kind of expert on this kind of thing, so I always used Rick's products for this, and he is (was, at least) always available to help.
Larry (TPG)
FPD 2.6 has a Project Manager so you can open your screen in that or in the command window. Either way, when you open a screen, a "Screen" option will be added to the FP menu. Under that you will have options of "Screen Layout" and "Open All Snippets" (Snippets are generally the Whens and...
If I remember correctly, there are "Setup" and "Cleanup" areas of the screen where you can put any necessary setup code, or functions and procedures that you need. You will need to determine where the code snippet that you sent is located and if it belongs in "Setup" or "Cleanup", but I suspect...
...to check for records in each file. To check for records in arccar04 not in arccust04 you will need to open arccard04 in 2 work areas. For ex:
*-- Setup in form
USE arcard04 ORDER custno IN 0
USE arcard04 ORDER custno AGAIN IN 0 ALIAS arcard04_2
SELECT 0
USE arcust04 ORDER custno
SET...
Also, there is no problem with using the QUIT command if your intention is to quit... I'm quite certain that it is in EVERY program I have ever written.
You change the column names by editing the properties of the grid and changing them. I think you have to drill down a couple of layers to get to the level of the column headers (you can right click on the grid and choose 'edit' to do this). And while you're there you simply grab a column and...
In that case, you should quickly learn about the VFP Classes and how to use them to your advantage. Even if you don't think you will be changing any of them, you should always make your own copies because you WILL change many of them. :) And even if you don't, no harm done by masking your own...
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.