Search found 1023 matches

by jevans4949
Jan 30, 2017 17:08
Forum: Community Discussion
Topic: Best Programming Language
Replies: 34
Views: 6327

Best Programming Language

This topic (from Kot, AFAIR) got lost in the move.

I have added Freebasic to the list, in case anybody wants to upvote it.

https://www.slant.co/topics/25/~best-programming-language-to-learn-first
by jevans4949
Nov 27, 2016 13:46
Forum: Community Discussion
Topic: Another robot idea
Replies: 3
Views: 857

Re: Another robot idea

Fantastic, and proabaly easier to program. I like the step-climbing.
They need to get it to go round corners, though.
by jevans4949
Oct 25, 2016 21:17
Forum: Beginners
Topic: Open Random file the EOF :Solved
Replies: 19
Views: 2253

Re: Open Random file the EOF

Have you seen the LOF function?
by jevans4949
Sep 01, 2016 0:52
Forum: General
Topic: Memory vs. Amount of Data
Replies: 9
Views: 1068

Re: Memory vs. Amount of Data

You can start your loop with For n AS INTEGER = 1 to 20 and the program will set up a new instantiation of n within the scope of the loop. Otherwise it uses the previously declared variable n and runs the loop. This is more useful if you are searching an array, e.g. for n= 1 to 20 if input_key = tab...
by jevans4949
Aug 28, 2016 13:50
Forum: General
Topic: Memory vs. Amount of Data
Replies: 9
Views: 1068

Re: Memory vs. Amount of Data

As far as I remember, you should by default get a megabyte of dynamic memory to play with, so unless your data records are enormous it's probably some other bug. Suggest you examine the last record processed against your code, and maybe put in a few print and sleep statements to check how far you ge...
by jevans4949
Aug 01, 2016 20:40
Forum: Community Discussion
Topic: I wish a big bundle
Replies: 37
Views: 5675

Re: I wish a big bundle

Can't remember where it came from but there was a cartoon witsh two techies talking; in the first 2 frames the conversation was "There are 14 different IDEs out there ... what we need is a new, more powerful one." The last picture showed them much later, saying "There are 15 differen...
by jevans4949
Aug 01, 2016 17:03
Forum: Community Discussion
Topic: I wish a big bundle
Replies: 37
Views: 5675

Re: I wish a big bundle

Can't remember where it came from but there was a cartoon witsh two techies talking; in the first 2 frames the conversation was "There are 14 different IDEs out there ... what we need is a new, more powerful one." The last picture showed them much later, saying "There are 15 different...
by jevans4949
Jul 29, 2016 21:43
Forum: Documentation
Topic: STRPTR returning zero
Replies: 37
Views: 4860

Re: STRPTR returning zero

To the OP, why are you using strptr anyway? Scanning text, in this case trying to separate an apartment number from the name of the block. Define a union of zstring ptr and ubyte ptr, then use the ubyte ptr to check for a string of numerics - asc("0") thru asc("9"). It's quicker...
by jevans4949
Jul 28, 2016 15:05
Forum: Documentation
Topic: STRPTR returning zero
Replies: 37
Views: 4860

Re: STRPTR returning zero

This is a general rule when a dynamic structure is resized (the data address may change). Examples: - var-len string 's' => 'Strptr(s)' may change after string modification, - dynamic array 'a()' => '@a(n)' may change after array redim'ing, - allocate memory => address may change after memory reall...
by jevans4949
Jul 28, 2016 11:09
Forum: Documentation
Topic: STRPTR returning zero
Replies: 37
Views: 4860

Re: STRPTR returning zero

Thanks, fxm. I suppose it could be amplified to a paragraph: "In the case of a variable-length string which is currently empty of data, STRPTR returns a value of zero. If new data is assigned to the variable-length string in question, any previously-returned result of STRPTR should be considere...
by jevans4949
Jul 27, 2016 20:42
Forum: Documentation
Topic: STRPTR returning zero
Replies: 37
Views: 4860

STRPTR returning zero

Never bothered me before, but today I was using the STRPTR function to scan data read into strings from a CSV file where some of the columns were null. The STRPTR function on the string(s) in question returned zero, causing my hastily-written program to crash. It's not unreasonable that STRPTR shoul...
by jevans4949
Jul 22, 2016 22:05
Forum: General
Topic: Question about a question mark??
Replies: 7
Views: 796

Re: Question about a question mark??

It was a very useful abbreviation when debugging your early attempts a programming in Basic.

Back when I started in the late 1960's, we used hard-copy teletypes, and Print really did mean print!
by jevans4949
Jun 13, 2016 11:48
Forum: Beginners
Topic: prepend not append
Replies: 14
Views: 1068

Re: prepend not append

Write the file as a .CSV (See WRITE statement), with timestamp as first column and your print message as a single text string in the second column. Open up in a spreadsheet program, and sort in descending time order. Time includes date, of course.
by jevans4949
Apr 21, 2016 1:16
Forum: General
Topic: What are the pitfalls of using ASM for speed improvements?
Replies: 23
Views: 1378

Re: What are the pitfalls of using ASM for speed improvements?

To save re-calculating the array index, you could set a pointer to the relevant array element at the start of each iteration of your loop If you just want to step through 2 million pixels and row and column are irrelevant, you could just increment the pointer by 1 at each iteration, stopping when th...
by jevans4949
Apr 06, 2016 19:37
Forum: General
Topic: How can I close this file (and only this one)?
Replies: 18
Views: 1303

Re: How can I close this file (and only this one)?

@Tourist Trap: Is there a reason you can't use a global variable to store the file number you used?

If it's the case that your program is going to be opening files in an unpredictable way, there are a number of ways of dealing with this. Perhaps you could clarify?

Go to advanced search