Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding redundant data in a view
Message
From
28/12/2003 12:44:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/12/2003 12:09:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00862327
Message ID:
00862356
Views:
18
>Hi Hilmar,
>
>I want it to look cleaner when I browse the view. Seems like I've seen relations that showed only the parent and its children, with blank or nulls instead of repeating the parent information.
>
>Any ideas as to how this is done would be appreciated. Thanks.

What you saw was probably a browse with Set Relation and Set Skip, but that's so xBase and can't be persisted. IOW, it depends on the order of the child table and the relation you set.

What you can do is write a little loop which would go through your (readwrite) cursor and blank the repeated values:
do while !eof()
   lcKey={key field}
   skip
   if not eof()
      blank fields {key field} while lcKey={key field}
   endif
enddo

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform