Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- REPLACE
Message
From
26/07/1999 15:25:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/07/1999 15:02:37
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00246256
Message ID:
00246274
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform