Page 1 of 1

OrdCreate resolved !!

Posted: Thu May 06, 2021 7:45 am
by Silvio.Falconi
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

Re: OrdCreate resolved!!

Posted: Thu May 06, 2021 8:32 am
by Silvio.Falconi
cfor := "!Deleted()"
bFor := "{ || " + cfor + "}"

OrdCondSet(cFor,bFor,,,,, RECNO(),,,, )