I have two DBF and relationship.
1 DBF data below:
A ->set A1 A2 A3
B ->set B1 B2 B3
C ->set C1 C2 C3
D ->set D1 D2 D3
......
When 1.Xbrowse show A data, 2.XBrowse need to show A1 A2 A3 within Header and runtime
When 1.Xbrowse show B data, 2.XBrowse need to show B1 B2 B3 within Header and runtime
- Code: Select all Expand view
::oCol := ::oBrw:AddCol()
::oCol:cHeader := "A1"
::oCol:nHeadStrAlign := AL_CENTER
::oCol:bStrData := { || ::oDB:Data1 }
::oCol:nWidth := 90
::oCol := ::oBrw:AddCol()
::oCol:cHeader := "A2"
::oCol:nHeadStrAlign := AL_CENTER
::oCol:bStrData := { || ::oDB:Data2 }
::oCol:nWidth := 120
::oCol := ::oBrw:AddCol()
::oCol:cHeader := "A3"
::oCol:nHeadStrAlign := AL_CENTER
::oCol:bStrData := { || ::oDB:Data3 }
::oCol:nWidth := 90