Now it wasn't the select statements that were the problem, they work as they should. The problem is that the first select statement takes 6 seconds but the next select statement only takes 0.6 seconds.
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.Show posts Menu
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) <<============