MauditOstie
Member
Is there anyway to do a mem-copy (C++) in progress?
My question is comming from the fact that in our old Database, we have an array of like EXTENT 20.
Is there anyway (apart the DO i = 1 to 20) to copy this array, into a Variable define Like it?
Example:
Define var cVar1 as char extent 20 no-lock.
Define var cVar2 like cVar1 no-lock.
Define i as int no-lock.
/* Replace the following lines */
Do i = 1 to 20:
assign var1 = var2.
end.
/* In C++ i would have done Mem-copy(var1,var2). */
Thanks guys!
MauditOstie
My question is comming from the fact that in our old Database, we have an array of like EXTENT 20.
Is there anyway (apart the DO i = 1 to 20) to copy this array, into a Variable define Like it?
Example:
Define var cVar1 as char extent 20 no-lock.
Define var cVar2 like cVar1 no-lock.
Define i as int no-lock.
/* Replace the following lines */
Do i = 1 to 20:
assign var1 = var2.
end.
/* In C++ i would have done Mem-copy(var1,var2). */
Thanks guys!
MauditOstie