//In the line above we would like to use the variable activecol instead of the value 3, like: // int numPeaks = %([PeaksBK$]PeaksSHT$!col(activecol)[C]$); //but this doesn't work.
type "activecol = $(activecol)"; type "numPeaks = $(numPeaks)"; type "%A"; for(int i = 1; i <= numPeaks; i++){ draw -c 1 -d 0 -l -v aa[i]; }
Sorry that I wasn’t aware Lowell desired to use % with an embedded $. For now, it is not allowed the embedded use of % and $. Instead of the workaround that James mentioned, we can use string registers to avoid this: