Designer Scripts

roarnold

Active Member
Licensed User
Longtime User
Morning

Can I not use the following:

- AutoScaleAll - Autoscales all layout views.
Example:
Code:
AutoScaleAll


I receive an error that it is looking for an "=" in the script.

Thanks,
R
 

lagore

Active Member
Licensed User
Longtime User
I complied your program with no errors, the autoscale worked fine. As written you program does nothing the sub,
B4X:
Sub Activity_Resume
 txtUID.Initialize("")
 txtpin.Initialize("")
 txtCO.Initialize("")
 Activity.Finish
End Sub
will end the program before anything can happen I had to remove the 'Activity.Finish'.
In all the activities except 'Main' you are still loading the layout in the "If FirstTime Then" which means it will be loaded the first time but not on any subsequent visits/orientation change. Erel normally recommends 'HttpUtils2' for HttpRequests as it is much more robust. the flow of your program is a bit hard to follow with the mix of code and designer added views.
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Hi,

So the autoscaleall worked but I get an error (look back in previous posts). So I never got to finish the compile to see if it works correctly.

Thanks,
R
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
BTW: when I click on the exit button from the details presentation I was under the impression that it would return to resume but failed to ponder the results of placeing Activity.Finish there. When that button is clicked I was to clear the login information and exit the app maybe even leaving it for login by another person but forcing them to use their assigned information to do so.

Thx R
P.S Sometimes my logic is a bit fuzzy as this was one of my first programs that now is wanted in the market place.

Thx R
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Same comments as lagore.

In DList and SelectionList you have Main.hc.Initialize("hc") in Activity_Create, you shouldn't initialize it in every activity only once in Main.

Did you test exactly the same project you posted ?
We are two people compiling the program without any problem.

I suggest you to download your project from the forum save it in a new folder and test it to see if you still get the error.

Best regards.
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Afternoon,

Running 1.9 presently and will be upgrading in a couple weeks when I get my big machine.

Thx R
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
autoscaleall is supported since version 2.20, at least so I think. Thus, it's normal to err if you're running 1.90.
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Klaus,

Yes, that is the original code. I only deleted a folder reference in the url but otherwise thats it.

Where do I download the app from the forum? I will follow you recomendations.

I appreciate all the help from you and Lagore and others on this.

Thanks,
R
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Lagore,

I figured out how to code things like buttons and the like without having to use the designer. There is a mix of designer and code in the program.

Thanks for the help,
R
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…