Wiki Home

Yoda Code


Namespace: VB
Yoda is a character in Star Wars with a quirky way of phrasing sentences. You can understand him, but it takes an extra second or two.

Yodacode is writing a line of code so that it still executes properly but is just backwards. This affects readability far more than using mdot.

Please post your examples.

Here's my first one:

The Fox help (as far back as FOXPRO 2.6 for DOS) shows

INDEX ON Expression TO idxfile | TAG tagname

Real-world yodacode: Index Tag shiprate On province+Allt(city) Uniq
-- Mike Yearwood
Does SQL count? -- Geoff Franklin

SELECT company, city INTO CURSOR csrUSA WHERE country = "USA" ORDER BY city from customer

Certainly! -- Mike Yearwood

The DISPLAY, LIST, REPORT FORM and LABEL FORM commands have a scope option like "NEXT 1" that the help files shows at the beginning of the command. It also works when placed at the end. For example,

LIST NEXT 1 ... TO PRINTER

LIST TO PRINTER ... NEXT 1

-- Mark McCasland
Category Coding
( Topic last updated: 2006.04.25 01:30:29 PM )