Javascript syntax error that I can't catch


Ryan Sytsma

I am compiling my app to test on a device and while the was working fine a few days ago, I am now getting compile errors over and over.

I already tried deleting my Compile directory in the project.

Code in question

Every error is "Expected ';'". In some cases I can see a possible problem and making a change fixes the particular error at that moment.

Is the error in question just a general error indicating something is wrong but not on the line it is reporting?



DecSoft

Hello Ryan,

The code that you show as been written by hand or is generated by AB from some actions? What I can see in the code that you show is that, apparently the "<<--------line in error" line don't match the above code, that is, or some code is missing, or that line must be just removed, because is not apparently right.

Can you start to compile the app from the scratch, removing firstly the "_Compiled" and the "_Cache" directories? If you can provide a sample app in which we ca see the error reproduced that can be very good. Maybe you can send me the complete "app.js" file, or even the app, in order to take a look.



Ryan Sytsma
How can I send you the app?

DecSoft

Hello Ryan,

Yes; please. Send me also the "app.js"... or send me the app "ready to be compiled", and, also put some comments (in the E-Mail and if needed) about how to reproduce the problem: maybe this is not neeed if the app fails when start due to the Javascript syntax issue.



Ryan Sytsma
Just sent the email.

DecSoft

Hello Ryan,

Sorry... GMail reject the attachment.... try with info@decsoftutils.com... or maybe with other way... I will take a look as quickly as possible.



DecSoft

Hello again,...

Please, forget the my last post: I think you already sent to info@decsoftutils.com: certainly GMail reject it, but, I think I can get the files from the info@decsoftutils.com. So don't worry, I will take a look.



Ryan Sytsma
I can share them on OneDrive or something too

DecSoft

Let me to take a look first (I am not in my PC now), maybe I can get the files, so no other thing is need.



Ryan Sytsma
Thank you so much. If you need them some other way, I will be working all night!!! :)

DecSoft

Hello Ryan,

I hope you have a nice night coding. :-) I finally got the problem, which is inside the Click event of the button "buttonUpdateDatabase", which is placed in the "Home" app view. The problem is a missing "EndIf" action, that you can place at the end of the referred Click event. I think this is enough for you, in other words, I think you can see the problem when take a look at the referred event. If you can't see it... please, post here and I will try to help you.



Ryan Sytsma

Well that was dumb of me! I kept chasing the errors and they kept happening. I really appreciate your outstanding support



DecSoft

Hello Ryan,

No problem at all! In fact I must recognize that the error is more or less difficult to catch.


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.