---
title: "vad missar jag"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/118073-vad-missar-jag"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "WebbisNet"
published: "2004-12-15T02:38:22.000Z"
updated: "2004-12-15T03:18:49.000Z"
replies: 2
views: 257
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/118073-vad-missar-jag"
---

# vad missar jag

## #1 — WebbisNet, 2004-12-15T02:38Z

```
<%novellText=rs("novellText") 
If len(novellText) > 50 Then%> <%=left(rs("novellText"),50)%> ...<%Else%><%=left(rs("novellText"),50)%><%End If%>
```

är texten längre än 50 tkn skriver den bara ut ... och inget om den är mindre, jag vill ju ha ut variabeln novellText före ...

Permalänk: https://www.webforum.nu/p/118073

## #2 — Poffe, 2004-12-15T03:10Z

```
<%
novellText = rs("novellText") 

If Len(novellText) > 50 Then
    Response.Write Left(novellText, 50) & "..."
Else
    Response.Write novellText
End If
%>
```

Permalänk: https://www.webforum.nu/p/1507322

## #3 — WebbisNet, 2004-12-15T03:18Z

tack, men jag hade nästan rätt :-)

Permalänk: https://www.webforum.nu/p/1507323

---

Tråden på webben: https://www.webforum.nu/amne/asp/118073-vad-missar-jag
