Search found 72 matches

Go to advanced search

by JohnP
Thu Aug 27, 2020 10:22 am
Forum: General Discussion
Topic: SDS secondary using up nearly all memory
Replies: 4
Views: 1742

Re: SDS secondary using up nearly all memory

Note that the default for [PersistentDb] DiskCacheMaxSegments is half of physical memory, so if you haven't specified it, the db will try to take up that much. If you have multiple databases, three for instance, they all try to take half of physical memory. In other words, the default assumes only o...
by JohnP
Thu Jan 10, 2019 9:54 am
Forum: General Discussion
Topic: Move a form to a different monitor
Replies: 4
Views: 2815

Re: Move a form to a different monitor

Can't you just set the Form::left attribute? If your resolution is 1280 x 768 and left = 0 on the main monitor, on the left monitor you would set left to -1280. If your secondary monitor is on the right, you would set left to 1280.
by JohnP
Mon Oct 15, 2018 10:07 am
Forum: Tips and Techniques
Topic: how to turn off alert sound?
Replies: 3
Views: 2559

Re: how to turn off alert sound?

You mean the sound like when you compile a method with a syntax error? That usually means you are trying to do something wrong. Unless, of course, your code has app.beep or global.beep.
by JohnP
Fri Oct 12, 2018 5:42 pm
Forum: Tips and Techniques
Topic: how to sort table or dictionary as I can put the object to the last row of the table
Replies: 2
Views: 2233

Re: how to sort table or dictionary as I can put the object to the last row of the table

Normally for an id I would use fixed length numbers with leading zeros, then it sorts correctly. Integer::padLeadingWith does that for you. For example, try this:

write "r" & 14.padLeadingWith("0", 6);
by JohnP
Fri Sep 28, 2018 6:39 am
Forum: Tips and Techniques
Topic: Any native function like "mailto" as in HTML ?
Replies: 2
Views: 2255

Re: Any native function like "mailto" as in HTML ?

If you use JADECare Start (CardSchema), you can use the CnSmtpConnection class to send emails.
by JohnP
Fri Sep 21, 2018 8:10 am
Forum: Tips and Techniques
Topic: manual validation code for login.
Replies: 10
Views: 6062

Re: manual validation code for login.

For simple systems, the global that JADE provides works just fine. For more complex systems, having your own Root object(s) makes things easier.
by JohnP
Wed Sep 19, 2018 5:50 am
Forum: Tips and Techniques
Topic: manual validation code for login.
Replies: 10
Views: 6062

Re: manual validation code for login.

Shouldn't the return false only happen if the while loop doesn't find a match? Otherwise it returns false if the first user isn't the right one. while iter.next(user) do //write user.lastName; if (user.identification = id or user.email=id)and (user.password=password)then return true; endif; endwhile...
by JohnP
Tue Sep 11, 2018 10:58 am
Forum: General Discussion
Topic: Reading large text files sequentially
Replies: 5
Views: 3405

Re: Reading large text files sequentially

You may also be able to speed it up by setting mode to Mode_Input and shareMode to Share_Read. Extra overheads can be incurred if these are not set, as JADE has to keep checking to see if the file has been updated by someone else. https://www.jadeworld.com/docs/jade-2016/Default.htm#cshid=sharemodef...
by JohnP
Mon Sep 03, 2018 6:46 pm
Forum: Tips and Techniques
Topic: making carousel using GUI form
Replies: 1
Views: 1674

Re: making carousel using GUI form

You can show pictures with the Picture control, and app.loadPicture().

https://www.jadeworld.com/docs/jade-71/ ... pplication
by JohnP
Mon Aug 13, 2018 12:28 pm
Forum: Tips and Techniques
Topic: Redirect after a few seconds to another page
Replies: 1
Views: 1772

Re: Redirect after a few seconds to another page

As I mentioned in your other post, you can specify a splash screen image in the ini file. Then you can put app.doWindowEvents(5000); at the beginning of the form load method to do the delay.

Go to advanced search

cron