So,
Here's the app I'm trying to copy, remotely, to my other PC:
-----------------------------------------------------------------------------
'Date Created: 29-Jun-2023 11:04:35 AM
'Last Updated: 16-Sep-2023 08:29:58 AM
'Created By : larry
'Updated By : larry
dim t as p
dim m as p
t = table.open("inswrk")
m = table.open("county")
m.query_create("N",".t.","county")
dim count as n = t.records_get() 'get tne number of records in the transaction table
dim i as n
for i = 1 to count 'loop over all of the records in the transaction table
dim county as c = t.county
m.fetch_find(county) 'find the matching rerd in the county table
dim sequence as n = m.sequence 'get the current sequence value
dim nextsequence as n = sequence + 1 'increment sequence by one
m.change_begin() 'update the sequence in the county table
m.sequence = nextsequence
m.change_end(.t.)
t.change_begin() 'update the sequence in the trnsaction table
t.sequence = nextsequence
t.change_end(.t.)
t.fetch_next()
next i
ui_msg_box("","done")
t.close()
m.close()
β---------------------------------------------------------------
It only has 2 files. After I copied the app, I logged onto the REMOTE PC to verify both of the files were there, and that the field names were exactly the same. They were. When I try to run the app, I get an error. So, I don't understand. When I came back to my master PC, it all works fine.
Does anyone have any ideas ???
Thanks,
Lar
Here's the app I'm trying to copy, remotely, to my other PC:
-----------------------------------------------------------------------------
'Date Created: 29-Jun-2023 11:04:35 AM
'Last Updated: 16-Sep-2023 08:29:58 AM
'Created By : larry
'Updated By : larry
dim t as p
dim m as p
t = table.open("inswrk")
m = table.open("county")
m.query_create("N",".t.","county")
dim count as n = t.records_get() 'get tne number of records in the transaction table
dim i as n
for i = 1 to count 'loop over all of the records in the transaction table
dim county as c = t.county
m.fetch_find(county) 'find the matching rerd in the county table
dim sequence as n = m.sequence 'get the current sequence value
dim nextsequence as n = sequence + 1 'increment sequence by one
m.change_begin() 'update the sequence in the county table
m.sequence = nextsequence
m.change_end(.t.)
t.change_begin() 'update the sequence in the trnsaction table
t.sequence = nextsequence
t.change_end(.t.)
t.fetch_next()
next i
ui_msg_box("","done")
t.close()
m.close()
β---------------------------------------------------------------
It only has 2 files. After I copied the app, I logged onto the REMOTE PC to verify both of the files were there, and that the field names were exactly the same. They were. When I try to run the app, I get an error. So, I don't understand. When I came back to my master PC, it all works fine.
Does anyone have any ideas ???
Thanks,
Lar
Comment