[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
'#if' question
What's wrong with my code?
I get error SQR 4707,
No value found for substitution variable: {$2array-name}
variable #which_array is set to 1...
#define $1array-name dparray
!#define $2array-name wcarray
!i commented out above line because this array does not exist
! for this program but it does for another program.
...
...
...
if #which_array=1
#if {$1array-name}='dparray'
put $something into dparray(#record)
#end-if
#if {$1array-name}='jcnarray'
put $something into jcnarray(#record)
let $something = 'nothing'
get $something from jcnarray(#record)
show 'after display = ' #record ' ' $something
#end-if
end-if
if #which_array=2
!error is on this line
#if {$2array-name}='wcarray'
put $something into wcarray(#record)
#end-if
end-if