Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with dbc_BeforeOpenTable(cTableName)
Message
From
05/06/2002 17:30:23
 
 
To
05/06/2002 17:26:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00665163
Message ID:
00665166
Views:
20
>Is it just my computer or does this produce a problem on your computer too?
>To see full problem:
>Make sure Table1 has records in it.
>Make sure Table2 has records in it and indexes.
>
>
>PROCEDURE dbc_BeforeOpenTable(cTableName)
>  *Just before a table or view is opened. Return .F. to prevent table or view being opened.
>
>  IF LOWER(cTableName) = 'test'
>    IF !USED('Table1')
>      USE Table1 IN 0 AGAIN
>    ENDIF
>  ENDIF
>
>ENDPROC
>
>CREATE sql view test ;
>  as ;
>  select * ;
>  from Table2
>
>USE test NODATA
>
>
>Now look in the DATA SESSION WINDOW and see if Test and Table2 are somehow linked together.
>Click on Test and Table2 gets highlighted also.
>Click on Table2 and Test gets highlighted also.
>Browse either Test or Table2 and there are no records in either.
>Look at PROPERTIES of Table2 and there are no indexes.

Just discovered this also:
USE test
Then browse Table2, it browses Test or Table1
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform