Class: WString
Lua
C++
Edit

WString::Mid

This method extracts a partial wide string and returns it.

Syntax

Parameter Description
pos zero-based position in the string to start
length maximum number of characters to return

Returns

Returns a string extracted from the specified position and length.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    WString s = "Hello, how are you today?";
    Print(s.Mid(7,3));

    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.