Jump to content

Search the Community

Showing results for tags 'rtti'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi, TUniForm does not pass correct information to RTTI. Say, you have this declaration: type TMainForm = class(TUniForm) private { Private declarations } public procedure sayHi; end; The RTTI code should should reveal all the methods in the class. var fCtx: TRttiContext:= TRttiContext.Create; var form: TMainForm:=MainForm; var rtype: TRttiType:= fCTx.GetType(form.ClassInfo); var gg: TArray<string>; for var method: TRttiMethod in rtype.GetMethods do begin SetLength(gg, Length(gg) + 1); gg[Length(gg) - 1]:=method.Name; end; fCtx.Free; gg array should list all the methods in the class but it misses the sayHi method. Unfortunately, forcing the compiler to inspect all methods using the following directive does not work {$RTTI METHODS([vcPublic, vcProtected, vcPrivate])} On the other hand, if you declare the following class TTestClass = class private procedure method1; public procedure method2; end; and run the same code gg lists method2 (but, strangely, not method1???). I suspect the function that returns TMainForm messes up RTTI. Can anyone think of any work around?
×
×
  • Create New...