Search found 65 matches

by RNBW
Tue Apr 17, 2018 6:25 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83436

Re: Formatting Numeric Input

Richard and Anatoly
Thanks for your comments. Won't be able to look further until Friday afternoon. If I don't manage that it'll be another week before my wife lets me get near a computer.

Ray
by RNBW
Tue Apr 17, 2018 2:31 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83436

Re: Formatting Numeric Input

Richard Let's assume the user has entered a number (including a decimal point) but then realises the decimal point is in the wrong place. He could first delete the old decimal point and then insert a new one - presumably that would work as expected. Alternatively he could insert a new decimal point ...
by RNBW
Tue Apr 17, 2018 10:18 am
Forum: General Board
Topic: I HAVE BEEN BANNED FROM THE LB FORUM!!!
Replies: 10
Views: 21006

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

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

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

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

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 ","...
by RNBW
Mon Apr 16, 2018 3:07 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83436

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, ...
by RNBW
Mon Apr 16, 2018 2:42 pm
Forum: BASIC code examples
Topic: Formatting Numeric Input
Replies: 42
Views: 83436

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

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