Well its an error in gb.report Preview use gb.setting for storing last user preference when gb.setting is used in the user project. I need to find what goes wrong. Le 8 mai 2014 18:55, "Jussi Lahtinen" <[email protected]> a écrit :
> How that method "Preview" is defined? > If you cannot show more code, then can you isolate this problem in small > runnable project you could send to us? > > > Jussi > > > On Thu, May 8, 2014 at 5:54 PM, Roki <[email protected]> wrote: > > > First, thank Randall for rapid response. You're right, here's my > > explanation of the problem. > > > > I did a project to record the vehicles that are registered in our > > company. I use mysql database in background. From the Component tab, I > > checked (gb.db.mysql, gb.report and gb.settings) because I needed for my > > project. After all the forms and modules, I created a report of > > registered vehicles. I run the project to test it. But when I clicked to > > view a report, the program stopped, and return this error (Type > > mismatch: wanted integer, got Null instead in FMain:343.) > > > > Here is the code where the error appears: > > Public sub ToolButton3_Click() > > Dim rep as New repVehicle > > rep.Preview <<< Here returns an error (Type mismatch: wanted > > integer, got Null instead in FMain:343.) > > End > > > > After exploring the code to find the source of the error, I found > > nothing wrong with the code. > > Accidentally noticed that when uncheck gb.settings from the component > > tab, the review of a report, run without any problem. > > > > I hope that now I was clear enough about the problem. > > > > On 05/07/2014 11:27 PM, Randall Morgan wrote: > > > Can you supply your code? You don't give enough details for anyone to > be > > > able to help. > > > > > > > > > On Wed, May 7, 2014 at 2:11 PM, Roki <[email protected]> wrote: > > > > > >> Hello everyone, I'm new here! > > >> > > >> Here's my question!? > > >> > > >> When I add gb.settings component in my project, a report returning > this > > >> error ("type mismatch: wanted integer, got null instead"). When I turn > > >> off gb.settings component, report work correctly. > > >> > > >> Is this a bug or I do something wrong? > > >> > > >> Sorry for my English, if there are some mistakes, but I think somehow > > >> you understand. > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> Is your legacy SCM system holding you back? Join Perforce May 7 to > find > > >> out: > > >> • 3 signs your SCM is hindering your productivity > > >> • Requirements for releasing software faster > > >> • Expert tips and advice for migrating your SCM now > > >> http://p.sf.net/sfu/perforce > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> [email protected] > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Is your legacy SCM system holding you back? Join Perforce May 7 to find > > out: > > • 3 signs your SCM is hindering your productivity > > • Requirements for releasing software faster > > • Expert tips and advice for migrating your SCM now > > http://p.sf.net/sfu/perforce > > _______________________________________________ > > Gambas-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find > out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
