I would like to ask for hints connected with following problem.
The part of code listed below searches for filepath in the table.
Type of field SrcFile is Memo, field Backup_Id is Integer.
Variable tcFileName has type Character, and iCurrentBackupId is declared
as Integer.
Search is made on unindexed table opened in default datasession as shared.
Lparameters tcFileName
If Vartype(tcFileName) # "C"
Return .F.
Endif
Local llSuccess, lcFileName
Select t_ExFile
lcFileName = Alltrim(tcFileName)
Locate For t_ExFile.SrcFile = Alltrim(tcFileName) And ;
t_ExFile.backup_id = This.iCurrentBackupId
llSuccess = Found()
Select t_File
Return llSuccess
The problem is, that the method works properly, when running in FoxPro environment, as a part of an applicaton. After compiling the application into *.exe, Locate finds nothing.