Page 1 of 1

TAGENABLE

Posted: Sun Mar 06, 2011 10:05 am
by RDalzell
Hi Roger,

When using the TAGENABLE clause of DCBROWSE for a database without the TAG field, is an array automatically created which I can use?

I had placed the TAG field into my database (works wonderfully), but as it is simultaneously accessed in a multiuser environment, each users individual TAGs interfere with proper operation. Therefore an array per user session would be the better solution for my purpose.

I am uncertain if I have to place additional code into a DCBROWSE EVAL or if you already create an array behind the scenes for this use.

Code: Select all

@ 0,0 DCBROWSE oBrowse ALIAS "Hearing"
         TAGENABLE ;
         TAGCOLOR GRA_CLR_RED, GRA_CLR_YELLOW ;
         TAGMODE DCGUI_TAGMODE_SET ;
         ITEMMARKED {|| Dc_GetRefresh(oButton) } ;
         ITEMSELECTED {|| Dc_ReadGuiEvent(DCGUI_EXIT_OK, GetList) }
Thanks,
Rick

Re: TAGENABLE

Posted: Sun Mar 06, 2011 11:24 am
by rdonnay
Rick -

I recommend NOT using the TAG field for multi-user purposes.

If there is no tag field, then a public array is automatically created.

This array can be accessed by the function DC_RecTagArray().
It is simply a multi-dimensional array of record numbers anchored to the current work area.

BTW - I have to spend some days in Chicago this month. It would be great to get together.
Not sure of the days yet.

Roger

Re: TAGENABLE

Posted: Sun Mar 06, 2011 1:38 pm
by RDalzell
Roger,

Thanks, let me know when, looking forward to see you again.

Rick