Hi All,
I am wanting to retrieve table values from a query and assign the values as a variable within Python. So far I have used this Python code to run MapBasic to access these table values, however, after doing so cannot get them from MapBasic back into Python afterwards. Is there a way around this? Or can it done directly from Python?
# Open Table File
Open_tabInput = pro.Catalog.OpenTable(tabInput, "Points")
# Select row of Tab File
do("Select * From Points where rowid = 1 into selection")
# Open Bowser
do("Browse * From Selection")
# Set variable
do("Dim value as String")
# Retrieve value
do("value = Query1.ColName")
Is it possible to get this variable "value" set in MapBasic into Python?
Or is it possible to access this table value directly using Python instead of calling MapBasic?
Any help is much appreciated.
Thanks,
Luke
------------------------------
Luke Lynx
Knowledge Community Shared Account
------------------------------