openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Röllig <mroellig.n...@gmx.net>
Subject Re: Basic editor and key-words
Date Thu, 31 Dec 2015 00:54:17 GMT
Hello FR web,

> When I write a Basic program, some words are blue to show me that are reserved.
> But much are missing and display in green (like LBound or UBound).
> Where these key-words are stored?


There is a difference between reserved words and (predefined) function 
names. This belongs to ALL programming languages.

--------------------------
Option Explicit

Sub Main
	Dim lBound As Integer
	Dim uBound As Integer
	lBound = 0
	uBound = 2
	Dim a( lBound To uBound ) As Integer
	Dim i As Integer
	For i = lBound To uBound
		a( i ) = 10 * i + 5
	Next i
	For i = LBound( a ) To UBound( a )
		print a( i ),
	Next i
End Sub
--------------------------

LBound and UBound are not reserved words.


Regards, Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message