Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error creating index, only on some computers
Message
From
04/02/2008 14:35:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01289203
Message ID:
01289232
Views:
14
>they are all the same, XP Professional Version 2002 Service Pack 2

Well I guess you should confirm the user rights for "c:\docume~~\user~~~\temp" on the malfunctioning PCs.

But I more strongly suspect that the name given to the .tmp file is the root of the problem. Any file name starting with a numeric will NOT have its name become the alias for the file - VFP will make one up and use that.

Also, since you've already found a problem in configuration differences causing inconsistent application behaviour, I would look a little deeper in that area too.

good luck



>
>>Are the malfunctioning systems all running the same OS? If so, which one?
>>
>>
>>>I create a cursor for a grid along with indexes for each field of the cursor where code is in the click event of the grid to sort by that column.
>>>
>>>The following is the code
>>>
>>>
>>>
>>>lcRecordSource = this.grid.recordsource
>>>this.grid.recordsource = ''
>>>
>>>select ;
>>>...
>>>from ....
>>>into cursor &lcRecordSource readwrite
>>>
>>>
>>>Select (lcRecordSource)
>>>
>>>Afields(aFlds,lcRecordSource)
>>>
>>>
>>>For ix = 1 To This.Parent.grid.ColumnCount
>>>	lcIx = '"FLD'+Alltrim(Str(ix))+'"'
>>>	lcField = Alltrim(aFlds(ix,1))
>>>	Index On &lcField Tag &lcIx Additive
>>>Endfor
>>>
>>>this.grid.recordsource = lcRecordSource
>>>
>>>this.grid.refresh
>>>
>>>
>>>
>>>On some computers everthing works correctly, how ever on some I am getting the folling error;
>>>
>>>
>>>Program Error Message Number 1718
>>>Error Message: File c:\docume~~\user~~~\temp\00002x00002.tmp is readonly
>>>Line Number of Error: 1718
>>>
>>>
>>>I am at my wits end trying to figure out what is wrong. The index must be created, because by clicking on the grid headers, the columns are sorted properly etc.
>>>
>>>And why only on some workstations is this error occurring?
>>>
>>>Thanks in advance
Previous
Reply
Map
View

Click here to load this message in the networking platform