Code:
Type SelectedFile
nFilesSelected As Short
sFiles() As String
'...etc etc etc
Can't do this in FB yet? Btw, I'm working on a common dialog header.
What would be that? A dynamic array field? VB stuff, i guess.. man, m$ is weird ;)
How would you allocate space for that array? redim?
If FB had pointer arithmetics (what it doesn't have yet), you could do:
Type SelectedFile
nFilesSelected As Short
sFiles As String ptr
end type
dim sf as SelectedFile
*(sf.sFiles + indexexpression) = ""
But i dunno how sFiles would be allocated.. would need another array and the address of that array would have to be assigned to the sFiles pointer.
I suppose I could rewrite the type anyways...I'm just porting pre-existing code, so I could likely rewrite it to something that's compatible with FB. And yeah...VB has some pretty weird stuff in it.