Search found 4769 matches

by rdonnay
Fri Jul 09, 2010 2:32 pm
Forum: eXpress++ Support
Topic: Soap Envelopes Revisited
Replies: 1
Views: 5978

Re: Soap Envelopes Revisited

This looks like a problem inside Xb2net and should be forwarded to Boris Borsic on the Xb2net forum.

http://xb2.net.
by rdonnay
Fri Jul 09, 2010 12:42 pm
Forum: eXpress++ Support
Topic: Creating logfile
Replies: 8
Views: 31606

Re: Creating logfile

I modified one of my sample programs to also write out Menu and Button activations to a log file. Unzip the following file to your \exp19\samples\menu directory. Pbuild MSGBOX.XPJ Run MSGBOX.EXE and select the File -> Open Test Window. A file name EVENTS.LOG will be created and any button pushed or ...
by rdonnay
Wed Jul 07, 2010 9:01 am
Forum: eXpress++ Support
Topic: Creating logfile
Replies: 8
Views: 31606

Re: Creating logfile

Chris - This is what DC_ReadGuiHandler() is for. Below is some code from \exp19\samples\xdemo\xdemo.prg. A global handler works in all threads, so it is the first thing called whenever any event occurs. In the below sample, it is used to invoke the context help system and also to provide print scree...
by rdonnay
Wed Jul 07, 2010 8:48 am
Forum: User Contributions
Topic: Get Server's Time() and Date()
Replies: 1
Views: 7941

Re: Get Server's Time() and Date()

Thanks Gene.

We all appreciate user contributions like this.
by rdonnay
Wed Jul 07, 2010 7:44 am
Forum: Xbase++ Support
Topic: Need Permutation Algorithm
Replies: 9
Views: 17374

Re: Need Permutation Algorithm

Paul -

You are right.
Your algorithm is about 7 times faster.

Thank you.

Roger
by rdonnay
Tue Jul 06, 2010 4:44 pm
Forum: Xbase++ Support
Topic: Need Permutation Algorithm
Replies: 9
Views: 17374

Re: Need Permutation Algorithm

Chris - Your code works excellently. It is much simpler and easier to follow than any of the permutation code I found on the internet written in C, C++, C#, Python, Perl or PHP. That's why I love Xbase++. I made a few small mods to the code to make it run a little faster. It now runs about 2x faster...
by rdonnay
Tue Jul 06, 2010 4:38 pm
Forum: Xbase++ Support
Topic: Need Permutation Algorithm
Replies: 9
Views: 17374

Re: Need Permutation Algorithm

Gene -

I will give your code a try.
I tried Chris' code first and it works very good and fast.
I will try yours too.

Thanks.

Roger
by rdonnay
Tue Jul 06, 2010 9:46 am
Forum: Xbase++ Support
Topic: Need Permutation Algorithm
Replies: 9
Views: 17374

Re: Need Permutation Algorithm

Chris -

Thanks. I'll give it a try.

Roger
by rdonnay
Tue Jul 06, 2010 7:14 am
Forum: Xbase++ Support
Topic: Need Permutation Algorithm
Replies: 9
Views: 17374

Re: Need Permutation Algorithm

Gene - My goal for this project is to handle permutations of 7 letters. I only showed 3 letters for simplicity. The algorithm must be recursive and fast. I already wrote a few algorithms to handle 3 or 4 letters but that was not practical. I am trying to understand the PHP code so I can convert it t...
by rdonnay
Mon Jul 05, 2010 6:38 pm
Forum: Xbase++ Support
Topic: Need Permutation Algorithm
Replies: 9
Views: 17374

Need Permutation Algorithm

I am trying to create code that returns an array of all permutations of a letter combination in a string. For example, if I have the string 'ABC', it would return the following array: { 'ABC','ACB','BCA','BAC','CAB','CBA' } I found some PHP code that does this, but I don't understand the FOREACH loo...