Query switching between activities

GMC

New Member
Hi Guys

I have tried searching this one but havent come across anything. Im creating some basic apps to familirise myself with the IDE. At present ive created a main screen with two buttons. Upon clicking one of the buttons it should open a new activity for me.

Code in Home Screen

Sub btnadd_click
startactivity("Add")
End Sub

Then in the new activity like the Home I called
Sub Activity_create
activity.loadlayout("Add")
End Sub

Im getting a java error each time i click the button indicating

"java.io.filenotfoundexception: add.bal"

I cant seem to locate a file by that name in my project however i can see Add.bas. Have i missed something simple here or am i getting an error as its looking for the wrong file extension???

Any help appreicated
 

thedesolatesoul

Expert
Licensed User
Longtime User
Upvote 0

GMC

New Member
Nice One

As so that was it mate id created the activity within the Main Code IDE however i hadnt actually accessed the designer for the two new activities id created. Once i accessed and added the title everything worked fine.

Cheers guys i went through the guide originally i must have forgot you need to make a change in the designer.
 
Upvote 0
Top