addInput()

يضيف المتغيرات المستخدمة في البرنامج النصي
addInput(name:string, type:string, value:mixed, options:object=null)

Parameters

Name Type Действие Значение по умолчанию
name string اسم الإدخال
type string نوع الإدخال
value mixed القيمة الافتراضية
options object خيارات الإدخال null

Description

تستخدم في المنشئ. يتم تغيير قيم المتغيرات من نافذة خصائص البرنامج

Example

// اضبط المتغير NBars بالقيمة الافتراضية 20
this.addInput("NBars", InputType.int, 20);
// اضبط المتغير PriceType بقيمة من النوع PriceType إفتراضي  PriceType.Bid
this.addInput("PriceType", InputType.PriceType, PriceType.Bid);