Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing SQL results
Message
De
11/09/1997 09:30:01
 
 
À
11/09/1997 09:25:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00049056
Message ID:
00049502
Vues:
64
>>>>>This is a routine for "ReUsing" a cursor so that it beomes read/write.
>>>>>It requires a single argument: the name of the cursor passed as a character string.
>>>>>
>>>>>Procedure ReUse && Makes a readonly cursor read-write
>>>>>LParam CursorName
>>>>>Use (dbf(CursorName)) Again in 0 Alias __ReUseTemp
>>>>>Use in Select(CursorName)
>>>>>Use (dbf("__ReUseTemp")) Again in 0 Alias (CursorName)
>>>>>Use in __ReUseTemp
>>>>>Sele (CursorName)
>>>>>Return
>>>>
>>>>You may want to create a new entry in the Knowledgebase here on Universal Thread for this sample. It may be useful to many of us. Thank you.
>>>
>>>Arnon already posted it.
>>
>>No, he didn't. At least not here, on UT.
>>
>>Vlad
>
>Vlad, this procedure cannot be good: it uses Select which is slow :).

Common Ed! :) I never said to not use SELECT. Just to avoid it when it's possible. Especially in big loops or in functions that can be called many times. Or just before ENDSCAN, because the SCAN...ENDSCAN restores the area at each loop by default. Things like that... :)))

This procedure doesn't seem to be one that can be called in very big loops.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform