Hello everyone,
I have no clue of visual foxpro, I just try to use the examples I found.
Maybe you can recommend a good book?
I have the following code. I'd like to connect two tables with different
field names and I want to limit/filter/select records from the child table.
Do you have some tips?
Thank You.
I have no clue of visual foxpro, I just try to use the examples I found.
Maybe you can recommend a good book?
I have the following code. I'd like to connect two tables with different
field names and I want to limit/filter/select records from the child table.
Do you have some tips?
Code:
use fe_fertkop in 0 alias fe_fertkop shared again order tag wanr
use fe_fertarb in 0 alias fe_fertarb shared again order tag wanr
use projkopf in 0 alias projkopf shared again order tag projnr
use projpos in 0 alias projpos shared again order tag posprojnu
* seems to work correctly *
select fe_fertarb
SET RELATION TO wanr INTO Fe_fertkop ADDITIVE
* seems to work correctly *
select fe_fertkop
SET RELATION TO projnr INTO projkopf ADDITIVE
* here i want to connect/relate fe_fertkop.projnr with projpos.posprojnu *
* gives the error: 'the variable posprojnu is not available' *
SELECT fe_fertkop
SET ORDER TO projnr
SET RELATION TO posprojnu INTO projpos ADDITIVE
* here i want to 'limit' the resultset of projpos table *
SELECT projpos
SET FILTER TO posfolgnu = fe_fertkop.pos
Select fe_fertarb
Thank You.