Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with dbc_BeforeOpenTable(cTableName)
Message
De
05/06/2002 17:30:23
 
 
À
05/06/2002 17:26:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00665163
Message ID:
00665166
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform