Search found 53 matches

by RNBW
Tue Apr 17, 2018 10:18 am
Forum: General Board
Topic: I HAVE BEEN BANNED FROM THE LB FORUM!!!
Replies: 10
Views: 11073

Re: I HAVE BEEN BANNED FROM THE LB FORUM!!!

Richard Obviously, I cannot now access the LB ProBoards forum, but I have looked at the rules on LB's Just Basic ProBoards forum and I've no reason to believe that LB's rules are any different. The Rules state: Other programming languages may not be promoted here and there should be no in-depth disc...
by RNBW
Mon Apr 16, 2018 9:28 pm
Forum: General Board
Topic: I HAVE BEEN BANNED FROM THE LB FORUM!!!
Replies: 10
Views: 11073

Re: I HAVE BEEN BANNED FROM THE LB FORUM!!!

tsh73 Thanks for responding. Before I say any more my comments are not aimed at yourself. I have always found you to be fair and helpful. I have never EVER received a PM from admins. The first time I had any adverse comment was when I asked what I thought was a reasonable question in respect of what...
by RNBW
Mon Apr 16, 2018 6:58 pm
Forum: General Board
Topic: I HAVE BEEN BANNED FROM THE LB FORUM!!!
Replies: 10
Views: 11073

I HAVE BEEN BANNED FROM THE LB FORUM!!!

I have been banned from the LB Forum. I just tried to access the forum and was met by the message: You have been banned from this forum I posted some code yesterday on both the LBB and LB forums, exactly the same except for stating that the code was compatible with LB or LBB, depending on the forum,...
by RNBW
Mon Apr 16, 2018 5:20 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

Richard The input is capable of being edited, but there is the drawback of going back and inserting a decimal point before the of already entered, with the effect described. I think it is fair to say that if you did this, you would need to change the input after the decimal point anyway. Other aspec...
by RNBW
Mon Apr 16, 2018 4:11 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

Hi tsh73 You're right, a = 8 is the equivalent of a$ = chr$(8), which is indeed a backspace that overwrites the offending digit and allows you to carry on with your input. I must be backspace, because anything else would be entered as you input it. The code doesn't allow the input of a "," With the ...
by RNBW
Mon Apr 16, 2018 3:07 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

You've just beaten me to it. I've realised that the second line should go too. I've edited the code so, hopefully, that should be it. Again, thank you for picking up the problem. The reason for the superfluous lines is that I did the code for checking for double "." first and then copied, pasted and...
by RNBW
Mon Apr 16, 2018 2:42 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

Hi Richard. It wa slate when I was writing the code. There is of course a superfluous line which I left in, which resulted in a double check on more than one "-".

I have edited the code and removed the unnecessary line, leaving a blank line in its place.

Thank you for spotting it.
by RNBW
Sun Apr 15, 2018 10:30 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

Re: Formatting Numeric Input

It's quite late, but here is a snippet of code to produce filtered numeric entry into a textbox. It prevents double entry of "-" and "." and ensures "-" can only be entered as the first character. It does not address the issue of the final character being "." and whether a zero(s) should automatical...
by RNBW
Sat Apr 14, 2018 4:03 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 31765

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

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