欢迎图片

Changes for page Lua Script

Last modified by Devin Chen on 2025/11/10 16:04

From version 5.2
edited by xingzhi lin
on 2025/10/31 09:57
Change comment: There is no comment for this version
To version 6.1
edited by xingzhi lin
on 2025/10/31 10:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -659,8 +659,20 @@
659 659  |(% style="width:203px" %)11|(% style="width:967px" %)Characters are stored in one word
660 660  |(% style="width:203px" %)12|(% style="width:967px" %)Unicode text
661 661  
662 +* element5:element
662 662  
664 +|=(% style="width: 203px;" %)Value|=(% style="width: 967px;" %)Describe
665 +|(% style="width:203px" %)0|(% style="width:967px" %)Default
666 +|(% style="width:203px" %)4|(% style="width:967px" %)Gbk text, normal setting
667 +|(% style="width:203px" %)5|(% style="width:967px" %)Gbk text, the first byte is the string length
668 +|(% style="width:203px" %)12|(% style="width:967px" %)Unicode text
663 663  
670 +* element6:element
671 +
672 +|=(% style="width: 203px;" %)Value|=(% style="width: 967px;" %)Describe
673 +|(% style="width:203px" %)0|(% style="width:967px" %)Default
674 +|(% style="width:203px" %)11|(% style="width:967px" %)Characters are stored in one word
675 +
664 664  Return:
665 665  
666 666  * Success: true
... ... @@ -670,7 +670,7 @@
670 670  
671 671  {{code language="Lua"}}
672 672  local str = "Hello"
673 -we_bas_setstring("@W_HDW0", str)
685 +we_bas_setstring("@W_HDW0", str, 10, 0, 0, 0, 0)
674 674  {{/code}}
675 675  
676 676  == [[we_bas_bmov>>||anchor="HAddressclass"]] ==