---
title: "stränghantering"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/11161-stränghantering"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Eclipse"
published: "2001-08-17T13:14:00.000Z"
updated: "2001-08-17T13:44:00.000Z"
replies: 4
views: 277
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/11161-stränghantering"
---

# stränghantering

## #1 — Eclipse, 2001-08-17T13:14Z

/xxx/xxx/xxx/trav/index.asp
/xxx/xxx/xxx/spel/index.asp
/xxx/xxx/xxx/fotboll/index.asp
/xxx/xxx/xxx/simning/index.asp
/xxx/xxx/xxx/dressyr/index.asp

Hur gör jag för att få ut namnet på mappen som indexfilen ligger i?

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

## #2 — @nders, 2001-08-17T13:23Z

jag hade gjort så här:

```
arrUrls = split(url, "/")
mappen = arrUrls(uBound(arrUrls)-1)
```

tror jag. :)

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

## #3 — Eclipse, 2001-08-17T13:34Z

```
myPath = request.serverVariables("path_info")
response.write myPath
myPath = split(myPath, "/")
myPath = myPath(uBound(myPath)-1)
response.write myPath
```

Microsoft VBScript runtime  error '800a000a'

This array is fixed or temporarily locked: 'myPath'

/menu.asp, line 86

\---

Öööööhhhhh....??

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

## #4 — @nders, 2001-08-17T13:44Z

du kan inte återanvända variabler på det sättet.

ha två olika variabler.

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

## #5 — Eclipse, 2001-08-17T13:44Z

```
myPath = request.serverVariables("path_info")
response.write myPath
myPath = split(myPath, "/")
[b]tmp[/b] = myPath(uBound(myPath)-1)
response.write [b]tmp[/b]
```

"Jag är dum. Jag heter Pigge Piggsvin."

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/11161-stränghantering
