Nuevo FWH 22.10
- Antonio Linares
- Site Admin
- Posts: 42647
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 61 times
- Been thanked: 93 times
- Contact:
- VictorCasajuana
- Posts: 269
- Joined: Wed Mar 28, 2018 4:38 pm
- Location: Vinaròs
- Has thanked: 1 time
- Contact:
Re: Nuevo FWH 22.10
Hola Antonio, dbRollBack() funciona en entornos de red con DBF?
Enviado desde mi motorola edge 20 mediante Tapatalk
Enviado desde mi motorola edge 20 mediante Tapatalk
--------
¿ Y porque no ?
¿ And why not ?
¿ Y porque no ?
¿ And why not ?
- Antonio Linares
- Site Admin
- Posts: 42647
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 61 times
- Been thanked: 93 times
- Contact:
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: Nuevo FWH 22.10
It should work.VictorCasajuana wrote:Hola Antonio, dbRollBack() funciona en entornos de red con DBF?
Enviado desde mi motorola edge 20 mediante Tapatalk
Can you help is by testing?
E.g. customer.dbf opened with alias CUST
Code: Select all | Expand
? CUST->CITY
CUST->CITY := "CHANGED"
? CUST->CITY
CUST->( dbRollBack() )
? CUST->CITY
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- VictorCasajuana
- Posts: 269
- Joined: Wed Mar 28, 2018 4:38 pm
- Location: Vinaròs
- Has thanked: 1 time
- Contact:
Re: Nuevo FWH 22.10
thanks for the reply.nageswaragunupudi wrote:It should work.VictorCasajuana wrote:Hola Antonio, dbRollBack() funciona en entornos de red con DBF?
Enviado desde mi motorola edge 20 mediante Tapatalk
Can you help is by testing?
E.g. customer.dbf opened with alias CUSTNote: dbRollBak() works only when the Record Pointer is not moved and DBCOMMIT() is not executed alreadyCode: Select all | Expand
? CUST->CITY CUST->CITY := "CHANGED" ? CUST->CITY CUST->( dbRollBack() ) ? CUST->CITY
I will make the case:
Code: Select all | Expand
? CUST->CITY
CUST->CITY := "CHANGED"
? CUST->CITY
CUTS->( DbUnlock() )
// do other process...
CUST->( dbRollBack() )
? CUST->CITY
if after making the change to "CHANGED" and doing the dbunlock, if before the dbrollback() another user modifies the value of CUST->CITY by "OTHER USER"
when the rollback() is performed, what value will CUST->CITY finally have, "ORIGINAL" or "OTHER USER" ?
--------
¿ Y porque no ?
¿ And why not ?
¿ Y porque no ?
¿ And why not ?
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: Nuevo FWH 22.10
After doing unlock also, dbrollback does not work
Rollback works before (1) moving record pointer (2) before commit and also (3) before unlock.
This is useful for making modifications in more than one dbf and ensure that either all changes are committed or rolledback.
Please refer
https://forums.fivetechsupport.com/view ... fe#p253200
You may post further queries in that post so that all users will join.
Rollback works before (1) moving record pointer (2) before commit and also (3) before unlock.
This is useful for making modifications in more than one dbf and ensure that either all changes are committed or rolledback.
Please refer
https://forums.fivetechsupport.com/view ... fe#p253200
You may post further queries in that post so that all users will join.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- VictorCasajuana
- Posts: 269
- Joined: Wed Mar 28, 2018 4:38 pm
- Location: Vinaròs
- Has thanked: 1 time
- Contact:
Re: Nuevo FWH 22.10
thanks for the clarification!nageswaragunupudi wrote:After doing unlock also, dbrollback does not work
Rollback works before (1) moving record pointer (2) before commit and also (3) before unlock.
This is useful for making modifications in more than one dbf and ensure that either all changes are committed or rolledback.
Please refer
https://forums.fivetechsupport.com/view ... fe#p253200
You may post further queries in that post so that all users will join.
--------
¿ Y porque no ?
¿ And why not ?
¿ Y porque no ?
¿ And why not ?