读书人

Delphi怎么实现VB中type的定义?

发布时间: 2012-03-12 12:45:33 作者: rapoo

Delphi如何实现VB中type的定义?!!!
VB中在模块里可以这样定义全局变量 ”Map1“ :
Type TMap
Name As String
Imgleft As Single
Imgtop As Single
End Type

Public Map1 As TMap

请问在Delphi中,这个定义该怎样写?!!
请各位高手指教!



[解决办法]
record
[解决办法]
Type TMap
Name As String
Imgleft As Single
Imgtop As Single
End Type

type
TMap = record
Name: String;
Imgleft: Single;
Imgtop: Single;
end;

读书人网 >.NET

热点推荐