From Sprezz Towers

Notes from the workshop.

Technical discoveries, field notes, unlikely bugs and the occasional opinion.

Send_Message optimisation

As you'll doubtless know there are several core routines used in Basic+ to interact with OI forms, probably the three most important being: Get_Property() Set_Property() Send_Message() To maximize performance when dealing with properties it is common practice to pass @rm-delimited arrays to Get_Property and Set_Property like so: 0001   /*   0002      Example to illustrate accessing properties via @rm-delimited arrays. 0003         0004      i.e to replace code like this: 0005       0006         call set_Property( @window, "TEXT", "Customers" ) 0007         call set_Property( @window, "TRACKINGSIZE", trkSize ) 0008         c...

Read article →

RTI_DIFF - This one's for Dave

OpenInsight 9.2.1 saw the introduction of a routine called RTI_DIFF which which returns an array describing the results of the comparison of the two strings passed. The question it effectively answers is "If I wanted the first string to be the same as the second string what would I have to do?". It'd probably help if you just assumed that the two strings were different versions of a program that you wanted to compare for changes - although you could use it to compare any strings - in an auditing MFS for example. Usage is simple   resultsArray  =  RTI_Diff (  var1 ,  var2  ) Now before we go any further I'd like you to take a deep breath, centre your chakra and repeat the following mantra... From exclusive, to inclusive. From exclusive, to inclusive. From exclusive, to inclusive. From exclusive, to inclusive. OK are you still with me? Good. Keep that mantra in mind because you're going to need it to make sense of what comes hereinafter... S...

Read article → 2 comments