After a few changes to my program, everything works as it should. Which of the changes that corrected the error I do not know.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
SET_NUMMER = slGetUnusedSetNumber
SEL_STRANG = "SELECT * FROM ART WHERE ARTNR= " + $SQ + TRIM$(ART.ARTNR) + $SQ
SVAR = slSel(SEL_STRANG, SET_NUMMER) ' Ska ge noll
IF SVAR <> 0 THEN
KOM.FELTEXT = "SYSTEMFEL i ARTIO GU slSel=" + STR$(SVAR) <<============