Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create cursor tmpqry from array aflds..If I run 2x?
Message
De
11/11/2000 06:18:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/11/2000 11:03:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00438803
Message ID:
00440685
Vues:
14
>I am having a hard time for the past few hours figuring out a problem.
>
>The question is..
>
>Could VFP be picking up the old cursor with the same name from my disk cache somehow... If it is I have deeper problems...
>
>
>Here's what happens...
>
>I am doing a very special query for a customer...
>-I run a SQLEXEC() to oracle and return a cursor called MERCHSHEET.
> *There are 4 variables in the where calues I enter on a form...
>-Then I select the sheet and create a cursor with afields called tmpqry.
>-Then I loop through the merchsheet and do some special processing putting
>completed records in the tmpqry...
>-Then I
>use in merchsheet
>use tmpqry again in 0 alias merchsheet
>use in tmpqry
>select merchsheet...
>
>Now I have my new merchsheet and everything is cool until..
>
>I run the new query with new parameters. Every time I still get my old results...
>
>I'vd stepped through and can't see any problems.
>
>The only thing that fixed it was using create table to create tmpqry instead
>of create cursor then it works great. But I have problems cause it's a citrix app...
>
>???Anyone now what could be wrong?

Tim,
Actually I don't have a clear idea.
Instead of :
use tmpqry again in 0 alias merchsheet

use dbf('tmpqry') again in 0 alias merchsheet

might help. Second (I don't know Citrix so don't know what would it make a difference) 'create table' and 'create cursor' doesn't have a difference except automatic cleanup of cursor files. Both at the end write to disk.
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