Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
FC Справочник.doc
Скачиваний:
3
Добавлен:
01.07.2025
Размер:
349 Кб
Скачать
☆

Операции

DownloadFile(serverFilePath,localFilePath,userName,password)

Загружает файл с FTP сервера

serverFilePath – Место на сервере (файл для копирования)

localFilePath - Место на компьютере для сохранения

username - FTP's имя пользователя

password - FTP's пароль

Возвращает - "Успех" если получилось, иначе сообщение об ошибке

UploadFile(serverFilePath,localFilePath,userName,password)

Загружает файл на FTP сервер

serverFilePath - Место на сервере для сохранения

localFilePath - Место на компьютере (файл для копирования)

username - FTP's имя пользователя

password - FTP's пароль

Возвращает - "Успех" если получилось, иначе сообщение об ошибке

FCInstances

This class provides support for Multiple Instances Applications. By having more than one instance, you can have more than one window opened at a time. Этот класс оказывает поддержку для MIA (Многочисленные Множественных Приложений Экземпляров. При наличии больше чем одного экземпляра у Вас может быть больше чем одно окно, открытое за один раз.

Example

Application that use the Instances object (Core).

Свойства

IsMainInstance

Return "Истина" if this instance is the main instance of the application "Ложь" otherwhie

Возвращает - "Истина"/"Ложь"

MainInstance

Return the ID of the main instance of the application, or -1 if this instance is the maininstance

Возвращает - The ID

Операции

Add(MainSub,ArgsArrayName)

Create a new instance of the application

MainSub - The sub you want that MainSub calls

ArgsArrayName - An array containing the arguments you want to pass to the instance

Возвращает - An ID that represents the instance

CallSub(Instance,SubName)

Call a sub in a specified instance

Instance - The instance in which the sub is called

SubName - The name of the sub to call

EvalCode(Instance,Code)

Evaluate code on another instance, using the SmallBasic.Eval(code) Sub

Instance - The instance in which the code is run

Code - The code to execute (please note the remarks about this functionnality in SmallBasic.Eval)

GetArrayItem(Instance,ArrayName,Index)

Return the value of an array's item in an instance

Instance - The instance in which the variable is read

ArrayName - The name of the array to read

Index - The index of the item to read

Возвращает - The value of the item

GetArrayLength(Instance,ArrayName)

Return the number of items of an array in an instance

Instance - The instance in which the variable is read

ArrayName - The name of the array to read

Возвращает - The number of items

GetVariable(Instance,VariableName)

Return the value of a variable in an instance

Instance - The instance in which the variable is read

VariableName - The name of the variable

Возвращает - The value of the variable

MainSub(DefaultSub)

If you want to make your application MIA-Compatible, this sub must be your main Sub Если Вы хотите сделать Ваше приложение MIA-Compatible, этот sub должен быть Вашим основным Sub

DefaultSub - The sub you want to call if this instance has no constraint

RaiseEvent(Instance,EventName)

Raise a custom SmallBasic's event in an instance

Instance - The instance in which the event is raised

EventName - The name of the event to raise

SetArrayItem(Instance,ArrayName,Index,Value)

Set the value of an array's item in an instance

Instance - The instance in which the variable is read

ArrayName - The name of the array to modify

Index - The index of the item to modify

Value - The value of the item

SetVariable(Instance,VariableName,Value)

Set the value of a variable in an instance

Instance- The instance in which the variable is read

VariableName - The name of the variable

Value- The value of the variable

FCInterop

This class provides functions that allow interoperability between Small Basic and the DotNet FrameWork

Example

Application that use the Interop object (Core).

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]