2020r2 desktop changes

Some changes wont be a big deal
If you happened to use the style REALbasic.function name then some of those will need fixing as they have moved from the REALbasic framework into different ones. IF you need to prefix things with the right namespace you’ll have to sort out which one it got moved to but its USUALLY one named the same as the data type. So if you used to write

Dim s As String 

s = REALbasic.Titlecase(someOtherStringVar) // or TitleCase("foo")
s  = someOtherStringVar.Titlecase // this form wont allow "foo".Titlecase

this will need to become

Dim s As String 

s = String.Titlecase(someOtherStringVar) 
s  = someOtherStringVar.Titlecase // this form still wont allow "foo".Titlecase


Some others may cause more work since the replacement isnt as capable
ie/

Dim tinfo1 As Xojo.Introspection.TypeInfo = GetTypeInfo(Integer) // this works in versions up to 2020r2
Dim tinfo As Introspection.TypeInfo = GetTypeInfo( Integer ) // this does not work in 2020r2

Application Deprecated CurrentThread
replace with Thread.Current

Combobox Deprecated Value replace with Text

DateTime
added Public Function ToString(dateStyle As FormatStyles = FormatStyles.Medium, timeStyle As FormatStyles = FormatStyles.Medium) As String
removed Public Function ToString(loc As Locale = Nil, dateStyle As FormatStyles = FormatStyles.Medium, timeStyle As FormatStyles = FormatStyles.Medium) As String
added Public Function ToString(loc As Locale, dateStyle As FormatStyles = FormatStyles.Medium, timeStyle As FormatStyles = FormatStyles.Medium) As String

DateTimePicker added

EndOfLine
added property Android as string
added Public Shared Property CR As String
added Public Shared Property CRLF As String
added Public Shared Property iOS As String
added Public Shared Property LF As String

Graphics
added Public Property Brush As GraphicsBrush
added Public Function LineDash() As Double()
added Public Property LineCap As LineCapTypes
added Public Enum LineCapTypes As Global.Integer
added Public Property LineDashOffset As Double
added Public Property LineJoin As LineJoinTypes
added Public Enum LineJoinTypes As Integer
added Public Property ShadowBrush As ShadowBrush

added Class GraphicsBrush

Class HTTPSecureSocket Deprecated
replace with URLConnection

Class HTTPSocket Deprecated
replace with URLConnection

Label
Text no longer marked Deprecated
Value Deprecated replace with Text

added Class LinearGradientBrush

Listbox header height is now settable

MenuItem
Text no longer Deprecated
Value Deprecated replace with Text

Movie
Deprecated BaseMovieHeight replace with Height
Deprecated) BaseMovieWidth replace with Width
Deprecated Handle
Deprecated MovieHeight
Deprecated MovieWidth
added Property Height As Integer
added Property Width As Integer

Picture
added HandleType iOSUIImage = 6

added Class PictureBrush

PopupMenu
Deprecated SelectedRowValue replace with SelectedRow

added Class RadialGradientBrush

Module REALbasic
removed Abs
removed ACos
removed ASin
removed ATan
removed ATan2
removed CDbl
removed Ceil
removed Ceiling
removed CLong
removed ConvertEncoding
removed Cos
removed CountFields
removed DecodeHex
removed DefineEncoding
removed EncodeHex
removed Encoding
removed Exp
removed Floor
removed InStr
removed InStrB
removed Left
removed Log
removed Lowercase
removed Max
removed Min
removed NthField
removed Pow
removed Replace
removed ReplaceAll
removed Right
removed Rnd
removed Round
removed Sign
removed Sin
removed Split
removed Sqrt
removed StrComp
removed Tan
removed Titlecase
removed Trim
removed Uppercase
removed Val
removed VarType

added Class SearchField

added Class ShadowBrush

String module
added CDbl(Extends str As String) As Double
added Protected Function Chr(value As Integer) As String
added Global Function CLong(Extends str As String) As Int64
added Global Function ConvertEncoding(Extends text As String, newEncoding As TextEncoding) As String
added Global Function CountFields(Extends aString As String, separator As String) As Integer
added Global Function DefineEncoding(Extends text As String, encoding As TextEncoding) As String
added Global Function Encoding(Extends Str As String) As TextEncoding
added Global Function InStr(Extends source As String, start As Integer = 0, find As String) As Integer
added Global Function InStrB(Extends source As String, start As Integer = 0, find As String) As Integer
addedGlobal Function Left(Extends str As String, count As Integer) As String
added Global Function Lowercase(Extends Str As String) As String
added Global Function NthField(Extends aString As String, separator As String, index As Integer) As String
added Global Function Replace(Extends sourceString As String, substring As String, replacementString As String) As String
added Global Function ReplaceAll(Extends sourceString As String, substring As String, replacementString As String) As String
added Global Function Right(Extends str As String, count As Integer) As String
added Global Function Split(Extends source As String, delimiter As String = ” “) As String()
added Global Function StrComp(a As String, b As String, compareMode As Integer) As Integer
added Global Function Titlecase(Extends Str As String) As String
added Global Function Trim(Extends s As String) As String
added Global Function Uppercase(Extends Str As String) As String
added Global Function Val(Extends str As String) As Double

