Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this normal in CA
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Is this normal in CA
Divers
Thread ID:
00868728
Message ID:
00868728
Vues:
42
CA is is populated with a parameter like:

PUBLIC SomeValue
SomeValue = "Some Filter Value"
SELECT table1.f1, table1.f2... Where table1.f1 >= ?SomeValue

Above Cursor is located in a GRID which is on pagefram1.page1
Now the abnormal thing, I think:

SomeValue is valued so that Cursor has only one record at the start. When SomeValue is changed, at runtime so that cursor should have f.ex 10 records and CA.CurosRefresh() is issued (and object refresh) nothing happenes. I can change SomeValue to filter to show any number of records but nothing happenes after CA.CurosRefresh(). BUT when TABLEUPDATE(.T.,.T.) is issued in some point (preferrable after the first time SomeValue is changed) and CA.CurosRefresh() works and the grid is refreshed.

Also if SomeValue filter all records at the start (=empty cursor) GIRD is refreshed ONCE when the SomeValue is changed to show 1 ore more records and CA.CursorRefresh() is issued. But this happens only once. You have to run TABBLEUDATE(.T.,.T.) first to get CA.CursorRefresh() work more than than once.

Is this normal behavior?

AT
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform