Thank you Tamar Granor for your patience with this grumpy oldster who hadn't joined the next generation of stuff :)
It does feel very good to write a program the way I learned and run it in vfp7, and I've done most of it now.
I used to call a wordprocessor from DBXL and type directly into it...
Geof, what fun is that? Torture mill! Somebody wrote that by hand?!
I looked at the help in vfp7 for EditBox control
Typical bg it gave some definition with no examples of how it fits with other code. Useless, except to let BG have something in a dropdown window whenyou go looking for...
Borislav, thank you!!! I should spend more time on the fine print. I shall endeavor to emulate you. Borislav Borissov has told me what was in the books but I didn't take time to experiment with and try. Like my son says, the details, dad,
the details!
I do not know how it happened, but first...
The READ command doesn't hang up cpu
so it seems reasonable to expect a way for INKEY() to be used without taking over the cpu
But I do realize we could sometimes see this effect in DOS
with such loops
Oh well, I have a great little lightbar routine but it doesn't seem feasible to use it...
Borislav, thank you. Would there not be a way to slow down the sampling of Inkey() itself?
I ran your code, being unfamiliar with DOEVENTS as a newcomer to vfp7 and it simply oscillated between 47-50% cpu
Before I give up on this loop, I'll search for a way to diminish the sampling rate for...
"For memo fields, the right solution is to use an EditBox control"
Thank you for referring me to EditBox control
I will attempt to use that inside a window
perhaps with MODIFY MEMO command.
So far, I've found a way to just MODIFY MEMO
but can't much control the window size when it opens.
I...
This little snipet of code takes 50% CPU
* **************** PROBLEM HERE, if walk away for hour, it locks screen ***
* and this must be where cpu is being used so much DO WHILE
lb_sel=0
Do While lb_sel=0
lb_sel=Inkey()
Enddo
anyone know a fix?
Steve,
If I had a file (table) in which a field was named invoice_number
and I wanted to find the lowest and highest of those invoice numbers
then I would copy that field to another file,
or append from
then I would index the new file on that field
Could verify results with a quick browse...
Mike, I totally respect you and have read many of your posts to gain the impression you are very very good at what you do. Your comment and the one from TamarGraner are taken to heart as the solid advice they are. I recognize that as the "way to go" of the many many multitudes. You are...
GeoffFranklin, thank you. That kind of machine generated code is exactly what I never want to deal with unless it's life and death situation. It's like html generated by a word processor. Hideous to make a change in it manually.
I recognize and appreciate what the other guys have said here...
Simple rosetta stone please for a
@ 4,4 say Memo field
@ 4,4 GET Memo field
Save Memo
anyone have code for doing this with VFP7 who woulddn't mind taking the time to send it to a programmer coming out of 15 year retirement. Would love to see a simple phone book style application written in...
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.