In a module, I have a mysql table loaded and I need to open two more to save data, but when I try to do an xBrowse with data from the second or third it presents an error.
- Code: Select all Expand view RUN
oRsLOTEAMENTO := oServer:ROWSET("SELECT * FROM loteamentos ORDER BY nome")
oRsSOCIOS := oServer:ROWSET("SELECT * FROM socio ORDER BY loteamento")
oRsLOTES := oServer:ROWSET("SELECT * FROM lotes ORDER BY loteamento")
- Code: Select all Expand view RUN
@ 0069,0000 XBROWSE oBrwLOTEAMENTOS OF oDlgLOTEAMENTOS SIZE 0520,0230 STYLE FLAT PIXEL NOBORDER DATASOURCE oRsLOTEAMENTO//AUTOSORT
ADD TO oBrwLOTEAMENTOS DATA oRsLOTEAMENTO:nome PICTURE "@!" HEADER "Nome" WIDTH 520
ADD TO oBrwLOTEAMENTOS DATA oRsLOTEAMENTO:bairro PICTURE "@!" HEADER "Bairro" WIDTH 260
ADD TO oBrwLOTEAMENTOS DATA oRsLOTEAMENTO:cidade PICTURE "@!" HEADER "Cidade" WIDTH 260
oBrwLOTEAMENTOS:nColDividerStyle := 0
oBrwLOTEAMENTOS:nRowDividerStyle := 0
oBrwLOTEAMENTOS:nMarqueeStyle := 5
oBrwLOTEAMENTOS:lHScroll := .F.
oBrwLOTEAMENTOS:lVScroll := .T.
oBrwLOTEAMENTOS:lRecordSelector := .F.
oBrwLOTEAMENTOS:bKeyChar := {|nKey|IIF(nKey==VK_RETURN,((OPERACAO_LOTEAMENTOS(2))),)}
oBrwLOTEAMENTOS:bClrSelFocus := {||{nRGB(000,000,000),nRGB(150,150,150)}}
oBrwLOTEAMENTOS:bClrSel := {||{nRGB(000,000,000),nRGB(150,150,150)}}
oBrwLOTEAMENTOS:bClrStd := {||{CLR_BLUE,IIF(oRsLOTEAMENTO:KeyNo() %2==0,CLR_WHITE,nRGB(232,232,232))}}
oBrwLOTEAMENTOS:nHeaderHeight := 40
oBrwLOTEAMENTOS:bClrHeader := {||{nRGB(000,000,000),nRGB(150,150,150)}}
oBrwLOTEAMENTOS:bSeek := {|c|.F.}
oBrwLOTEAMENTOS:aCols[1]:oHeaderFont := ARIAL16B
oBrwLOTEAMENTOS:aCols[1]:bLClickHeader := {|r,c,f,o| nil}
oBrwLOTEAMENTOS:aCols[2]:oHeaderFont := ARIAL16B
oBrwLOTEAMENTOS:aCols[2]:bLClickHeader := {|r,c,f,o| nil}
oBrwLOTEAMENTOS:aCols[3]:oHeaderFont := ARIAL16B
oBrwLOTEAMENTOS:aCols[3]:bLClickHeader := {|r,c,f,o| nil}
oBrwLOTEAMENTOS:CreateFromCode()
- Code: Select all Expand view RUN
@ 0069,0000 XBROWSE oBrwSOCIOS OF oFldLOTEMENTOS:aDialogs[2] SIZE 0120,0230 STYLE FLAT PIXEL NOBORDER DATASOURCE oRsSOCIOS
ADD TO oBrwLOTEAMENTOS DATA oRsSOCIOS:nome PICTURE "@!" HEADER "Nome" WIDTH 0520 <------ ERROR !!!!
ADD TO oBrwLOTEAMENTOS DATA oRsSOCIOS:porcentagem PICTURE "999" HEADER "%" WIDTH 0018
oBrwSOCIOS:nColDividerStyle := 0
oBrwSOCIOS:nRowDividerStyle := 0
oBrwSOCIOS:nMarqueeStyle := 5
oBrwSOCIOS:lHScroll := .F.
oBrwSOCIOS:lVScroll := .T.
oBrwSOCIOS:lRecordSelector := .F.
oBrwSOCIOS:bKeyChar := {|nKey|IIF(nKey==VK_RETURN,((OPERACAO_LOTEAMENTOS(2))),)}
oBrwSOCIOS:bClrSelFocus := {||{nRGB(000,000,000),nRGB(150,150,150)}}
oBrwSOCIOS:bClrSel := {||{nRGB(000,000,000),nRGB(150,150,150)}}
oBrwSOCIOS:bClrStd := {||{CLR_BLUE,IIF(oRsSOCIOS:KeyNo() %2==0,CLR_WHITE,nRGB(232,232,232))}}
oBrwSOCIOS:nHeaderHeight := 40
oBrwSOCIOS:bClrHeader := {||{nRGB(000,000,000),nRGB(150,150,150)}}
oBrwSOCIOS:bSeek := {|c|.F.}
oBrwSOCIOS:aCols[1]:oHeaderFont := ARIAL16B
oBrwSOCIOS:aCols[1]:bLClickHeader := {|r,c,f,o| nil}
oBrwSOCIOS:aCols[2]:oHeaderFont := ARIAL16B
oBrwSOCIOS:aCols[2]:bLClickHeader := {|r,c,f,o| nil}
oBrwSOCIOS:CreateFromCode()
Error description: Error BASE/1004 Class: 'NIL' has no exported method: NOME
ADD TO oBrwLOTEAMENTOS DATA oRsSOCIOS:nome PICTURE "@!" HEADER "Nome" WIDTH 0520
Can someone help?
Thanks