Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointers on empty cursors/tables
Message
 
 
À
02/02/2004 09:46:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00872917
Message ID:
00872933
Vues:
17
I would simplify it a little bit
IF NOT EMPTY(cAlias)
    SELECT (cAlias)
    IF BETWEEN(nRecNo, 1, RECCOUNT())
        GOTO (nRecNo)
    ENDIF 
ENDIF 
>>It's not going to work because RECNO() = 1 for empty table/cursor.
>>
>Hi Sergey;
>
>Is there anything wrong with my code ?
>
>
>cAlias = ALIAS()
>
>nRecNo = RECNO()
>
>
>*Do Something
>
>
>if  empty(cAlias)
>else
>    SELE (cAlias)
>    if  nRecNo <> 0 .and. nRecNo =< reccount()
>        GOTO nRecNo
>    endif
>endif
>
>
>I'm asking you because.. IMO, this is the right stuff for Jay.. Don't you thing so ?
>
>Claudio
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform