# QGIS: تغيير قيم السلسلة النصية إلى أرقام في ملف shapefile

في QGIS، يمكنك تحويل سلسلة نصية إلى رقم باستخدام أداة "حاسبة الحقول". أولًا، افتح جدول السمات للطبقة التي ترغب في تعديلها. بعد ذلك، انقر زر "فتح حاسبة الحقول". في مربع "التعبير"، اكتب "to\_real(" متبوعة باسم الحقل الذي يحتوي على السلسلة التي تريد تحويلها، ثم علامة القوس الختامي. على سبيل المثال، لتحويل حقل نصي باسم "string\_field" إلى حقل رقمي، أدخل "to\_real("string\_field")" في مربع التعبير. يمكنك أيضًا تعديل اسم حقل الإخراج ونوع البيانات من خلال اختيار الخيارات المناسبة. أخيرًا، انقر "موافق" لإكمال التحويل. سيبقى الحقل النصي الأصلي في جدول السمات، بينما سيُضاف الحقل الرقمي الجديد إلى الجدول.

<figure><img src="/files/cce1836d57cb8eeadc1fd259f1d96e88c7af9bef" alt=""><figcaption></figcaption></figure>

1. افتح "الخصائص"
2. انتقل إلى "حاسبة الحقول"
3. ضع علامة على "تحديث الحقل الموجود"
4. to\_real("attributeName")
5. احفظ التعديلات
6. كرر الخطوات نفسها لكل سمة

   <figure><img src="/files/901bc916a0370e599d569a9abfd8ccab07cf8bf8" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.geopard.tech/geopard-tutorials/ar/tlmyhat-sryah-fy-gis/qgis-tghyyr-qym-alslslh-alnsyh-ila-arqam-fy-mlf-shapefile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
