How I can Order with ordcreate the condition "!deleted()" ?
I made
I insert all ::aIdx on an array
type { "RESERVA" , { { "Rooms_id+Dtos(Check_in)" , "room_in" , "Reserva" } } }
FOR i := 1 TO LEN( ::aIdx )
DbUseArea( .F. ,, ::aIdx[ i, 1 ],, .F. )
FOR k := 1 TO LEN( ::aIdx[ i, 2 ] )
bCode := "{ || " + ::aIdx[ i, 2, k, 1 ] + "}"
OrdCondSet(,,,,,, RECNO(),,,, )
OrdCreate( ::aIdx[ i, 2, k, 3 ], ::aIdx[ i, 2, k, 2 ], ::aIdx[ i, 2, k, 1 ], &bCode )
NEXT
DbCloseArea()
::oMeter:nPosition := ( ( i * 100 ) / Len( ::aIdx ) )
NEXT
the "!deleted()" where I can insert ?
I tried with
bCode := "{ || " + ::aIdx[ i, 2, k, 1 ] + "}"
bFor := "{ || " + "!Deleted()" + "}"
OrdCondSet(,bFor,,,,, RECNO(),,,, )
OrdCreate( ::aIdx[ i, 2, k, 3 ], ::aIdx[ i, 2, k, 2 ], ::aIdx[ i, 2, k, 1 ], &bCode )
but not run