Delphi Programming Tutorial #54 - Dynamic Typing

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,398
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 7, 2009

Delphi is a statically typed language, but there are some tricks you can use if you want to be able to do some dynamically typed coding. In this Delphi programming tutorial we create a custom variant type (descending from TInvokeableVariantType). We then override Get and SetProperty to handle arbitary properties (that don't exist at design time).

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • sugar sugar baby!

  • what shortcut do you use for auto fill your code? thx

  • Hello Delphi developper :) I was wondering what is the use of creating a Singleton of TVarShowMessage since, has I understand, the function CreateVarShowMessage return each time a new instance of TVarShowMessage ? Is it in order to have a unique TVarType associated to your custom variant ?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more