Export from FastReport 4 to PDF Stream
Con FastReport 4 esportare un report in PDF su stream è semplicissimo, bastano 5 minuti … peccato che non è spiegato nella documentazione, quindi per capire come funzionava l’arcano ci ho perso due ore…
di seguito una porzione di codice come esempio:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
procedure TForm1.Button3Click(Sender: TObject); var st : TMemoryStream; begin st := TMemoryStream.Create; Try TBlobField(csReports.FieldByName('Report')).SaveToStream(st); st.Position := 0; dmReport4.frxReport1.LoadFromStream(st); st.Position := 0; st.Clear; frxPDFExport1.Stream := st; dmReport4.frxReport1.PrepareReport(True); dmReport4.frxReport1.Export(frxPDFExport1); st.Position := 0; if SD.Execute then st.SaveToFile(sd.FileName); ShellExecute(Handle,'open',PChar(ExtractFileName(sd.FileName)),'',PChar(ExtractFilePath(sd.FileName)),SW_SHOW); Finally st.Free; End; end; |
Delphi XE2 & Firemonkey some answers….
In questi giorni c’è un’eccezionale attività relativa a quest’argomento sulla rete, la mia curiosità di provare questo prodotto non posso negarlo è molta. Parte del mistero relativo a FireMonkey si è risolto da voci ufficiali si tratterebbe dell’acquisto di VGScene/DXScene da parte di Embarcadero.
Per quanto mi riguarda rimaneva comuque il desiderio di capire come questa tecnologia potesse essere integrata in Delphi XE2 ed ho trovato in rete i seguenti video che ne dimostrano potenzialità e semplicità d’uso che davvero non mi aspettavo. Credo che questa versione di Delphi sia adirittura più rivoluzionaria di Delphi 2.
Inoltre non mi aspettavo l’integrazione con iOS e X-Code cosa di cui non si era minimamente accennato in passato.
Questo primo video mostra come creare da zero un app. Nativa per Mac con Delphi e FireMonkey e come sia semplice compilarla per i due ambienti :
Mentre questo secondo video (ufficiale dal blog di Embarcadero) mostra come sia possibile creare la stessa applicazione per Win32, Win64, OSX e tramite l’esportazione da Delphi a XCode agli ambienti iOS (iPhone , iPAD) :
Leggendo qua e la ho letto anche che stanno lavorando per aggiungere le piattaforme Linux e Android a questa fantastica tecnologia. Qui ovviamente in merito ad Android mi sorgono altre perplessità (tipo che in Android in teoria si può esclusivamente sviluppare in Java e soprattutto non con linguaggi nativi… ma stiamo a vedere)
In queto articolo pubblicato sul sito di Embarcadero , David Intersimone ed altri dello staff rispondono a molti questi proposti dai lettori e se ne traggono infomrazioni preziose in merito al prodotto e a eventuali limiti dello stesso, il link all’articolo : http://blogs.embarcadero.com/davidi/2011/08/01/41062#comment-26065
a presto
ivan
Delphi – Indy idTCPServer e idTCPClient
Semplice esempio per utilizzare i componenti di Indy Nevrona in Delphi per creare una mini applicazione Client/Server su protocollo TCP. Per fare un semplice esempio possiamo pensare ad un applicazione client che invia una stringa ad un applicazione Server la quale torna a sua volta la stringa al client. Per complicarci un attimo la vita al posto di classiche stringhe utilizzeremo degli Stream (almeno nel caso si volesse fare un trasferimento di files si potrebbe già utilizzare l’esempio).
Nell’esempio per facilitarci la vita utilizzeremo la classe TStringStream che è un discendente della classe TStream che permette facilmente di gestire il contenuto dello stream come fosse una stringa.
Partiamo con l’applicazione Server , per crearla potremmo semplicemente creare una nuova applicazione con Delphi e trascinarci su il componente TidTCPServer , decidiamo che porta TCP occupare con il ns servizio , nel ns caso la 9099 , ora il sorgente della ns. form , per comodità metteremo un paio di listbox sul form per i messaggi:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
unit Main_Unit_Server; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdBaseComponent, IdComponent, IdTCPServer, StdCtrls, Buttons, IdSocketHandle, IdServerIOHandler, IdServerIOHandlerSocket, IdUDPBase, IdUDPServer, IdAntiFreezeBase, IdAntiFreeze, IdMappedPortTCP, IdThreadMgr, IdThreadMgrDefault; type TServer_Form = class(TForm) TCP_Server: TIdTCPServer; ListBox1: TListBox; Start_Server_Button: TSpeedButton; Stop_Server_Button: TSpeedButton; Label1: TLabel; Bind_IP: TEdit; Bind_Port: TEdit; ListBox2: TListBox; IdAntiFreeze1: TIdAntiFreeze; SpeedButton1: TSpeedButton; IdThreadMgrDefault1: TIdThreadMgrDefault; ckAutoReply: TCheckBox; ckVideoResult: TCheckBox; procedure FormCreate(Sender: TObject); procedure Start_Server_ButtonClick(Sender: TObject); procedure Stop_Server_ButtonClick(Sender: TObject); procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure TCP_Server__Connect(AThread: TIdPeerThread); procedure TCP_ServerExecute(AThread: TIdPeerThread); procedure TCP_ServerNoCommandHandler(ASender: TIdTCPServer; const AData: String; AThread: TIdPeerThread); procedure TCP_ServerConnect(AThread: TIdMappedPortThread); procedure SpeedButton1Click(Sender: TObject); procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); procedure TCP_ServerDisconnect(AThread: TIdPeerThread); private procedure ShowClientsConnected; function StopTheServer: Boolean; { Private declarations } public { Public declarations } ListaClient : TList; end; var Server_Form: TServer_Form; implementation uses IdTCPConnection; {$R *.dfm} procedure TServer_Form.FormCreate(Sender: TObject); begin Top:=0; Left:=0; Start_Server_ButtonClick(Nil); ListaClient := TList.Create; end; procedure TServer_Form.Start_Server_ButtonClick(Sender: TObject); var Loc_Binding : TIdSocketHandle; begin if TCP_Server.Active then begin Exit; end; try TCP_Server.DefaultPort := 9099; TCP_Server.Active:=True; if ListBox1.Items.Count>10 then ListBox1.Items.Delete(0); if TCP_Server.Active then begin ListBox1.Items.Add('Server started .... '+TCP_Server.Bindings.Items[0].IP+':'+IntToStr(TCP_Server.Bindings.Items[0].Port)); end else begin ListBox1.Items.Add('ERROR. Cannot start server .... '); Exit; end; except ListBox1.Items.Add('ERROR. Setting-up server .... '); Exit; end; end; procedure TServer_Form.Stop_Server_ButtonClick(Sender: TObject); begin if not TCP_Server.Active then Exit; try TCP_Server.Active := False; except end; end; procedure TServer_Form.FormClose(Sender: TObject; var Action: TCloseAction); begin if Action=caFree then begin if TCP_Server.Active then begin Stop_Server_ButtonClick(Nil); end; end; end; procedure TServer_Form.TCP_Server__Connect(AThread: TIdPeerThread); Var s : String; begin ShowClientsConnected; if ListBox2.Items.Count>10 then ListBox2.Items.Delete(0); ListBox2.Items.Add( 'Client is connected from '+ AThread.Connection.Socket.Binding.IP+':'+ IntToStr(AThread.Connection.Socket.Binding.Port) ); // imposto un buffer piccolo AThread.Connection.RecvBufferSize := 65536 div 4; AThread.Connection.SendBufferSize := 65536 div 4; ListaClient.Add(AThread); end; // Execute è il metodo principe , che intercetta le chiamate dei Client procedure TServer_Form.TCP_ServerExecute(AThread: TIdPeerThread); Var S,Resp : String; Data : String; I : Integer; Ms : TStringStream; Begin Try Try Data := ''; Ms := nil; Try Ms := TStringStream.Create(''); Ms.Position := 0; AThread.Connection.ReadStream(Ms); Ms.Position := 0; Data := Ms.DataString; if ckVideoResult.Checked then ListBox2.Items.Add(AThread.Connection.Socket.Binding.IP+' --> '+Data); Except On E:Exception do Begin ListBox2.Items.Add('Errore [1]: ' + E.Message); End; End; If ckAutoReply.Checked then Begin MS := TStringStream.Create('Giovanni dice : ' + Data); Ms.Position := 0; AThread.Connection.WriteStream(MS,True,True); Try Ms.Free; Except End; End; //Resp := TClientManager(AThread.Data).CommandParser(Data,True); Except On E:Exception do ListBox2.Items.Add('Errore [2]: ' + E.Message); End; Finally If ms <> nil then Try Ms.Free; Except End; End; end; // Sending a string to all connected clients procedure TServer_Form.SpeedButton1Click(Sender: TObject); Var i:Integer; ms : TStringStream; begin try TCP_Server.Threads.LockList; for i:=0 to ListaClient.Count-1 do Begin MS := TStringStream.Create('Invio massivo dati'); Ms.Position := 0; TIdPeerThread(ListaClient[i]).Connection.WriteStream(MS,True,True); Try Ms.Free; Except End; End; finally TCP_Server.Threads.UnlockList; end; end; procedure TServer_Form.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin Try TCP_Server.Active := False; Except End; CanClose := True; end; procedure TServer_Form.TCP_ServerDisconnect(AThread: TIdPeerThread); begin ListaClient.Remove(AThread); end; end. |
L’applicazione client sarà adirittura più semplice, allo stesso modo creiamo con il ns ambiente un’altra applicazione , ci trasciniamo il componente TidTCPClient al quale assegneremo alla proprietà “hosts” l’indirizzo ip (o dns) del ns server ed alla proprietà “port” lo stesso valore del server (nel ns caso 9099) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
unit Main_Unit_Client; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, StdCtrls, IdUDPBase, IdUDPClient, ExtCtrls, IdIntercept, IdSocks, IdIOHandlerSocket, IdIOHandler, IdIOHandlerStream; type TForm1 = class(TForm) TCP_Client: TIdTCPClient; Label2: TLabel; Label3: TLabel; Host_Address: TEdit; Host_Port: TEdit; Connect_Button: TButton; btnDisconnect: TButton; ListBox1: TListBox; Edit1: TEdit; Button1: TButton; ListBox2: TListBox; pnlSemaforo: TPanel; btnMultiSend: TButton; ckVideoResult: TCheckBox; Timer1: TTimer; btn_startTimer: TButton; procedure Connect_ButtonClick(Sender: TObject); procedure FormCreate(Sender: TObject); procedure btnDisconnectClick(Sender: TObject); procedure Button1Click(Sender: TObject); procedure TCP_ClientConnected(Sender: TObject); procedure TCP_ClientDisconnected(Sender: TObject); procedure btnMultiSendClick(Sender: TObject); procedure Timer1Timer(Sender: TObject); procedure btn_startTimerClick(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} uses DateUtils; procedure TForm1.Connect_ButtonClick(Sender: TObject); begin if TCP_Client.Connected then begin TCP_Client.Disconnect; Exit; end; ListBox1.Clear; ListBox2.Clear; try TCP_Client.Host :=Host_Address.Text; TCP_Client.Port :=StrToInt(Host_Port.Text); TCP_Client.Connect(1000); ListBox1.Clear; except ListBox1.Items.Add('ERROR trapped while trying to connect'); end; end; procedure TForm1.FormCreate(Sender: TObject); begin Top:=0; Left:=Screen.Width-Width-30; Hide; //FormStyle:=fsStayOnTop; Show; end; procedure TForm1.btnDisconnectClick(Sender: TObject); begin if TCP_Client.Connected then begin TCP_Client.Disconnect; end; end; procedure TForm1.Button1Click(Sender: TObject); Var s:String; MS : TStringStream; begin if TCP_Client.Connected then begin MS := TStringStream.Create(Edit1.Text); MS.Position := 0; TCP_Client.WriteStream(MS,true,true); MS.Position := 0; if ckVideoResult.Checked then ListBox1.Items.Add('Sent ....: ' + MS.DataString); Try MS.Free; Except End; MS := TStringStream.Create(''); MS.Position := 0; TCP_Client.ReadStream(MS); MS.Position := 0; if ckVideoResult.Checked then ListBox1.Items.Add('Recived ....: ' + MS.DataString); Try MS.Free; Except End; end; end; procedure TForm1.TCP_ClientConnected(Sender: TObject); begin ListBox2.Items.Add('On Conneted'); pnlSemaforo.Color := clLime; end; procedure TForm1.TCP_ClientDisconnected(Sender: TObject); begin pnlSemaforo.Color := clRed; end; procedure TForm1.btnMultiSendClick(Sender: TObject); Var I,J : Integer; N1,N2 : TDateTime; begin Try I := StrToInt(InputBox('Nr. di comunicazioni : ', 'Nr. di comunicazioni : ', '100')); Except I := 10; End; N1 := now; For J:=0 to I do Button1Click(nil); N2 := now; ShowMessage('Millisecondi totali: ' + IntToStr(DateUtils.MilliSecondsBetween(n1,n2)) + ' millisecondi per operazione:' + IntToStr(DateUtils.MilliSecondsBetween(n1,n2) div I)); end; procedure TForm1.Timer1Timer(Sender: TObject); Var s:String; MS : TStringStream; begin if TCP_Client.Connected then begin Try MS := TStringStream.Create(''); MS.Position := 0; TCP_Client.ReadStream(MS); MS.Position := 0; if ckVideoResult.Checked then ListBox1.Items.Add('Recived ....: ' + MS.DataString); Try MS.Free; Except End; Except End; end; end; procedure TForm1.btn_startTimerClick(Sender: TObject); begin Timer1.Enabled := True; end; end. |
Java to Delphi througth Midas and ClientDataSet
(This article is a draft but if something is of interesting …. )
The fantastic world of old Midas now called DataSnap introduced the TClientDataSet component , that is a in memory DataSet for Delphi and C++ Builder. With TClientDataSet was introduced the concept of Brief Case model Application Style.
A brief case model App. is the best concept application that exchnage data between server when and where there is a connection. Now TClientDataSet have two type of rapresenting the in memory data, one binary and one in a static xml format that is well explained in this article on Embarcadero site : http://edn.embarcadero.com/article/10405.
Using Java , the world of JDBC and ,of course, Tomcat we are trying to provide data to a client dataset via some Servlet and update data parsing the Delta sended by our TclientDataSet. So that we can connect to Oracle for example without usinig direct connection or driver.
We also found a similar project done with pHp posted on the Zend site at this url : http://www.zend.com//code/codex.php?ozid=1049&single=1.
Another good example of php datasnapserver is available at : http://phpbrasil.com/script-source/7adfoqhzodrk/5654
Soon we will post all about that.
stay tuned
bye ivan
Happy birday Delphi …
Delphi was born exactly fifteen years ago from Today, Marco Cantu on his web site have posted a great article on this because he is one of the first guru of this beatifull dev language… the article
Delphi and dynamic properties
[lang_it]
Linguaggio : Borland Delphi 7
Sistema Operativo : Win Xp Pro
Come premessa a volte è necessario rendere l’applicazione che si stà sviluppando il più flessibile possibile. Per evitare di avere migliaia di personalizzazioni per migliaia di clienti. Una cosa che può aiutare in questo è la modifica banale di alcune proprietà dei componenti dell’applicaiozne stessa a runtime in funzione di particolari parametri.
In Delphi è possibile fare questo in modo molto semplice senza dover scrivere granchè di codice, per rendere ancora più semplice la cosa ho preparato una banale applicazione d’esempio scaricabile da :Â [download id=”2″]
In particolare tale applicazione :
- mostra come sia possibile maneggiare un Componente (Oggetto) partendo dal nome dello stesso :
1 2 3 4 5 6 7 8 9 |
Var Comp : TComponent; Begin Comp := FindComponent(cbComponenti.Text); blablabla ....... |
- come ottenere l’elenco delle proprietà e, dei relativi nomi, da un definito componente
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
procedure TForm1.cbPropertyNameDropDown(Sender: TObject); var Comp : TComponent; PropInfo : PPropInfo; PropList : PPropList; I, PropCount,ListSize : Integer; begin Try cbPropertyName.Clear; Comp := FindComponent(cbComponenti.Text); If Comp = nil then Exit; (* ALLOCATING MEMORY FOR THE PROPERTY LIST *) PropCount := GetPropList(Comp.ClassInfo,tkAny,nil); ListSize := PropCount * SizeOf(Pointer); Getmem(PropList,ListSize); PropCount := GetPropList(Comp.ClassInfo,tkAny,PropList,true); If not assigned(PropList) then Exit; For I:=0 to PropCount -1 do begin PropInfo := PropList^[I]; If Assigned(PropInfo) then Begin if PropInfo^.PropType^.Kind in tkMethods then Begin // If is an avent handler do something end Else // if is a property Begin cbPropertyName.Items.Add(PropInfo^.Name); end; end; end; cbPropertyName.Update; Finally FreeMem(PropList); End; end; |
- impostare il valore di una proprietà partendo dal componente a cui appartiene e dal suo nome
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
procedure TForm1.btnDoItClick(Sender: TObject); var Comp : TComponent; PropInfo : PPropInfo; begin Comp := FindComponent(cbComponenti.Text); If Comp <> nil then Begin PropInfo := GetPropInfo(Comp.ClassInfo,cbPropertyName.Text); //SetVariantProp(); SetPropValue(Comp,cbPropertyName.Text,edPropValue.Text); (* exit; if Assigned(PropInfo) then Begin case PropInfo^.PropType^.Kind of tkInteger : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkChar : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkEnumeration : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkFloat : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkString : Begin SetStrProp(Comp,PropInfo,edPropValue.Text) end; tkSet : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkClass : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkMethod : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkWChar : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkLString : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkWString : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkVariant : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkArray : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkRecord : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkInterface : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkInt64 : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkDynArray : Begin ShowMessage(PropInfo^.PropType^.Name) end; end; end; *) End; end; |
[/lang_it]
[lang_en]
Linguaggio : Borland Delphi 7
Sistema Operativo : Win Xp Pro
Sometimes, you need to extend the flexibility of your application, to prevent managinig thousands release of an application for thousands customore.One of the most important feature is the posibility of modify a component property value at runtime.
With Delphi is possible and simple to do like in this demo application: [download id=”2″]
The core features of this demo application are : :
- get an object from his name ,using a string, that can be filled in a ini file or xml or db table :
1 2 3 4 5 6 7 8 9 |
Var Comp : TComponent; Begin Comp := FindComponent(cbComponenti.Text); blablabla ....... |
- obtain the list of properties and published methods/event of the selected object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
procedure TForm1.cbPropertyNameDropDown(Sender: TObject); var Comp : TComponent; PropInfo : PPropInfo; PropList : PPropList; I, PropCount,ListSize : Integer; begin Try cbPropertyName.Clear; Comp := FindComponent(cbComponenti.Text); If Comp = nil then Exit; (* ALLOCATING MEMORY FOR THE PROPERTY LIST *) PropCount := GetPropList(Comp.ClassInfo,tkAny,nil); ListSize := PropCount * SizeOf(Pointer); Getmem(PropList,ListSize); PropCount := GetPropList(Comp.ClassInfo,tkAny,PropList,true); If not assigned(PropList) then Exit; For I:=0 to PropCount -1 do begin PropInfo := PropList^[I]; If Assigned(PropInfo) then Begin if PropInfo^.PropType^.Kind in tkMethods then Begin // If is an avent handler do something end Else // if is a property Begin cbPropertyName.Items.Add(PropInfo^.Name); end; end; end; cbPropertyName.Update; Finally FreeMem(PropList); End; end; |
- setting the value of a property, for simple we have used SetPropValue , an untyped method that use a variant as parameter to send to selected property of the object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
procedure TForm1.btnDoItClick(Sender: TObject); var Comp : TComponent; PropInfo : PPropInfo; begin Comp := FindComponent(cbComponenti.Text); If Comp <> nil then Begin PropInfo := GetPropInfo(Comp.ClassInfo,cbPropertyName.Text); //SetVariantProp(); SetPropValue(Comp,cbPropertyName.Text,edPropValue.Text); (* exit; if Assigned(PropInfo) then Begin case PropInfo^.PropType^.Kind of tkInteger : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkChar : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkEnumeration : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkFloat : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkString : Begin SetStrProp(Comp,PropInfo,edPropValue.Text) end; tkSet : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkClass : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkMethod : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkWChar : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkLString : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkWString : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkVariant : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkArray : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkRecord : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkInterface : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkInt64 : Begin ShowMessage(PropInfo^.PropType^.Name) end; tkDynArray : Begin ShowMessage(PropInfo^.PropType^.Name) end; end; end; *) End; end; |
[/lang_en]