Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid One To Many
Message
From
01/03/1999 02:30:58
Mark Austen
Schooner Software Limited
Msida, Malta
 
 
To
28/02/1999 15:28:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00192471
Message ID:
00192555
Views:
24
Jan,

Here's one way of achieving what you want although it shows the Animals in alphabetical order. Still, the principle is there:

select 0
use Animals
*
select ;
* ;
from ;
Animals ;
into ;
table 'TempCurs' ;
order by ;
Animal
*
if _tally > 0
lcAnimal = Animal
skip
*
scan while .t.
*
if Animal = lcAnimal
replace Animal with ''
*
else
lcAnimal = Animal
*
endif
*
endscan
*
browse
*
endif
*
close databases all
*
return

I've assumed that the table your animal details are in is called Animals, I've used a browse just to show what it look like and I've use 'TempCurs' as the temporary table name.

Hope this solves your problem,

Regards,

MarkA
Regards,

MarkA
Previous
Reply
Map
View

Click here to load this message in the networking platform