padvou Active Member Licensed User Longtime User Jul 5, 2014 #1 Why does this code: Activity.SetBackgroundImage(File.DirRootExternal & "/Apollo/" , pngfilename) B4X: Activity.SetBackgroundImage(File.DirRootExternal & "/foldername/" , pngfilename) produce an error: B4X: Parsing code. 0.18 Compiling code. Error Error compiling program. Error description: Too many parameters. Occurred on line: 58 Activity.SetBackgroundImage(File.DirRootExternal & "/foldername/" , pngfilename) Word: pngfilename
Why does this code: Activity.SetBackgroundImage(File.DirRootExternal & "/Apollo/" , pngfilename) B4X: Activity.SetBackgroundImage(File.DirRootExternal & "/foldername/" , pngfilename) produce an error: B4X: Parsing code. 0.18 Compiling code. Error Error compiling program. Error description: Too many parameters. Occurred on line: 58 Activity.SetBackgroundImage(File.DirRootExternal & "/foldername/" , pngfilename) Word: pngfilename
NJDude Expert Licensed User Longtime User Jul 5, 2014 #2 You are getting that error because it's the wrong syntax, it should be: B4X: Activity.SetBackgroundImage(LoadBitmap(File.DirRootExternal & "/foldername/" , pngfilename)) Upvote 0
You are getting that error because it's the wrong syntax, it should be: B4X: Activity.SetBackgroundImage(LoadBitmap(File.DirRootExternal & "/foldername/" , pngfilename))
padvou Active Member Licensed User Longtime User Jul 5, 2014 #3 I messed the copy paste... Thanks a lot NJ! Upvote 0