Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
LOCAL lcRow1, lcRow2, lcChar
lcRow1 = "+bcdef "
lcRow2 = "xbc _ ghi"
lcCombinedRow = ""
For lnPosition = 1 TO LEN(lcRow2) && the same as Len(lcRow1) - important for the code to work
lcChar = " "
DO Case
CASE SUBSTR(lcRow1,lnPosition,1) = SUBSTR(lcRow2,lnPosition,1)
* Characters are equal, this can be merged, taking either one
* Should actually get bold, can't be denoted in a string.
lcChar = SUBSTR(lcRow1,lnPosition,1)
CASE SUBSTR(lcRow1,lnPosition,1) = " "
* Row1 has a space, so take char of row2
lcChar = SUBSTR(lcRow2,lnPosition,1)
CASE SUBSTR(lcRow2,lnPosition,1) = " "
* Row2 has a space, so take char of row1
lcChar = SUBSTR(lcRow1,lnPosition,1)
OTHERWISE
* This is a problem case
lcChar = "?"
ENDCASE
lcCombinedRow = lcCombinedRow + lcChar
ENDFOR
? lcCombinedRow
IF lskip = 0 * This is where i have a problem*
lskip = 1
ENDIF
...
IF lskip = 0 * This is where i have a problem*
ldata = stringmerge(ldata,SUBSTR(f1, 5))
ENDIF
IF .NOT. EMPTY(LEFT(f1, 1))
lskip = lskip - ln
ENDIF
If lSkip>0
ldata = SUBSTR(f1, 5)
SELECT AI2
FOR z = 1 TO lskip
APPEND BLANK
ln = ln + 1
ENDFOR
REPLACE f1 WITH ldata
Endif
...