Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Ā
The Ring programming language version 1.5.4 book - Part 184 of 185
1. Ring Documentation, Release 1.5.4
QPushButton Class
RingQt Classes Reference, 1594
QRadioButton Class
RingQt Classes Reference, 1635
QRect Class
RingQt Classes Reference, 1673
QRegularExpression Class
RingQt Classes Reference, 1697
QRegularExpressionMatch Class
RingQt Classes Reference, 1698
QRegularExpressionMatchIterator Class
RingQt Classes Reference, 1698
QScreen Class
RingQt Classes Reference, 1731
QScrollArea Class
RingQt Classes Reference, 1716
QSerialPort Class
RingQt Classes Reference, 1724
QSerialPortInfo Class
RingQt Classes Reference, 1725
QSize Class
RingQt Classes Reference, 1596
QSlider Class
RingQt Classes Reference, 1628
QSpinBox Class
RingQt Classes Reference, 1627
QSplashScreen Class
RingQt Classes Reference, 1712
QSplitter Class
RingQt Classes Reference, 1716
QSqlDatabase Class
RingQt Classes Reference, 1681
QSqlDriver Class
RingQt Classes Reference, 1682
QSqlDriverCreatorBase Class
RingQt Classes Reference, 1685
QSqlError Class
RingQt Classes Reference, 1683
QSqlField Class
RingQt Classes Reference, 1685
QSqlIndex Class
RingQt Classes Reference, 1684
QSqlQuery Class
RingQt Classes Reference, 1682
QSqlRecord Class
RingQt Classes Reference, 1684
QStatusBar Class
RingQt Classes Reference, 1616
QString2 Class
RingQt Classes Reference, 1718
QStringList Class
RingQt Classes Reference, 1666
QStringRef Class
RingQt Classes Reference, 1726
QSystemTrayIcon Class
RingQt Classes Reference, 1679
Qt Class Convertor
What is new in Ring 1.4?, 87
Qt conļ¬guration ļ¬le
Code Generator, 789
QTableView Class
RingQt Classes Reference, 1622
QTableWidget Class
RingQt Classes Reference, 1624
QTableWidgetItem Class
RingQt Classes Reference, 1618
QTabWidget Class
RingQt Classes Reference, 1617
QTcpServer Class
RingQt Classes Reference, 1659
QTcpSocket Class
RingQt Classes Reference, 1658
QTest Class
RingQt Classes Reference, 1586
QTextBlock Class
RingQt Classes Reference, 1677
QTextBrowser Class
RingQt Classes Reference, 1738
QTextCharFormat Class
RingQt Classes Reference, 1705
QTextCodec Class
RingQt Classes Reference, 1681
QTextCursor Class
RingQt Classes Reference, 1663
QTextDocument Class
RingQt Classes Reference, 1675
QTextEdit Class
RingQt Classes Reference, 1599
QThread Class
RingQt Classes Reference, 1696
QThreadPool Class
RingQt Classes Reference, 1697
QTime Class
RingQt Classes Reference, 1678
QTimer Class
RingQt Classes Reference, 1642
QToolBar Class
RingQt Classes Reference, 1613
QToolButton Class
RingQt Classes Reference, 1723
QTreeView Class
RingQt Classes Reference, 1603
QTreeWidget Class
RingQt Classes Reference, 1606
QTreeWidgetItem Class
RingQt Classes Reference, 1609
Queue Class
Stdlib Classes, 327
Index 1805
2. Ring Documentation, Release 1.5.4
Quotes about Ring
Applications developed in little hours, 1
QUrl Class
RingQt Classes Reference, 1633
QUuid Class
RingQt Classes Reference, 1723
QVariant Class
RingQt Classes Reference, 1685
QVBoxLayout Class
RingQt Classes Reference, 1598
QVideoWidget and QMediaPlayer
Desktop and Mobile Development, 602
QVideoWidget Class
RingQt Classes Reference, 1638
QVideoWidgetControl Class
RingQt Classes Reference, 1707
QWebView Class
RingQt Classes Reference, 1632
QWidget Class
RingQt Classes Reference, 1587
QWindow Class
RingQt Classes Reference, 1732
QXmlStreamAttribute Class
RingQt Classes Reference, 1696
QXmlStreamAttributes Class
RingQt Classes Reference, 1695
QXmlStreamEntityDeclaration Class
RingQt Classes Reference, 1695
QXmlStreamEntityResolver Class
RingQt Classes Reference, 1695
QXmlStreamNamespaceDeclaration Class
RingQt Classes Reference, 1695
QXmlStreamNotationDeclaration Class
RingQt Classes Reference, 1694
QXmlStreamReader Class
RingQt Classes Reference, 1692
QXmlStreamWriter Class
RingQt Classes Reference, 1693
Raise()
Eval() and Debugging, 238
RandBytes()
Security and Internet Functions, 268
Random Image
Web Development (CGI Library), 388
Random()
Mathematical Functions, 217
Read File using Read()
Files, 221
readline()
Stdlib Functions, 317
Real Natual Code
Natural Language Programming, 357
Recursion
Functions - First Style, 179
Functions - Second Style, 183
Functions - Third Style, 187
Reference
Compiler Errors, 1774
Environment Errors, 1776
Introduction, 1771
Language Functions, 1773
Language Grammar, 1776
Language Keywords, 1772
Runtime Errors, 1775
Virtual Machine Instructions, 1778
Reļ¬ection and Meta-programming
addattribute(), 299
addmethod(), 299
attributes(), 296
cfunctions(), 289
classes(), 293
classname(), 295
functions(), 289
getattribute(), 301
globals(), 288
Introduction, 287
isattribute(), 297
iscfunction(), 291
isclass(), 293
isfunction(), 291
isglobal(), 290
islocal(), 290
ismethod(), 298
isobject(), 296
ispackage(), 292
ispackagesclass(), 295
isprivateattribute(), 297
isprivatemethod(), 298
locals(), 288
mergemethods(), 303
methods(), 296
objectid(), 295
packagename(), 304
packages(), 292
packagesclasses(), 294
setattribute(), 302
Register New Functions
Code Generator, 783
Regular Expressions
Desktop and Mobile Development, 637
Relational Operators
Operators, 156
Remove()
Files, 222
Rename()
Files, 222
Resources
Index 1806
3. Ring Documentation, Release 1.5.4
Contact the Autor, 1785
Introduction, 1784
Ring Group, 1785
Ring Language Website, 1785
Restore Image From The Database
MySQL Functions, 259
Return object by reference
Declarative Programming, 346
Return Self by Reference
What is new in Ring 1.3?, 101
Return Value
Extension, 770
Functions - First Style, 178
Functions - Second Style, 182
Functions - Third Style, 186
Reverse()
Lists, 192
Rewind()
Files, 224
Right()
Strings, 198
RING API - list Functions
Extension, 772
RING API - String Functions
Extension, 774
Ring CGI Hello World Program
Web Development (CGI Library), 369
Ring Group
Resources, 1785
Ring Language Website
Resources, 1785
Ring mode for Emacs Editor
What is new in Ring 1.3?, 99
Ring Notepad
Introduction, 135
Ring Notepad - Creating and running your ļ¬rst con-
sole application, 136
Ring Notepad - Creating and running your ļ¬rst game,
141
Ring Notepad - Creating and running your ļ¬rst GUI
application, 139
Ring Notepad - Creating and running your ļ¬rst Web
application, 140
Ring Notepad - Main Window, 136
The Browser Menu, 146
The Edit Menu, 143
The File Menu, 143
The Help Menu, 147
The Main File in the Project, 142
The Program Menu, 146
The Tools Menu, 147
The View Menu, 144
Ring Notepad - Creating and running your ļ¬rst console
application
Ring Notepad, 136
Ring Notepad - Creating and running your ļ¬rst game
Ring Notepad, 141
Ring Notepad - Creating and running your ļ¬rst GUI ap-
plication
Ring Notepad, 139
Ring Notepad - Creating and running your ļ¬rst Web ap-
plication
Ring Notepad, 140
Ring Notepad - Main Window
Ring Notepad, 136
Ring State
Embedding Ring Language in C/C++ Programs, 777
Ring State Functions
Embedding Ring Language in C/C++ Programs, 777
Ring State Variables
Embedding Ring Language in C/C++ Programs, 778
Ring VM - Tracing Functions
What is new in Ring 1.5?, 61
ring_ext.c
Extension, 767
ring_ext.h
Extension, 767
RingAllegro Functions Reference
Introduction, 809
RingCodeHighlighter Class
RingQt Classes Reference, 1691
RingFreeGLUT Extension
What is new in Ring 1.5?, 47
RingFreeGLUT Functions Reference
Introduction, 844
RingLibCurl
Facebook Login, 422
Get Request, 422
Get Stock Data From Yahoo, 424
Introduction, 421
Post Request, 422
Save output to string, 423
What is new in Ring 1.2?, 108
RingLibCurl Functions Reference
Introduction, 799
RingLibSDL
Close Window Event, 445
Create Window, 442
Display Image, 442
Display PNG Images, 443
Display Transparent Images, 444
Draw Rectangle, 443
Introduction, 441
Mouse Events, 446
Play Sound, 447
Switch Between Two Images, 442
Use TTF Fonts, 444
What is new in Ring 1.1?, 117
Index 1807
6. Ring Documentation, Release 1.5.4
QXmlStreamAttribute Class, 1696
QXmlStreamAttributes Class, 1695
QXmlStreamEntityDeclaration Class, 1695
QXmlStreamEntityResolver Class, 1695
QXmlStreamNamespaceDeclaration Class, 1695
QXmlStreamNotationDeclaration Class, 1694
QXmlStreamReader Class, 1692
QXmlStreamWriter Class, 1693
RingCodeHighlighter Class, 1691
RingREPL
What is new in Ring 1.4?, 83
RingSQLite
What is new in Ring 1.1?, 118
ringvm_callfunc()
Low Level Functions, 752
RingVM_CallList()
Low Level Functions, 748
RingVM_CFunctionsList()
Low Level Functions, 744
RingVM_ClassesList()
Low Level Functions, 744
ringvm_evalinscope()
Low Level Functions, 751
RingVM_FilesList()
Low Level Functions, 749
RingVM_FunctionsList()
Low Level Functions, 744
ringvm_hideerrorMsg()
Low Level Functions, 751
RingVM_MemoryList()
Low Level Functions, 746
RingVM_PackagesList()
Low Level Functions, 745
ringvm_passerror()
Low Level Functions, 751
ringvm_scopescount()
Low Level Functions, 751
ringvm_settrace()
Low Level Functions, 750
ringvm_tracedata()
Low Level Functions, 750
ringvm_traceevent()
Low Level Functions, 750
ringvm_tracefunc()
Low Level Functions, 751
RingZip
Create Zip File, 426
Extract Zip File, 426
Introduction, 425
Print ļ¬les in Zip ļ¬le, 426
Using RingZip Classes, 426
Zip Class Reference, 428
ZipEntry Class Reference, 428
RingZip Library
What is new in Ring 1.3?, 102
Rotate Text
Desktop and Mobile Development, 634
Rules
The Type Hints Library, 721
Run the program
Getting Started - First Style, 130
Getting Started - Second Style, 132
Getting Started - Third Style, 134
Running Forms
Form Designer, 685
Runtime Errors
Reference, 1775
Samples
How to contribute?, 128
Samples in this book
Applications developed in little hours, 13
Samples Source (Authors)
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 502
Save and Restore Images
ODBC Functions, 251
Save Image Inside the Database
MySQL Functions, 259
Save output to string
RingLibCurl, 423
Scaling and Rotating Images
Graphics and Game Programming, 437
Scope Rules
Accessing the class attributes from braces inside
class methods, 697
Conļ¬ict between Class Attributes and Local Vari-
ables, 694
Conļ¬ict between Global Variables and Class At-
tributes, 693
Conļ¬ict between self inside braces and self in the
class region, 700
Creating a Class for each Window in GUI applica-
tions, 699
Deļ¬ning Variables and Variables Access, 691
How Ring ļ¬nd the Variable?, 692
Introduction, 690
Summary of Scope Rules, 704
The Self Object, 692
Three Scopes, 691
Using Braces to access objects inside Class Methods,
695
Using braces to escape from the current object scope,
703
Using Object.Attribute, 692
Scope Rules for Functions and Methods
Calling a function sharing the name with a method in
the current class, 708
Index 1810
7. Ring Documentation, Release 1.5.4
Example about Sharing Names between Functions
and Methods, 706
How Ring ļ¬nd a functions and methods?, 706
Introduction, 705
ScriptFunctions Class
Web Development (CGI Library), 419
Search
Lists, 191
Search of global names while deļ¬ning the class attributes
Frequently Asked Questions, 1752
Security and Internet Functions
Decrypt(), 268
Download(), 269
Encrypt(), 267
Example, 268
File Hash, 268
Introduction, 264
MD5(), 265
RandBytes(), 268
SendEmail(), 269
SHA1(), 266
SHA224(), 267
SHA256(), 266
SHA384(), 267
SHA512(), 266
Security Class
Stdlib Classes, 343
Send Parameters
Functions - First Style, 177
Functions - Second Style, 181
Functions - Third Style, 185
SendEmail()
Security and Internet Functions, 269
Serial Execution of Programs
Embedding Ring in Ring, 765
Set List Item
Lists, 190
setattribute()
Reļ¬ection and Meta-programming, 302
Setter and Getter
Object Oriented Programming, 274
SHA1()
Security and Internet Functions, 266
SHA224()
Security and Internet Functions, 267
SHA256()
Security and Internet Functions, 266
SHA384()
Security and Internet Functions, 267
SHA512()
Security and Internet Functions, 266
Shared Libraries
Extension, 775
Short-circuit evaluation
Control Structures - First Style, 163
Shutdown() Function
System Functions, 236
sign()
Stdlib Functions, 311
Simple
Language Design, 27
Simple Client and Server Example
Desktop and Mobile Development, 638
Sin() Implementation
Extension, 771
Single: Desktop and Mobile Development
Introduction, 569
sleep()
Stdlib Functions, 318
Smart Garbage Collector
Language Design, 35
Sort()
Lists, 191
Sort() and List of Objects
Object Oriented Programming, 279
Sound Class
Game Engine for 2D Games, 453
Source Code File Sections
Program Structure, 188
space()
Low Level Functions, 741
Special thanks to contributors
How to contribute?, 128
split()
Stdlib Functions, 308
splitmany()
Stdlib Functions, 308
Sprite Automatic Movement
Game Engine for 2D Games, 460
Sprite Class
Game Engine for 2D Games, 452
Sprite Keypress Event
Game Engine for 2D Games, 461
Sprite Mouse Event
Game Engine for 2D Games, 462
Sprite State Event
Game Engine for 2D Games, 463
SQLite
Introduction, 261
sqlite_close(), 262
sqlite_execute(), 262
sqlite_init(), 262
sqlite_open(), 262
SQLite Class
Stdlib Classes, 342
sqlite_close()
SQLite, 262
sqlite_execute()
Index 1811
8. Ring Documentation, Release 1.5.4
SQLite, 262
sqlite_init()
SQLite, 262
sqlite_open()
SQLite, 262
Squares Puzzle Game
Applications developed in little hours, 8
Stack Class
Stdlib Classes, 327
Stars Fighter Game
Game Engine for 2D Games, 472
startswith()
Stdlib Functions, 312
StdBase Class
Stdlib Classes, 322
Stdlib Classes
Conversion Class, 339
DataType Class, 338
DateTime Class, 333
Debug Class, 337
File Class, 335
HashTable Class, 328
Internet Class, 344
Introduction, 321
List Class, 325
Math Class, 330
MySQL Class, 341
ODBC Class, 340
Queue Class, 327
Security Class, 343
SQLite Class, 342
Stack Class, 327
StdBase Class, 322
String Class, 323
System Class, 336
Tree Class, 329
Stdlib Functions
apppath(), 306
binarydigits(), 315
capitalized(), 309
changestring(), 318
dayofweek(), 316
direxists(), 318
endswith(), 312
EpochTime(), 320
evenorodd(), 314
factorial(), 310
factors(), 314
ļ¬bonacci(), 311
ļ¬le2list(), 312
ļ¬lter(), 308
FSize(), 319
gcd(), 313
getnumber(), 306
getstring(), 306
Introduction, 304
isleapyear(), 315
ismainsourceļ¬le(), 318
isprime(), 311
isspecial(), 309
isvowel(), 310
JustFileName(), 307
JustFilePath(), 306
lcm(), 313
linecount(), 310
list2ļ¬le(), 311
ListAllFiles() Function, 320
makedir(), 319
map(), 308
matrixmulti(), 315
matrixtrans(), 316
newlist(), 309
palindrome(), 315
permutation(), 316
print(), 305
Print2Str() Function, 305
prodlist(), 314
puts(), 305
readline(), 317
sign(), 311
sleep(), 318
split(), 308
splitmany(), 308
startswith(), 312
substring(), 317
sumlist(), 313
SystemCmd() Function, 320
times(), 307
TrimAll(), 319
TrimLeft(), 319
TrimRight(), 320
value(), 307
StdLib functions and classes written in Ring
What is new in Ring 1.1?, 115
Step Option
Control Structures - First Style, 161
Str2Hex()
Data Type, 214
str2list() and list2str()
Strings, 201
strcmp()
Strings, 201
String Class
Stdlib Classes, 323
String Literals
Strings, 197
String()
Data Type, 212
Index 1812
9. Ring Documentation, Release 1.5.4
Strings
Access String Letters, 197
Convert Letters Case, 197
Copy(), 199
Find SubString, 200
Get Number of Characters from position, 200
Get String Length, 197
Get Substring from position to end, 200
Introduction, 196
Left(), 198
Lines(), 199
Right(), 198
str2list() and list2str(), 201
strcmp(), 201
String Literals, 197
Substr(), 199
Transform Substring To Another Substring, 200
Trim(), 199
StyleFunctions Class
Web Development (CGI Library), 419
Substr()
Strings, 199
substring()
Stdlib Functions, 317
sumlist()
Stdlib Functions, 313
Summary of Scope Rules
Scope Rules, 704
Super Man 2016 Game
Game Engine for 2D Games, 487
Swap Items
Lists, 196
Switch Between Two Images
RingLibSDL, 442
Switch Statement
Control Structures - First Style, 159
Control Structures - Second Style, 166
Control Structures - Third Style, 169
Syntax Flexibility
Change Language Keywords, 710
Change Language Operators, 711
Introduction, 709
Load Syntax Files, 711
Using ācaseā as āonā in switch statements, 717
Using ādefā as āfuncā in functions/methods deļ¬ni-
tion, 717
Using āendā keyword after Pack-
ages/Classes/Functions, 718
Using āendpackageā/āendclassā/āendfuncā keywords
after Packages/Classes/Functions, 718
Using āputā and āgetā as āseeā and āgiveā, 717
Using () around the function parameters, 711
in the start of the variable name, 714
Using braces { } in Packages/Classes/Functions, 718
Using braces to start and end different control struc-
tures, 716
Using Semi-colon after and between statements, 713
Using the āelseā keyword as āotherā in switch state-
ment, 714
Using the āelseifā keyword as ābutā in if statement,
714
Using the āendā keyword in different control struc-
tures, 715
What is new in Ring 1.1?, 112
SysGet() Function
System Functions, 231
System Class
Stdlib Classes, 336
System Functions
ChDir() Function, 235
CurrentDir() Function, 235
Example, 232
ExeFileName() Function, 235
ExeFolder() Function, 235
Get Active Source File Name, 234
Get Command Line Arguments, 233
Introduction, 229
IsAndroid() Function, 232
IsFreeBSD() Function, 232
IsLinux() Function, 232
IsMacOSX() Function, 231
IsMSDOS() Function, 231
IsUnix() Function, 231
IsWindows() Function, 231
IsWindows64() Function, 231
PrevFileName() Function, 234
Shutdown() Function, 236
SysGet() Function, 231
System() Function, 230
Version() Function, 235
Windowsnl() Function, 233
System() Function
System Functions, 230
SystemCmd() Function
Stdlib Functions, 320
Tempļ¬le()
Files, 224
Templates
Web Development (CGI Library), 383
Tempname()
Files, 224
Testing
How to contribute?, 128
Text Class
Game Engine for 2D Games, 452
The Browser Menu
Ring Notepad, 146
Index 1813
10. Ring Documentation, Release 1.5.4
The Camera
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 512
The Cards Game
Demo Programs, 660
Desktop and Mobile Development, 660
The Designer Windows
Form Designer, 684
The Difference between Qt and RingQt
Desktop and Mobile Development, 670
The documentation says functional programming is sup-
ported, but then this happens?
Frequently Asked Questions, 1744
The Edit Menu
Ring Notepad, 143
The File Menu
Ring Notepad, 143
The First GUI Application
Desktop and Mobile Development, 570
The First Triangle
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 505
The First Window using RingFreeGLUT
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 503
The Help Menu
Ring Notepad, 147
The Main File in the Project
Ring Notepad, 142
The Natural Library
What is new in Ring 1.4?, 81
The Program Menu
Ring Notepad, 146
The Properties
Form Designer, 684
The Self Object
Scope Rules, 692
The Tools Menu
Ring Notepad, 147
The Trace Library and the Interactive Debugger
BreakPoint, 762
Disable BreakPoints, 762
Execute Program Line by Line, 761
Interactive Debugger, 761
Introduction, 759
Loading the Trace library, 760
Pass Error, 761
Trace All Events, 760
Trace control ļ¬ow between functions, 760
Using the Interactive Debugger, 762
The Type Hints Library
Example, 720
Introduction to the Type Hints Library, 719
Rules, 721
User Types, 720
Using Types inside Code, 721
Why Type Hints?, 720
The View Menu
Ring Notepad, 144
Threads
Graphics and Game Programming, 439
Threads Support
Code Generator, 787
Three Scopes
Scope Rules, 691
TicTacToe 3D Game
Using RingOpenGL and RingAllegro for 3D Graph-
ics, 559
TicTacToe Game
Applications developed in little hours, 7
Time()
Date and Time, 203
TimeList()
Date and Time, 204
times()
Stdlib Functions, 307
Trace All Events
The Trace Library and the Interactive Debugger, 760
Trace control ļ¬ow between functions
The Trace Library and the Interactive Debugger, 760
Trace Library and Interactive Debugger
What is new in Ring 1.5?, 65
Transaction Example
MySQL Functions, 260
Transactions and Using Commit and Rollback
ODBC Functions, 250
Transform Substring To Another Substring
Strings, 200
Transparent Image
Graphics and Game Programming, 438
Transparent Implementation
Language Design, 33
Tree Class
Stdlib Classes, 329
Triangle Rotation
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 508
Trim()
Strings, 199
TrimAll()
Stdlib Functions, 319
TrimLeft()
Stdlib Functions, 319
TrimRight()
Stdlib Functions, 320
TrueType Fonts
Graphics and Game Programming, 435
Try/Carch/Done
Index 1814