Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh relationship(s)
Message
From
08/10/2001 07:08:31
 
 
To
08/10/2001 06:42:40
Nicola Gotti
Produzioni Software Sas
Padova, Italy
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00565404
Message ID:
00565409
Views:
20
Hi!

The most simple way is to use table buffering.

Try also to set relation again or just use SET KEY for child table instead of relation (for the moment of the record editing).
For read-only values from child table, there is also a lookup() function that you can use to quickly get value from related table for displaying. When you use SET SKIP TO, I see no reason here to use relation, because when you change relational expression, refreshing will require several records anyway, that anyway cause records scan and thus auto-update of the record-buffered table.

HTH.

>Question:
>how can I refresh a relation between two tables without moving the parent rec.pointer ?
>I need not to move the rec.pointer because I have Optimistic ROW buffering enabled on parent table and, adding a new rec. on parent, if I issue (as I usually do to refresh a relation) GOTO RECNO() IN (), this is updating the parent table, leaving me no way to TABLEREVERT()...
>
>Thanks in advance
>Nicola
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform