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
Search is made on unindexed table opened in default datasession as shared.
If Vartype(tcFileName) # "C"
Local llSuccess, lcFileName
lcFileName = Alltrim(tcFileName)
Locate For t_ExFile.SrcFile = Alltrim(tcFileName) And ;
t_ExFile.backup_id = This.iCurrentBackupId
llSuccess = Found()
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.