Search found 53 matches

by RNBW
Sat Apr 14, 2018 9:27 am
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

tsh73 The compactness of the code is due to LBB, for which we should thank Richard Russell. Also, Richard provided the basis of the construction of the textbox grid. The function is made up of a pretty standard way of checking character input for numbers. I found the few lines that sort out preventi...
by RNBW
Fri Apr 13, 2018 5:09 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

This is a bit more advanced than the previous examples. The program sets up a grid into which you can enter numbers ( - . 0 to 9 ). It carries out a check as you enter each individual character. If it's a valid number it accepts it. If it's not valid, you will see the character very briefly before ...
by RNBW
Fri Apr 13, 2018 10:53 am
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

Richard There is the following notice on the JB Conforums site. The backup is finished. The forum is now set to read-only to prevent the need to create another backup. Whether that means that it will remain as a read-only facility, I don't know. After the reaction on the LB forum, maybe I'd better n...
by RNBW
Fri Apr 13, 2018 7:51 am
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

tsh73 Thanks for your response. As you say, the code is a bit clumsy and was just some that I have picked up along the way. Personally, what I am more interested in is the numeric input code in the grid example ( RNBW » Thu Apr 12, 2018 6:18 pm ), in which a check is made for a valid input as each c...
by RNBW
Thu Apr 12, 2018 7:11 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

Drat it Richard! Of course you are absolutely correct in all respects. I have corrected the code below and can confirm that it IS compatible with LB4. ' CODE BASED ON A ROUTINE BY BOB BROMLEY IN ONE OF THE LB NEWSLETTERS, ' WHICH I HAVE MODIFIED, BECAUSE I ONLY WANT TO ENSURE NUMERIC ENTRY. ' BOB BR...
by RNBW
Thu Apr 12, 2018 5:18 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

This is a bit more advanced than the previous examples. The program sets up a grid into which you can enter numbers ( - . 0 to 9 ). It carries out a check as you enter each individual character. If it's a valid number it accepts it. If it's not valid, you will see the character very briefly before i...
by RNBW
Thu Apr 12, 2018 4:40 pm
Forum: Suggestion Box
Topic: Can number of views be shown?
Replies: 3
Views: 4632

Can number of views be shown?

Richard
I note with many forums they show the number of views on a topic. Is it possible on this forum and would you consider it a desirable feature?
Ray
by RNBW
Thu Apr 12, 2018 4:37 pm
Forum: General Board
Topic: LB Workshop
Replies: 4
Views: 4994

Re: LB Workshop

I'm not finding it necessary to run LBW as administrator (and I'd be wary of doing so because of the security implications), nor am I setting any compatibility mode. It's installed in Program Files (x86) as you would expect. I'll keep an eye on it in case something changes. It's probably not releva...
by RNBW
Thu Apr 12, 2018 3:23 pm
Forum: General Board
Topic: LB Workshop
Replies: 4
Views: 4994

Re: LB Workshop

Richard Rod on the LB Forum has come up with the answer: Ray, its UAC that's protecting your system. Navigate to where you installed LB Workshop then right click on the .exe and right click properties. Then under the compatibility tab you will see run as administrator. Click that option and apply an...
by RNBW
Thu Apr 12, 2018 10:42 am
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

Here's another example of formatted numeric input. 'Filtered numeric input with "." and "-". nomainwin WindowWidth = 250 : WindowHeight = 130 statictext #isNum.1, "Enter a number", 30, 15, 80, 40 textbox #isNum.tb, 120, 12, 48, 25 button #isNum.test, "Test", [Test], UL, 55, 65, 40, 25 button #isNum....