Hi all
Any one has used OrdCreate( ... ) with the UNIQUE clausule and work as expected ?
Help say: OrdCreate(<cOrderBagName>,[<cOrderName>],<cExpKey>, <bExpKey>, [<lUnique>])
But when use with lUnique .T. nothing happens
Sorry if is Off Topic
Regards
Maybe OT: OrdCreate with Unique Clausule
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Maybe OT: OrdCreate with Unique Clausule
I used unique indexes and they work the way they are expected to work.
I use command syntax
INDEX ON <expr> TAG <tagname> UNIQUE
I use command syntax
INDEX ON <expr> TAG <tagname> UNIQUE
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Maybe OT: OrdCreate with Unique Clausule
hidroxid,
I'm using it in some complicated situations
a sample
The index :
cUnique := cRMonat + "P" // cRmonat can be January - Dezember 12 different DBF
ORDCREATE( ,cUnique, "UPPER(PAT_NNAME + PAT_VNAME)", ;
{|| UPPER(PAT_NNAME + PAT_VNAME) } , .T. ) // .T. = UNIQUE
ORDCREATE( ,cRMonat, "UPPER(PAT_NNAME + PAT_VNAME)", ;
{|| UPPER(PAT_NNAME + PAT_VNAME) } , .F. )
It is the same DBF but opend twice. Once with a UNIQUE on NAMES
and the 2. with a normal index on NAMES
The result :
The left browser-sample -> NO unique
The right browser-sample -> UNIQUE
The upper browser UNIQUE is needed
The lower browser is related to brower 1
I hoüpe it helps
regards
Uwe
I'm using it in some complicated situations
a sample
The index :
cUnique := cRMonat + "P" // cRmonat can be January - Dezember 12 different DBF
ORDCREATE( ,cUnique, "UPPER(PAT_NNAME + PAT_VNAME)", ;
{|| UPPER(PAT_NNAME + PAT_VNAME) } , .T. ) // .T. = UNIQUE
ORDCREATE( ,cRMonat, "UPPER(PAT_NNAME + PAT_VNAME)", ;
{|| UPPER(PAT_NNAME + PAT_VNAME) } , .F. )
It is the same DBF but opend twice. Once with a UNIQUE on NAMES
and the 2. with a normal index on NAMES
The result :
The left browser-sample -> NO unique
The right browser-sample -> UNIQUE
The upper browser UNIQUE is needed
The lower browser is related to brower 1
I hoüpe it helps
regards
Uwe
Last edited by ukoenig on Thu Apr 28, 2016 12:47 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
Re: Maybe OT: OrdCreate with Unique Clausule
I have to check my source carefully because in an example that would send to your..... it worked , then the problem is not the function the problem is me lol
Thanks so much!
Thanks so much!