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?



David Esperalta

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?

David Esperalta

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.

David Esperalta

Hello Ryan,

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



David Esperalta

Hello again,...

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



Ryan Sytsma
I can share them on OneDrive or something too

David Esperalta

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!!! :)

David Esperalta

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



David Esperalta

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's support forum for learning purposes, however only DecSoft's customers can post new threads. Purchase one or more licenses of some DecSoft's products in order to give this and other benefits.