ee.List.getString
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
رشته را در موقعیت مشخص شده در لیست برمی گرداند. یک شاخص منفی از انتهای لیست به عقب محاسبه می شود. اگر مقدار یک رشته نباشد، خطایی رخ می دهد.
استفاده | برمی گرداند | List. getString (index) | رشته |
استدلال | تایپ کنید | جزئیات | این: list | فهرست کنید | |
index | عدد صحیح | |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis function retrieves a string from a given position within a list.\u003c/p\u003e\n"],["\u003cp\u003eNegative index values can be used to access elements starting from the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eAn error will be triggered if the element at the specified index is not a string.\u003c/p\u003e\n"]]],[],null,["# ee.List.getString\n\nReturns the string at the specified position in list. A negative index counts backwards from the end of the list. If the value is not a string, an error will occur.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| List.getString`(index)` | String |\n\n| Argument | Type | Details |\n|--------------|---------|---------|\n| this: `list` | List | |\n| `index` | Integer | |"]]