You can change variables by using the EVAL debug command with assignment. To specify the scope of the EVAL command, use a QUAL command.
Example:
This example shows you how to use the EVAL debug command to assign an expression to a variable.
For example, "EVAL hold_formatted_cost [1] = '#'" changes the array element at 1 from $ to # and shows "hold_formatted_cost[1]= '#' = '#':" on the Display Module Source display as shown:
+--------------------------------------------------------------------------------+ | Display Module Source | | | | Program: T1520PG1 Library: MYLIB Module: T1520IC2 | | 47 if (j<0) return(0); | | 48 if (hold_formatted_cost[i] == '$') | | 49 { | | 50 formatted_cost[j] = hold_formatted_cost[i]; | | 51 break; | | 52 } | | 53 if (i<16 &&; !((i-2)%3)) | | 54 { | | 55 formatted_cost[j] = ','; | | 56 --j; | | 57 } | | 58 formatted_cost[j] = hold_formatted_cost[i]; | | 59 --j; | | 60 } | | 61 | | | | Debug . . . ___________________________________________________________ | | ________________________________________________________________________ | | F3=End program F6=Add/Clear breakpoint F10=Step F11=Display variable | | F12=Resume F17=Watch variable F18=Work with watch F24=More keys | | hold_formatted_cost[1]= '#' = '#' | +--------------------------------------------------------------------------------+
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.