Search found 1235 matches

by jj2007
Dec 06, 2019 11:22
Forum: General
Topic: (Solved) How to sort datasheet (x-dim array) by a few columns (at once in 1 loop) ?
Replies: 23
Views: 794

Re: How to sort datasheet (x-dim array) by a few columns (at once in 1 loop) ?

I switched back to my 'class' version, with some changes. Works like a charm! In case somebody wants to test stable string sorts, here is a tab-delimited demo file with 1000 lines . Example, sorted first by City (Belyando, ...), then by First name (Aaron, ...): Aaliyah 2716 Simpson Street Belyando ...
by jj2007
Nov 30, 2019 10:49
Forum: General
Topic: (Solved) How to sort datasheet (x-dim array) by a few columns (at once in 1 loop) ?
Replies: 23
Views: 794

Re: How to sort datasheet (x-dim array) by a few columns ?

If you use a udt array holding the information then quicksort would do. You must set each sort, give it a name, direction and field OP wants to sort a spreadsheet first by column C, then by column A, then by column B, etc., as does Excel. I am afraid QuickSort is not the right one for that task - y...
by jj2007
Nov 22, 2019 0:05
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 93778

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 17, 2019)

dodicat wrote:The same rule applies to ShellExecuteExW and wide strings, although the return value of ShellExecuteExW seems to be 1 even with a compile fail.
Interesting. I was about to write "the return value must be greater than 32", but ShellExecuteExW behaves much different than ShellExecuteW.
by jj2007
Nov 08, 2019 13:57
Forum: Beginners
Topic: Why UBound doesnt take into account 0 reporting array size?
Replies: 6
Views: 246

Re: Why UBound doesnt take into account 0 reporting array size?

dim array1(10) As integer print "LB=";LBound(array1) print "UB=";UBound(array1) dim array2(5 to 10) As integer print "LB=";LBound(array2) print "UB=";UBound(array2) LB= 0 UB= 10 LB= 5 UB= 10 So far, so good - but I vaguely remember to have read that FB arrays...
by jj2007
Nov 07, 2019 7:03
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 93778

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 2, 2019)

It won't fix any problems you may have but you're leaking the handle to the read end of the pipe. The write end is closed, but not the read. The MSDN example the code is based off has the same error so you translated it too perfectly :-) Good find! Is there any correct example around? I have simila...
by jj2007
Nov 06, 2019 14:19
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 93778

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 2, 2019)

I have no problems with command lines longer than 260 chars. But saving or renaming a file with a path longer than 260 chars fails with Explorer (manually) and using CreateFileW programmatically. Below 260, the prepending is not required. Above that, it doesn't help. Pretty confusing.
by jj2007
Nov 06, 2019 11:28
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 93778

Re: WinFBE FreeBASIC Editor for Windows (Updated August 23, 2017)

marcov wrote:source seems to be encoded in some way, won't open with notepad. (despite having an .asc extension)
Wordpad will do, but that won't help you because the fun stuff is under the hood. Fact is you don't have to prepend the \\?\ stuff, CreateProcessW works fine with a plain UTF-16 path.
by jj2007
Nov 06, 2019 7:56
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 93778

Re: WinFBE FreeBASIC Editor for Windows (Updated August 23, 2017)

i did a quick count and the path length including filename is ~271 - doesnt windows have a limit around 260 chars? I count 268 but yes, there is a 260 char limit for the ANSI CreateProcess (and all other ANSI API calls using a path). The solutions are: - shorten your paths or - use CreateProcess W ...
by jj2007
Nov 01, 2019 21:57
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2287

Re: Unable to access fb.net forums

I am more disturbed by the not-so-deliberate incorrect use of commas ;-)

I got a new one, two minutes ago (now at jj+MrSwiss+2 guests):
Image
by jj2007
Oct 31, 2019 14:56
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2287

Re: Unable to access fb.net forums

About an hour ago, the forum was offline again - timeout. Now it's only 2 guests. Our hacker is enjoying this game ;-)
by jj2007
Oct 31, 2019 9:42
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2287

Re: Unable to access fb.net forums

Lost Zergling wrote:@ jj2007: I invite you to share directly with coderJeff your suggestions rather than go through the forum
Which suggestions? Your post doesn't make sense.
by jj2007
Oct 31, 2019 7:33
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2287

Re: Unable to access fb.net forums

I wonder if it's position-dependent: jj2007 and 1 guest
by jj2007
Oct 31, 2019 3:45
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2287

Re: Unable to access fb.net forums

deltarho[1859] wrote:Hell, we could do with some young blood, assuming I got that right.
He listened to you, apparently: Users browsing this forum: jj2007 and 1 guest
by jj2007
Oct 30, 2019 11:04
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 2287

Re: Unable to access fb.net forums

No registered users and 35 guests
Hey, I am a registered user!!!
by jj2007
Oct 30, 2019 11:02
Forum: General
Topic: Is possible to get rid of the entire GCC thing?
Replies: 3
Views: 217

Re: Is possible to get rid of the entire GCC thing?

I perfectly understand your thoughts. It would indeed be a good idea to reduce the confusion, and concentrate on one installation that really works. The question is: which one? C compilers tend to be big behemoths nowadays. Should we pick one that is relatively small, but is very slow? Or the other ...

Go to advanced search