![]() |
![]() |
Ansarsoft AS-UniBASIC OnLINE Specifications @Overview @Symbols @Separators @Keywords @Constants @Variables @Mono Operators @Dual Operators @Arrays @Pointers @Structures @Built in Procedures @Built in Functions @User Procedures and Functions @Language Reference Web affiliate sites ![]()
|
Ansarsoft AS-UniBASIC System and Application Program Interface - SAPI - Pointers Pointers to Variables and Arrays Declarations Byte &var;_name &var;_name% Word &var;_name Long &var;_name Quad &var;_name Real &var;_name Long Real &var;_name Byte Char &var;_name &var;_name$ Word Char &var;_name$ Word Char &var;_name Long Char &var;_name Quad Char &var;_name &arr;_name%(i%) Word &arr;_name%(i%) Word &arr;_name(i%) Long &arr;_name(i%) Quad &arr;_name(i%) Real &arr;_name(i%) Long Real &arr;_name(i%) Byte Char &arr;_name(i%) &arr;_name$(i%) Word Char &arr;_name$(i%) Word Char &arr;_name(i%) Long Char &arr;_name(i%) Quad Char &arr;_name(i%) Syntax Assignments to Pointers a% =@x% : Remark a% is a pointer to a Word integer a = @x : Remark a is a pointer to Real number Assignments from Pointers x% = &a% : Remark a% is a pointer to a Word integer x = &a : Remark a is a pointer to Real number Equivalent Statements The statement: x% = y% : Remark x%,y% are variables is equivalent to the statements: a% = @y% : Remark a% is a pointer to Word integer x% = &a% Limits Pointers to Variables and Arrays are Long integer Addresses Arrays of Pointers Declarations Dim Long arr_name(Byte &i) Dim Long arr_name(&i%) Dim Long arr_name(Word &i) Dim Long arr_name(Long &i) Dim Long arr_name(Quad &i) Dim Long arr_name(Real &i) Dim Long arr_name(long Real &i) Dim Long arr_name(Byte Char &i) Dim Long arr_name(&i$) Dim Long arr_name(Word Char &i$) Dim Long arr_name(Word Char &i) Dim Long arr_name(Long Char &i) Dim Long arr_name(Quad Char &i) Syntax Assignments to Arrays of Pointers a%(i%) =@x% : Remark a% is an Array of Pointers to Word integers Assignments from Arrays of Pointers x% = a%(&i%) : Remark a% is an Array of pointers to a Word integers Equivalent Statements The statement: x%(i%) = y%(j%) : Remark x%,y% are Word Arrays is equivalent to the statements: a% = y%(@j%) : Remark a% is a Pointer to Word integer x%(i%) = &a% Limits Arrays of Pointers are Arrays of Long integer Addresses Please send your questions referring to the product by e-mail to: webmaster@ansarsoft.com ![]()
0
0
0
0
0
0
|
Send e-mail to: webmaster@ansarsoft.com with your questions or comments about this web site. Last modified November 12, 2022 - Athens time 01:30 Copyright © 2001 by Ansarsoft. All rights reserved. |