Jump to content

Search the Community

Showing results for tags 'array'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


There are no results to display.


  • Welcome to Smart Mobile Studio
    • News and Information
    • Pre-Sales Questions
    • Smart In the Media
    • Smart Contests
    • Meta
  • Smart Mobile Studio Discussion
    • General
    • IDE
    • RTL
    • Code
    • Client Server
    • Platform
    • Graphics
    • Deployment
    • Suggestion box
  • Smart Mobile Studio support
    • Support
    • Bug report
  • General Discussion
    • Pascal
    • Delphi
    • Javascript
    • HTML/HTML5
    • CSS
  • Resources
    • Website
    • Download Smart Mobile Studio

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL



Company name


Found 3 results

  1. I recently discovered the possibility to "redefine" some language elements by using the js prototype mechanism. As an example see code below which implements an "array" object based directly on a modified js array and gives it customised methods as well. In this case array.push is arbitrarily renamed to array.add, array.splice to array.remove and lookUpIndex and lookUpValue are implemented as search methods. Code is based on and inspired by http://blog.benoitvallon.com/category/data-structures-in-javascript/ While an array example is maybe somewhat trivial, the same method can be
  2. lynkfs

    array hooks

    There is an annoying SMS bug when reloading project source which contains "]]" strings like in "edges[Vertices[i]].length" after reloading, all "]]" in the source code have been replaced by spaces : now reads like "edges[Vertices[i .length" workaround is to add a space myself : edges[Vertices[i] ].length Note: even submitting this post has its problems, the double "]" tokens get garbled after posting, only works after formatting as code
  3. lynkfs

    data structures

    Some data structures, derived directly from TObject : TSet "A data type that can store values without any particular order and no double ups" (wikipedia) demo code methods Procedure Add(Item: Variant); Procedure Remove(Item: Variant); Function Contains(Item: Variant): Variant; Function Union(Set: TSet): TSet; Function Intersect(Set: TSet): TSet; Function Difference(Set: TSet): TSet; TStack (LIFO) "A collection of elements. Push adds an element to the collection and pop removes the most recent added element. Alternatively called LI
  • Create New...