OrdCreate resolved !!

OrdCreate resolved !!

Postby Silvio.Falconi » Thu May 06, 2021 7:45 am

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
Last edited by Silvio.Falconi on Thu May 06, 2021 8:33 am, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: OrdCreate resolved!!

Postby Silvio.Falconi » Thu May 06, 2021 8:32 am

cfor := "!Deleted()"
bFor := "{ || " + cfor + "}"

OrdCondSet(cFor,bFor,,,,, RECNO(),,,, )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 53 guests