>>>replace online with .f. in "stations"
>>>unlock in "stations"
>>Hi Cetin,
>>
>>Only one problem with this. It assumes that the drive supports long filenames, which may or may not be the case depending on the OS. For example, I don't believe that Netware 3.1x has long filename support. This may have been the reason that 6.0 suggests the SUBSTR() business.
>Hidy George,
>You're right. I don't think of those details anymore with a few assumptions (assumptions always mean to fail :( ) :
>-No one uses VFP w/o a local disk and w/o win95 or NT (V5 partly guarantees it)
>-If 1st assumption succeeded I would never create temp files on a remote drive
>Seem I force my clients to more than M$ :( The real failure part would be in do while loop I think. Having no delay there and in any case few stations hit the same login time, then except first, rest could wait forever. Quick code always have some problems :( In fact I use substr (stuff) but always precede it with a letter.
cFileName = stuff("T"+sys(2015),9,0,".")
Cetin
Unless you want to have a sysop who can see if you're there, you don't have to hit this table every time - app start is the moment when you want to give your app an identification (the one or two char code), and keep it for the instance's lifetime. You may want to write the logout info too.
The way I've handled this was actually adding a new record to the login table, taking the parameters from the user's table first, and before quitting just reset the IAmHere flag in this new record. This way there was no record locking at all.