This script works when I step through it in degubbing modw but when I run it it continues forwvwe abd I have to Ctrl Alt Del to stop it.
Any Ideas?
Any Ideas?
Code:
method pushButton(var eventInfo Event)
;----------Variables------------------------------
var
Roster database
Office database
tc Tcursor
tc2 tcursor
i longInt
endvar
;----------endVariables---------------------------
addAlias("MYDIR","Standard","D:\\PDOXWIN7\\Moore")
If not tc.open(":MYDIR:Roster1") then
errorShow()
Return
Endif
;--------------------------------------
;Assign Variables from imported table
;--------------------------------------
While True
ID= (tc."Office Id")
name= (tc."Office Name")
Pho= (tc."Phone")
tc.NextRecord()
Address= (tc."Office Name")
tc.NextRecord()
City= (tc."Office Name")
tc.NextRecord()
;---------------------------------------------
;ASSIGN VARIABLES TO Moore Office.db.
;---------------------------------------------
tc2.open(":MYDIR:Office")
tc2.end()
tc2.edit()
tc2.insertAfterRecord()
tc2."Office No"= ID
tc2."OfficeName"= Name
tc2."StreetAddress"= Address
tc2."City"= City
tc2."Phone"= Pho
tc2.endEdit()
Message(tc2.recno())
tc2.close()
endWhile
endMethod