# MapSubstring - komut dosyası fonksiyonu

MapSubstring kod fonksiyonu herhangi bir ifadenin parçalarını daha önce yüklenmiş bir eşleme tablosuna eşlemek için kullanılır. Eşleme büyük/küçük harf duyarlıdır ve yinelemesizdir ve alt dizeler soldan sağa eşlenir.

Söz Dizimi:

MapSubstring('map\_name', expression)

Dönüş verileri türü: dize

Bağımsız Değişkenler:

MapSubstring bağımsız değişkenleri

| Bağımsız Değişken | Açıklama |
| --- | --- |
| map\_name | Bir mapping load veya mapping select deyimi ile daha önce okunmuş bir eşleme tablosunun adı. Ad, düz tek tırnak işaretleri içine alınmalıdır.<br><br>Uyarı notuMakro genişletilmiş bir değişkende bu fonksiyonu kullanır ve mevcut olmayan bir eşleme tablosuna başvurursanız fonksiyon çağrısı başarısız olur ve bir alan oluşturulmaz. |
| expression | Sonucu alt dizeler ile eşlenecek ifade. |

Örnek:

Bu örnekte ürün modellerinin listesini yüklüyoruz. Her modelin bileşik bir kod ile açıklanan bir öznitelik kümesi vardır. MapSubstring ile eşleme tablosunu kullanarak öznitelik kodlarını bir açıklamaya genişletebiliriz.

```
map2: mapping LOAD *  Inline [ AttCode, Attribute R, Red Y, Yellow B, Blue C, Cotton P, Polyester S, Small M, Medium L, Large ] ;  Productmodels: LOAD *, MapSubString('map2', AttCode) as Description Inline [ Model, AttCode Twixie, R C S Boomer, B P L Raven, Y P M Seedling, R C L SeedlingPlus, R C L with hood Younger, B C with patch MultiStripe, R Y B C S/M/L  ] ; // We don't need the AttCode anymore Drop Field 'AttCode';
```

Elde edilen tablo şöyle görünür:

Example 1

| Model | Description |
| --- | --- |
| Twixie | Red Cotton Small |
| Boomer | Blue Polyester Large |
| Raven | Yellow Polyester Medium |
| Seedling | Red Cotton Large |
| SeedlingPlus | Red Cotton Large with hood |
| Younger | Blue Cotton with patch |
| MultiStripe | Red Yellow Blue Cotton Small/Medium/Large |

## Daha fazla bilgi

* [](https://help.qlik.com/tr-TR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Mapping.htm)[Mapping](https://help.qlik.com/tr-TR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Mapping.htm)
* [Kod içinde tırnak işaretleri kullanma](https://help.qlik.com/tr-TR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/use-quotes-in-script.htm)