I have written a script that is designed to be ran from an external database. The scripts purpose is to document tables/sets and some details about the structures.
I have used the Fetch_find() several times in the script, frequently when I run the script I will receive "Conflicting expression data types". Usually the error message is tied to line #76, 149, & 172. I have not received an error message tied to the use of the Fetch_find() on line 43 as of yet.
It is my understanding that I am setting the index to a character value and am doing a Fetch_find() using a character value. I am struggling on how to develop an approach on troubleshooting this. Up till now its just been a guessing game that I am losing at horribly.
I have attached a copy of the database, the script "Documenter" will need to be edited for the environment that it is ran in. The following lines will need to be changed to point to the proper file paths. (Side challenge - anyway to have the table paths be dynamic so they work no matter where you put the database?)
When I run the script I am usually in an interactive window of a sperate database and execute. Again the path will have to be modified to fit the enviroment
Any help or comments are appreciated.
Thank you for your time
-Andy
I have used the Fetch_find() several times in the script, frequently when I run the script I will receive "Conflicting expression data types". Usually the error message is tied to line #76, 149, & 172. I have not received an error message tied to the use of the Fetch_find() on line 43 as of yet.
It is my understanding that I am setting the index to a character value and am doing a Fetch_find() using a character value. I am struggling on how to develop an approach on troubleshooting this. Up till now its just been a guessing game that I am losing at horribly.
I have attached a copy of the database, the script "Documenter" will need to be edited for the environment that it is ran in. The following lines will need to be changed to point to the proper file paths. (Side challenge - anyway to have the table paths be dynamic so they work no matter where you put the database?)
Code:
Dbs = "X:\DB_Doc\Dbs.dbf" Tbls = "X:\DB_Doc\Tbls.dbf" Flds = "X:\DB_Doc\Flds.dbf" Sets = "X:\DB_Doc\Sets.dbf" Child_tbls = "X:\DB_Doc\Child_tbls.dbf"
Code:
script_play("Documenter@x:\db_doc\db_doc.alb")
Thank you for your time
-Andy
Comment