Johnny T
Member
I have a program that has product dependant values held within a datablock. All the values that are currently being used are held within DB100 and the different product programs are held in DB150 (for program 1), DB160 (for program 2), DB170 etc etc
If the operator selects program 1 I want to copy all of DB150 and put it into DB100.
I wrote a variable declaration table in a function that has an INT called PROG_NO.
I wanted to call SFC 20 (BLKMOV) and pass in DB[#PROG_NO] as the Source and then DB100 as the Destination but it won't let me do it.
If I just type DB150 then it accepts it but this means I'll have to call the block 20 times for 20 different programs and I don't want to do that if possible.
Is there a way to achieve this?
Also, does the BLKMOV copy all of the Source DB into the Destination DB or do you have to somehow denote the length of information to be copied? I saw an example in the 'help' file using a pointer along the line of P#0.0 BYTE 10 (do I need this format if I'm just copying an entire DB over another DB)
PS. All the datablocks are the same size.
Many thanks for your help.
Cheers
JT ;-)
If the operator selects program 1 I want to copy all of DB150 and put it into DB100.
I wrote a variable declaration table in a function that has an INT called PROG_NO.
I wanted to call SFC 20 (BLKMOV) and pass in DB[#PROG_NO] as the Source and then DB100 as the Destination but it won't let me do it.
If I just type DB150 then it accepts it but this means I'll have to call the block 20 times for 20 different programs and I don't want to do that if possible.
Is there a way to achieve this?
Also, does the BLKMOV copy all of the Source DB into the Destination DB or do you have to somehow denote the length of information to be copied? I saw an example in the 'help' file using a pointer along the line of P#0.0 BYTE 10 (do I need this format if I'm just copying an entire DB over another DB)
PS. All the datablocks are the same size.
Many thanks for your help.
Cheers
JT ;-)