>>'must be ODD !
LOL
Thanks.
Search found 44 matches
- Sat Jun 09, 2018 7:14 pm
- Forum: BASIC code examples
- Topic: Some benchmarking about swapping two variables
- Replies: 2
- Views: 9158
- Thu May 17, 2018 10:01 pm
- Forum: BASIC code examples
- Topic: Formatting Numeric Input
- Replies: 42
- Views: 84737
Re: Formatting Numeric Input
Just to say, it does about everything I would ask. Here I rewrote it without using ASCII codes (same number of lines really, but now I see "-" and "." in code ;) ) (Oh. And it uses GOTO as CONTINUE statement ;) ) function num$(d$) t = 0 for i=1 to len(d$) a$=mid$(d$,i,1) if a$=&q...
- Tue Apr 17, 2018 4:49 pm
- Forum: BASIC code examples
- Topic: Formatting Numeric Input
- Replies: 42
- Views: 84737
Re: Formatting Numeric Input
I'm afraid that couldn't be done quite right. Do we have caret position (insertion point)? If not, how program could tell which dot is old and which new? Without that we only could remove one dot - first or last positionally, arbitrary choice to be made And insertion point will move to the end of cu...
- Mon Apr 16, 2018 9:08 pm
- Forum: General Board
- Topic: I HAVE BEEN BANNED FROM THE LB FORUM!!!
- Replies: 10
- Views: 21143
Re: I HAVE BEEN BANNED FROM THE LB FORUM!!!
There are members of the LBB forum who are moderators on the LB Forum. Perhaps they would like to explain why I have been banned. (Here my view what happened, may be not 100% accurate, not official statement anyway) Current policy - more or less - is that mentioning LBB is prohibited. You have been...
- Mon Apr 16, 2018 3:09 pm
- Forum: BASIC code examples
- Topic: Formatting Numeric Input
- Replies: 42
- Views: 84737
Re: Formatting Numeric Input
I'm still puzzled by this code. What does "a=8" do? Just clears that code, in effect removing character? So almost anything besides 8 will do? (last line in effect allows only ".","-" and digits - so using anything else instead of 8 will do the same) Now, t1 is not used...
- Sat Apr 14, 2018 10:52 am
- Forum: BASIC code examples
- Topic: Formatting Numeric Input
- Replies: 42
- Views: 84737
Re: Formatting Numeric Input
about leading '0' and trailing '.'
I think it makes sense to fix on leaving the cell.
I don't know how this event could be hooked - but at least there is a way to check if cell has focus or not.
So if it doesn't have focus you can do extra check and change say '0025.' to '25' or '25.0'.
I think it makes sense to fix on leaving the cell.
I don't know how this event could be hooked - but at least there is a way to check if cell has focus or not.
So if it doesn't have focus you can do extra check and change say '0025.' to '25' or '25.0'.
- Fri Apr 13, 2018 7:34 pm
- Forum: BASIC code examples
- Topic: Formatting Numeric Input
- Replies: 42
- Views: 84737
Re: Formatting Numeric Input
I would say code is surprisingly small comparing to that it does.
Nice work.
Nice work.
- Fri Apr 13, 2018 6:39 pm
- Forum: Compatibility with LB4
- Topic: Difference in WAIT when in a function
- Replies: 1
- Views: 8584
Difference in WAIT when in a function
Trying to debug code from Formatting Numeric Input thread, I found that program in LB breaks after handling first event while in LBB it works OK. The problem code was function with WAIT inside Here's the code I came up with. My guess that in JB/LB after WAIT program waits on the spot it happened. Th...
- Thu Apr 12, 2018 9:23 pm
- Forum: BASIC code examples
- Topic: Formatting Numeric Input
- Replies: 42
- Views: 84737
Re: Formatting Numeric Input
Hello RNBW I would say your code shows that could be done - and it's a good thing But it really could be worked on to be used. Taking last code: * it checks numbers twice. Why it uses FOR by row? * 2e3 barks as invalid, but then converts to 2000 as should be * 2a3 barks as invalid but converts to 2 ...
- Thu Apr 12, 2018 6:35 pm
- Forum: Suggestion Box
- Topic: Can number of views be shown?
- Replies: 3
- Views: 9837
Re: Can number of views be shown?
Interesting but I see number of views.
Here I copy info about this thread: (I expect it to be more table like but anyway):
Here I copy info about this thread: (I expect it to be more table like but anyway):
Can number of views be shown?
by RNBW » Thu Apr 12, 2018 7:40 pm
1 Replies
4 Views
Last post
by admin
Thu Apr 12, 2018 9:01 pm