Really retarded question im sure

Hajuu

Member
Hey guys,

Im just a bit confused because im just starting out with this stuff and im trying to define a new structure, but im having some issues. I do it almost exactly the same as in the manual with only names for things differing:

B4X:
dim Type(filename,preload) videofile

"Error description: An error message cannot be displayed because an optional..."

*shrug*

Any help would be greatly appreciated.
 

Louis

Active Member
Licensed User
Longtime User
Hi. Are you declaring these in between the Sub Globals and End Sub lines where all your global variables should be declared? Can you show us what your file looks like? The declaration you written is correct, but a look at the code including subs may help a lot. Try this code:
Sub Globals
Dim Type(filename,preload) videofile
' Declare other vars here!
End Sub
Sub App_Start
'The main initialization of your app goes here!
End Sub
HTH.
 

Hajuu

Member
Ahh turns out I was running version 3 rather than 5.5 heh.. 5.5 shows no error.. Maybe a changelog/version support section could be handy for some of the manual pages.. *Shrug*

Thanks for your time anyway
 
Top