Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fun VFP quiz

Status
Not open for further replies.

Mike Lewis

Programmer
Jan 10, 2003
17,505
Scotland
If you want to relax for five minutes, forum member Geoff Franklin (aka AlvechurchData) has posted an amusing VFP quiz, at
Even if you know all the answers, you'll probably still learn something from it. I did (Q8 in my case; also second bonus in Q2).

Have fun.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 

I also learned Q8, and a couple more where I wasn't sure I was able to guess correctly (say, Q4).

But the second bonus has more than 1 answer.
At least in VFP6 (please check in later versions).

Holding down Shift causes Window|Hide change to Window|Hide All, and Window|Show All is also added to the menu.
 

Stella,

Holding down Shift causes Window|Hide change to Window|Hide All, and Window|Show All is also added to the menu.

You're right. Looks like that applies to all versions.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
I'm glad I've provided a little innocent entertainment. We use the quiz as an icebreaker on our Advanced VFP courses. It gives folk an excuse to talk about Fox and bring out some of their favourite oddities. Which is what's happening here<g>.

Holding down Shift causes Window|Hide change to Window|Hide All, and Window|Show All is also added to the menu.

I didn't know that trick.

Geoff Franklin
 
FWIW, your comment on 7 about Unique indexes being removed in VFP 9 is wrong. They're still there (backward compatibility and all that).

I also think that question is a little misleading, since you use the UNIQUE keyword to specify a candidate index in CREATE TABLE.

Tamar
 
hehe... I got them all right!

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports&quot;
 

Tamar,

You're right that UNIQUE is still in the language -- it's certainly in the Help and in Intellisense.

I think what Geoff meant was that it's not available in the table designer. Then again, if you open a table that already has a unique index, you will see "unique" in the index type combo (I suppose that's obvious).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
I think what Geoff meant was that it's not available in the table designer

Sloppy use of the language I agree.

But on the bright side I discovered today that, despite being deprecated in Help, INSERT is still in the language. I used it (may I be forgiven) to put a record back in the "right" place.

Geoff Franklin
 
Craig - Me, too.

Tamar
 
Well, I missed them all. Top that!

boyd.gif

SweetPotato Software Website
My Blog
 

INSERT is still in the language. I used it (may I be forgiven) to put a record back in the "right" place.

You know, Goeff, in the 26 years that I have worked with dBASE, Clipper, Foxbase and FoxPro, I think that is the first time I have ever known anyone to admit to using that command.

What next? SORT? JOIN?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Hi all,

nice quiz, I missed 2 (and the bonus questions) and 4.
Applause for Craig Bertnson and Tamar, and of course Geoff.

The change in the menu with [SHIFT] is nice. A foxpro hotkey that's more helpful to me is [SHIFT]+[CTRL]+[ALT]. Does everybody know, what it does?

Bye, Olaf.
 
that is the first time I have ever known anyone to admit to using that command.

First time I've ever used it in anger but it was the only solution possible on a Friday afternoon.

The app is a parts list. It relies on the main body parts being entered into the dbf before the other components so that they come out first on reports and browses. There's nothing in the data structure to identify the body parts as being body parts and the whole app relies on physical record order.

You know it's wrong, I know it's wrong, but the app's been running for years like this and I can't persuade the client to pay me pots of money to rewrite the whole thing.

Geoff Franklin
 

A foxpro hotkey that's more helpful to me is [SHIFT]+[CTRL]+[ALT]. Does everybody know, what it does?

Found out some couple of years ago, here, on Tek-Tips, as far as I can remeber - and use it often ever since.
 
I actually used the Xbase INSERT command in an app many years ago. I no longer remember the exact circumstances (except that it was a sub-contract job from Whil Hentzen), but I was working with an extremely small table that needed records to be in a particular order and it was the best solution.

Tamar
 
Insert

I use Insert quite a bit as I have apps that read txt files into a table where each line of text is a single record. There is no way to create an index key for something like this ( that I know of) and, at times, I need to insert a record at the correct physical place in the table. Insert does the job and very quickly too. Even in tables with 250,000 or more records. May not be 'elegant' but it works.
 
Well, it just goes to show.

Clarke's Law:

[blue]When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.[/blue]

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top