Create Cursor dbTempo (Articulo C(30), Largo N(5))
Insert Into dbTempo (Articulo, Largo) Values ("PEPINOS", 20)
Insert Into dbTempo (Articulo, Largo) Values ("TOMATES", 2)
Insert Into dbTempo (Articulo, Largo) Values ("DORITOS", 12)
Insert Into dbTempo (Articulo, Largo) Values ("PEPINOS", 3)
Insert Into dbTempo (Articulo, Largo) Values ("ELOTE", 10)
Insert Into dbTempo (Articulo, Largo) Values ("DORITOS", 9)
Insert Into dbTempo (Articulo, Largo) Values ("ELOTE", 5)
Insert Into dbTempo (Articulo, Largo) Values ("PEPINOS", 15)
Select dbTempo
Index On Articulo + TRANSFORM(100000 - Largo, "@L 9999999") Tag Art ASCENDING
Browse