Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- REPLACE
Message
De
26/07/1999 15:25:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/07/1999 15:02:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00246256
Message ID:
00246274
Vues:
18
>Code #1 is supposed to do the same thing as code #2, but code #1 doesn't work when I run it from my command window. It generates an error message, "File is in use by another", why?
>
>Thank you for your time.
>
>CODE #1.
>REPLACE uploaded WITH .T. FOR !RLOCK()
>
>CODE #2.
>USE accounts SHARED
>DO WHILE !EOF()
> IF !uploaded
> IF RLOCK()
> REPLACE uploade WITH .T.
> ENDIF
> ENDIF
> SKIP
>ENDDO
If you set in second code "if !rlock()" then they would supposed to be doing the same. Second first checks if you can rlock(), first does the reverse and tries to do replacement in those records that you cannot rlock() (in use).
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