2006-03-01 21:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/dbinfo.ch
* harbour/source/rdd/workarea.c
* added DBI_SCOPEDRELATION action. It alow to test if given
relation on current work area sets scope on child index.
F.e.: dbInfo( DBI_SCOPEDRELATION, 1 )
This commit is contained in:
@@ -8,6 +8,13 @@
|
||||
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
* harbour/makefile.vc
|
||||
#command TEXT => __text|Qout(%s)|QQOut()
|
||||
#command TEXT TO FILE <f> => ;
|
||||
__text|Qout(%s)|__TextRestore()|__TextSave(<f>)
|
||||
|
||||
ParseBlockCode is called for every line beetwen TEXT/ENDTEXT,
|
||||
%s is replaced with the text enclosed with []
|
||||
|
||||
2006-03-02 01:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/pp/ppcore.c
|
||||
* fixed yest another problem with PP which caused GPF on
|
||||
|
||||
@@ -263,6 +263,7 @@
|
||||
#define DBI_SEPARATOR 134 /* The record separator (as a string) */
|
||||
#define DBI_MEMOVERSION 135 /* sub version of memo file */
|
||||
#define DBI_TABLETYPE 136 /* Type of table file */
|
||||
#define DBI_SCOPEDRELATION 137 /* Is given relation scoped */
|
||||
|
||||
/* RECORD MAP (RM) support */
|
||||
#define DBI_RM_SUPPORTED 150 /* has WA RDD record map support? */
|
||||
|
||||
@@ -645,6 +645,27 @@ ERRCODE hb_waInfo( AREAP pArea, USHORT uiIndex, PHB_ITEM pItem )
|
||||
break;
|
||||
}
|
||||
|
||||
case DBI_SCOPEDRELATION:
|
||||
{
|
||||
int iRelNo = hb_itemGetNI( pItem );
|
||||
BOOL fScoped = FALSE;
|
||||
|
||||
if( iRelNo > 0 )
|
||||
{
|
||||
LPDBRELINFO lpdbRelations = pArea->lpdbRelations;
|
||||
while( lpdbRelations )
|
||||
{
|
||||
if( --iRelNo == 0 )
|
||||
{
|
||||
fScoped = lpdbRelations->isScoped;
|
||||
break;
|
||||
}
|
||||
lpdbRelations = lpdbRelations->lpdbriNext;
|
||||
}
|
||||
}
|
||||
hb_itemPutL( pItem, fScoped );
|
||||
}
|
||||
|
||||
case DBI_RM_SUPPORTED:
|
||||
hb_itemPutL( pItem, FALSE );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user