Community
Showing results for 
Search instead for 
Do you mean 
Reply

Noob: How to correctly declare Object/Var for results of GetHistoryTypes()...

Bronze Super Contributor
Posts: 1,170
Country: USA

Noob: How to correctly declare Object/Var for results of GetHistoryTypes()...

Using

 

 Dim hTypes() As HistoryType = {ActFwk.Histories.GetHistoryTypes()}

 

Returns: '1-dimensional array of 'Act.Framework.Histories.HistoryType' cannot be converted to 'Act.Framework.Histories.HistoryType'.

 

thx.

Nickel Super Contributor
Posts: 441
Country: UK

Re: Noob: How to correctly declare Object/Var for results of GetHistoryTypes()...

Get history types returns an array you don't need the {} ...

 

Dim hTypes() As Act.Framework.Histories.HistoryType = actfwk.Histories.GetHistoryTypes

 

Tom

Bronze Super Contributor
Posts: 1,170
Country: USA

Re: Noob: How to correctly declare Object/Var for results of GetHistoryTypes()...