Hi All:
Using VFP 8.0
PROBLEM: Need my Swog Weight to rate.
SWOG stands for Ship With Other Goods. It is used to ship several smaller items within a larger container to the same destination. This information is stored in the shipping software I'm using, it lets you track which shipment a particular item was sent in.
USER PROCESS: User clicks on the Swog cmdButton, which launches a grid from the SWOG111.dbf. When the user clicks LIST from the grid, their products/records are displayed from the products.dbf. After the user clicks/selects a product, it then populates the grid/Swg111.dbf.
MY TASK: Attempting to do a Function that will take the data from the temp swog table (swog111.dbf) which is created during shipment processing screen(station1),and stuff the weight from Sw_anynum2 (Swog111.Sw_anynum2) into the weight field/array SC_SHIP.A_SHIP[8]on the shipping screen. Of course, this will only work for one swog record; later in the stage I will do a procedure in my cus_main.prg that will take all the weight and total it up then be stuffed.
ERROR: I hit Record then I receive a message box "Swog111.dbf is in use by another user/Application" click OK the another error "Error 12 Parent is not found
CODE:
FUNCTION Swg_weight()
Set exclusive off
Use swog111 in 0 again alias myAlias
*Locate for a particular record if needed
Sc_ship.a_ship[8] = myAlias.Sw_anynum2
EndFunc
I did try 'Set exclusive off' but that made no difference. I'm the only user. I think I know what the problem is, I am accessing SWOG111.dbf but not closing it so, after record the information from Swog gets written to the manifest table hence, its locked up. Do I need to close it? Other than that, I'm still not seeing my weight in my field (ref. Sc_ship.a_ship[8])
Any suggestions would be apreciated.
Thanks,
~PM
Using VFP 8.0
PROBLEM: Need my Swog Weight to rate.
SWOG stands for Ship With Other Goods. It is used to ship several smaller items within a larger container to the same destination. This information is stored in the shipping software I'm using, it lets you track which shipment a particular item was sent in.
USER PROCESS: User clicks on the Swog cmdButton, which launches a grid from the SWOG111.dbf. When the user clicks LIST from the grid, their products/records are displayed from the products.dbf. After the user clicks/selects a product, it then populates the grid/Swg111.dbf.
MY TASK: Attempting to do a Function that will take the data from the temp swog table (swog111.dbf) which is created during shipment processing screen(station1),and stuff the weight from Sw_anynum2 (Swog111.Sw_anynum2) into the weight field/array SC_SHIP.A_SHIP[8]on the shipping screen. Of course, this will only work for one swog record; later in the stage I will do a procedure in my cus_main.prg that will take all the weight and total it up then be stuffed.
ERROR: I hit Record then I receive a message box "Swog111.dbf is in use by another user/Application" click OK the another error "Error 12 Parent is not found
CODE:
FUNCTION Swg_weight()
Set exclusive off
Use swog111 in 0 again alias myAlias
*Locate for a particular record if needed
Sc_ship.a_ship[8] = myAlias.Sw_anynum2
EndFunc
I did try 'Set exclusive off' but that made no difference. I'm the only user. I think I know what the problem is, I am accessing SWOG111.dbf but not closing it so, after record the information from Swog gets written to the manifest table hence, its locked up. Do I need to close it? Other than that, I'm still not seeing my weight in my field (ref. Sc_ship.a_ship[8])
Any suggestions would be apreciated.
Thanks,
~PM