Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

EUO2Type

Converts an EasyUO-style type string to a Stealth numeric type.

EUO is a string containing uppercase letters and numbers (EasyUO format).

Returns 0 if the conversion failed.

In Python, this method is named EUO2StealthType.

Преобразует строку типа в формате EasyUO в числовой тип Stealth.

Возвращает 0, если преобразование не удалось.

В Python метод называется EUO2StealthType.

Pascal

function EUO2Type(EUO: String): Word;

Python

def EUO2StealthType(euo: str) -> int: ...

Pascal Example

var
  ItemType: Word;
begin
  ItemType := EUO2Type('DWJ');
  AddToSystemJournal('Converted type: ' + IntToStr(ItemType));
end.

Python Example

item_type = EUO2StealthType('DWJ')
AddToSystemJournal(f'Converted type: {item_type}')

See Also

EUO2ID