Search found 65 matches

by RNBW
Sat Apr 14, 2018 4:03 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83608

Re: Formatting Numeric Input

Richard
Thanks for reminding me. I'd forgotten that LBB has a 'proper' using() function. I was going to look for a work-around.
Ray
by RNBW
Sat Apr 14, 2018 1:27 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83608

Re: Formatting Numeric Input

tsh73 Ultimately, I would be looking to solve such issues by providing a final output with using(). This would enable the user to have as many characters after the decimal point as required. Leading zeros could be removed by using trim$. Although, in the subject matter that I would be using it, it i...
by RNBW
Sat Apr 14, 2018 9:27 am
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83608

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: 83608

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: 83608

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: 83608

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: 83608

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: 83608

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: 9734

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: 9108

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...