Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating the Grid display in a form with a new cursor.
Message
De
08/07/1999 05:42:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/07/1999 04:25:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00238717
Message ID:
00238730
Vues:
15
>On a form, I have a button that does an SQL select into a cursor. I then create a grid using AddObject. The grid displays the the cursor fine. But if I do another SQL select to the cursor using the the same name, then do a refresh on the grid it shows up with a column count of 0 and the display is blank.
>
>I don't understand why this doesn't work if the grid constrolsource still shows the cursor name.
Free the cursorname first :
with oGrid
  .recordsource = ""
  .columncount = -1   && If don't want to preserve column formatting
  .recordsource = "NewCursor"
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform