Changes for page Lua Script
Last modified by Devin Chen on 2025/11/10 16:04
From version 5.1
edited by xingzhi lin
on 2025/09/24 10:41
on 2025/09/24 10:41
Change comment:
There is no comment for this version
To version 5.3
edited by xingzhi lin
on 2025/10/31 09:58
on 2025/10/31 09:58
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -628,12 +628,12 @@ 628 628 Example: 629 629 630 630 {{code language="Lua"}} 631 -print(we_bas_getstring("@W_HDW0", 10)) 631 +print(we_bas_getstring("@W_HDW0", 10,0,0,0,0)) 632 632 {{/code}} 633 633 634 634 == [[we_bas_setstring>>||anchor="HAddressclass"]] == 635 635 636 -Prototype: we_bas_setstring(address, str [, len]) 636 +Prototype: we_bas_setstring(address, str [, len, type, element4, element5, element6]) 637 637 638 638 Function: Write string 639 639 ... ... @@ -642,7 +642,25 @@ 642 642 * address(string):address 643 643 * str(string):string 644 644 * len(number):length, if not set, it will be the bytes of the string 645 +* element4:element 645 645 647 +|=(% style="width: 203px;" %)Value|=(% style="width: 967px;" %)Describe 648 +|(% style="width:203px" %)0|(% style="width:967px" %)Default 649 +|(% style="width:203px" %)1|(% style="width:967px" %)Forced prohibition of the use of the high-order function 650 +|(% style="width:203px" %)2|(% style="width:967px" %)Enable high and low character swapping 651 +|(% style="width:203px" %)3|(% style="width:967px" %)Enable high and low byte swapping 652 +|(% style="width:203px" %)4|(% style="width:967px" %)Gbk text, normal setting 653 +|(% style="width:203px" %)5|(% style="width:967px" %)Gbk text, the first byte is the string length 654 +|(% style="width:203px" %)6|(% style="width:967px" %)Endian-reversed type1: 12345678 -> 87654321 655 +|(% style="width:203px" %)7|(% style="width:967px" %)Endian-reversed type2: 12345678 -> 78563412 656 +|(% style="width:203px" %)8|(% style="width:967px" %)Endian-reversed type3: 12345678 -> 56781234 657 +|(% style="width:203px" %)9|(% style="width:967px" %)Endian-reversed type4: 12345678 -> 65872143 658 +|(% style="width:203px" %)10|(% style="width:967px" %)Endian-reversed type5: 12345678 -> 43218765 659 +|(% style="width:203px" %)11|(% style="width:967px" %)Characters are stored in one word 660 +|(% style="width:203px" %)12|(% style="width:967px" %)Unicode text 661 + 662 + 663 + 646 646 Return: 647 647 648 648 * Success: true