Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving an empty cursor
Message
 
À
31/08/2001 09:22:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00551332
Message ID:
00551351
Vues:
20
Hello Michael,

I would do

IF lAddMode
cSqlStatement = "SELECT EMP.* FROM EMP WHERE .F."
ELSE
cSqlStatement = "SELECT EMP.* FROM main_one!EMP WHERE EMP.pers_no = ?nEmplNo "
ENDIF

This should be somewhat faster when you add records.

You could also create it from the local cursor if it's available!

Bob



>Hi Bob,
>
>cSqlStatement = "SELECT EMP.* FROM main_one!EMP WHERE EMP.pers_no = ?nEmplNo "
>
>IF lAddMode
> cSqlStatement = cSqlStatement + "AND .F. "
>ENDIF
>
>nHandle = sqlexec(nConHandle, csqlstatement, 'empl_cursor')
>
>That actually worked. I would have assumed that that would crash my SQL statement.
>
>Thanks alot
>Mike
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform