USE not looking in the right spot
Posted: Fri Aug 07, 2020 11:33 pm
Here's some weirdness that I can't figure out. Simple function just to open the C:DEV|XSHARPTODOSTODOS.DBF
I put a breakpoint after the SET DEFAULT and get this in my Command window:
But when I hit the USE... line I get
XSharp.RDD.RddError: 'Could not find file 'C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDETODOS.DBF'.'
Why is it looking there when I just confirmed that the default was C:DEVXSharpToDos?
Thanks,
Eric
Code: Select all
PUBLIC FUNCTION openToDos() AS Boolean
SET DEFAULT TO "C:DEVXSHARPTODOS"
SELECT 0
USE "TODOS" ALIAS "ToDos"
RETURN USED("TODOS")
END FUNCTION
Code: Select all
>? GetDefault()
"C:DEVXSHARPTODOS"
XSharp.RDD.RddError: 'Could not find file 'C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDETODOS.DBF'.'
Why is it looking there when I just confirmed that the default was C:DEVXSharpToDos?
Thanks,
Eric