2017-04-14 32 views

回答

0

可以使用UDT(用戶定義類型)結構:

in MODULE BAS 
Public Type TYPE_Newspapers  ' Create your type structure 
' Define items 
    Name As String * 100 
    Price As Currency 
    PublishDate As Date 
End Type 

in Form:  
Public MyNewspapers(1 to 100) As TYPE_Newspapers 
With MyNewspapers(1) 
    .Name = "Wall Street Journal" 
    .Price = 1 
    .PublishDate = #01/01/2017# 
End With 

等等...

+0

,如果我想在運行時提供的值,那麼,我也想在以後顯示值以另一種形式 – NoONE