Class TextArea
Deprecated Value replace with Text

Class TextEdit
Deprecated Value replace with Text

Class TextField
Deprecated Value replace with Text

Class Thread
added Public Shared Property Current As Thread
added Public Property CurrentThread As Thread
added Public Property CurrentThread1 As Thread
added Public Shared Sub SleepCurrent(milliseconds As Integer)
added Public Shared Sub YieldToNext()

added Class Worker

Module Xojo.Core.
Deprecated Xojo.Core.Date replace with DateTime
Deprecated Xojo.Core.DateIntervalreplace with DateInterval
Deprecated Xojo.Core.Dictionaryreplace with Dictionary
Deprecated Xojo.Core.DictionaryEntryreplace with DictionaryEntry
Deprecated Xojo.Core.Localereplace with Locale
Deprecated Xojo.Core.MemoryBlockreplace with MemoryBlock
Deprecated Xojo.Core.MutableMemoryBlock replace with MemoryBlock
Deprecated Xojo.Core.Pointreplace with Point
Deprecated Xojo.Core.Rectreplace with Rect
Deprecated Xojo.Core.Sizereplace with Size
Deprecated Xojo.Core.Timerreplace with Timer
Deprecated Xojo.Core.TimeZonereplace with TimeZone
Deprecated Xojo.Core.WeakRefreplace with WeakRef

  Module Xojo.Data
Deprecated Xojo.Core.InvalidJSONException replace with InvalidJSONException

Module Xojo.Introspection
Deprecated Xojo.Introspection.AttributeInfo replace with AttributeInfo
Deprecated Xojo.Introspection.ConstructorInfo replace with ConstructorInfo
Deprecated Xojo.Introspection.MemberInfo replace with MemberInfo
Deprecated Xojo.Introspection.MethodInfo replace with MethodInfo
Deprecated Xojo.Introspection.ParameterInfo replace withParameterInfo
Deprecated Xojo.Introspection.PropertyInfo replace with PropertyInfo
Deprecated Xojo.Introspection.TypeInfo replace with TypeInfo

Module Xojo.IO
Deprecated Xojo.IO.BinaryStream replace with BinaryStream
Deprecated Xojo.IO.FolderItem replace with FolderItem
Deprecated Xojo.IO.IOException replace with IOException
Deprecated Xojo.IO.SpecialFolder replace with SpecialFolder
Deprecated Xojo.IO.TextInputStream replace with TextInputStream
Deprecated Xojo.IO.TextOutputStream replace with TextOutputStream

Module Xojo
added Abs(value As Double) As Double
added ACos(value As Double) As Double
added ASin(value As Double) As Double
added ATan(value As Double) As Double
added ATan2(y As Double, x As Double) As Double
added Ceil(value As Double) As Double
added Ceiling(value As Double) As Double
added Cos(value As Double) As Double
added DecodeHex(s As String) As String
added EncodeHex(s As String, insertSpaces As Boolean = False) As String
added Exp(value As Double) As Double
added Floor(value As Double) As Double
added Log(value As Double) As Double
added Max(value1 As Double, value2 As Double, ParamArray moreValues() As Double) As Double
added Min(value1 As Double, value2 As Double, ParamArray moreValues() As Double) As Double
added Pow(base As Double, exponent As Double) As Double
added Rnd() As Double
added Round(value As Double) As Double
added Sign(value As Double) As Integer
added Sin(value As Double) As Double
added Sqrt(value As Double) As Double
added Tan(value As Double) As Double
added VarType(value As Variant) As Integer

IOSKeyboardTypes
added Deprecated iOSKeyboardTypes replace with MobileTextField.InputTypes


5 Replies to “2020r2 desktop changes”

  1. I’ve been away a couple of years.

    Was this really a thing?

    Class TextArea
    Deprecated Value replace with Text

    Class TextEdit
    Deprecated Value replace with Text

    Good lord. What’s going on? Junior staff?

    1. Yeah. In one release they deprecated Text and encouraged Value. Now they are deprecating Value and encouraging Text again

  2. @Gerard: too much “thinking like a computer” aka “everything is a value” (the antithesis of REALbasic), not enough common sense.

    This does my head in. Worse than learning a new language is having words changed in a language you are familiar with …

Comments are closed.