With this code, i was trying to insert a line whenever a selected row will be processed.
I have seen the topic, (from version 16.08) I have 16.11
oCn:Insert( "changes", "bond, naam, voornaam,oldploeg,newploeg,datum", { oBrw:naam, oBrw:voornaam, oBrw:p2017, cPloeg, date() } )
I believe this should work. The oCn is open and working : FWCONNECT oCn HOST cServer USER cUser PASSWORD cPassword DATABASE cDatabase
I see no error when this code is executed.
What should I change?
I have seen the topic, (from version 16.08) I have 16.11
oCn:Insert( "changes", "bond, naam, voornaam,oldploeg,newploeg,datum", { oBrw:naam, oBrw:voornaam, oBrw:p2017, cPloeg, date() } )
I believe this should work. The oCn is open and working : FWCONNECT oCn HOST cServer USER cUser PASSWORD cPassword DATABASE cDatabase
I see no error when this code is executed.
What should I change?
function setploeg(oBrw,cPloeg)
  local uSavePos := oBrw:BookMark
  if msgYesNo(str(LEN(oBRW:aSELECTED),3)+"-> Geselecteerde leden verplaatsen")
    FOR I = 1 TO LEN(oBRW:aSELECTED) // obrw:aSELECTED is an array containing recnos marked
     oCn:Insert( "changes", "bond, naam, voornaam,oldploeg,newploeg,datum", { oBrw:naam, oBrw:voornaam, oBrw:p2017, cPloeg, date() } )
     oBrw:BookMark := oBrw:aSelected[ i ]  // works for dbf, rowset, ado and all
     oBrw:p2017:VarPut( cPloeg ) // Works for dbf, rowset, ado and all
    next
  endif
  oBrw:BookMark := uSavePos
return NILMarc Venken
Using: FWH 23.08 with Harbour
Using: FWH 23.08 with Harbour