Hi wilbert,
thank´s a lot for your help. I have tried to use map. It works well but it seems that comparememory is faster then using maps. Therefore I try to change the code.
Martin
Search found 46 matches
- Sun May 05, 2013 11:17 am
- Forum: Coding Questions
- Topic: Compare Strings stored in to different allocated memory
- Replies: 4
- Views: 1054
- Sat May 04, 2013 9:04 pm
- Forum: Coding Questions
- Topic: Compare Strings stored in to different allocated memory
- Replies: 4
- Views: 1054
Re: Compare Strings stored in to different allocated memory
Thank you very much for your help buddymatkona!
And sorry for asking almost the same question again.
Now I have a testcode to write string in an allocated memory and some other strings an an other allocated memory. In order provide the string length of individual string I use an auxillary array a ...
And sorry for asking almost the same question again.
Now I have a testcode to write string in an allocated memory and some other strings an an other allocated memory. In order provide the string length of individual string I use an auxillary array a ...
- Thu May 02, 2013 9:58 pm
- Forum: Coding Questions
- Topic: Compare Strings stored in to different allocated memory
- Replies: 4
- Views: 1054
Compare Strings stored in to different allocated memory
Goog evening!
Sorry for question which is quite similar to my other.
I stored in 2 different allocated memory sections some strings. Now I would like to find which string in BufferSting2 is also in BufferString1.
I have no idea to do this. Please could you help me!
Thank you very much in ...
Sorry for question which is quite similar to my other.
I stored in 2 different allocated memory sections some strings. Now I would like to find which string in BufferSting2 is also in BufferString1.
I have no idea to do this. Please could you help me!
Thank you very much in ...
- Thu May 02, 2013 8:14 am
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Re: Compare String
Hi idle,
Thank you very much for your help. Before I try to change the code completely I would try to use the funktion "CompareMemoryStrin(.....) but I do not know to use it. Please could you help me to modify the posted code.
Thank you very much for any help in advance.
Thank you very much for your help. Before I try to change the code completely I would try to use the funktion "CompareMemoryStrin(.....) but I do not know to use it. Please could you help me to modify the posted code.
Thank you very much for any help in advance.
- Wed May 01, 2013 9:16 pm
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Re: Compare String
Hi again,
in following code I use FindMapElement(....) to find the corresponding strings
but I like to use "comparememorystring" in the relevant loops. I do not know to change the code taht it works using "comparememorystring". Please could you helb me.
Thank you very much in advance
ewList ...
in following code I use FindMapElement(....) to find the corresponding strings
but I like to use "comparememorystring" in the relevant loops. I do not know to change the code taht it works using "comparememorystring". Please could you helb me.
Thank you very much in advance
ewList ...
- Wed May 01, 2013 1:49 pm
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Re: Compare String
Hi,
thank you very much for your help and sorry for my late answer. But a had not time yesterday.
I have tried your proposal but they are not faster or I do not integrate the code not correctly in my code and therefore the proposal wasn´t faster. I suppose that the integration in my code (I have ...
thank you very much for your help and sorry for my late answer. But a had not time yesterday.
I have tried your proposal but they are not faster or I do not integrate the code not correctly in my code and therefore the proposal wasn´t faster. I suppose that the integration in my code (I have ...
- Mon Apr 29, 2013 10:43 pm
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Re: Compare String
Thanks a lot for the example.
Do you have an other example using CompareMemoryString.
I do not know if the following lines are ok!
Dim Array1 (20000)
Dim Array2 (20000)
Dim Array3 (20000)
j = 0
For i = 1 to LastElement Array1
*String1 = @Array(i)
For j = 1 to LastElement Array2
*String2 ...
Do you have an other example using CompareMemoryString.
I do not know if the following lines are ok!
Dim Array1 (20000)
Dim Array2 (20000)
Dim Array3 (20000)
j = 0
For i = 1 to LastElement Array1
*String1 = @Array(i)
For j = 1 to LastElement Array2
*String2 ...
- Mon Apr 29, 2013 9:32 pm
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Re: Compare String
Yes you are right. I have forgotten to mentioned that.
- Mon Apr 29, 2013 9:29 pm
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Re: Compare String
Thank you very much for your help.
First of all: I am a beginner and am I not familar with
Ergebnis = CompareMemoryString(*String1, *String2 [, Modus [, Länge [, Flags]]])
Right now I have two list
ReadFile(1,FileName1$)
While Eof(1)=0
Zeile.s=ReadString(1)
AddElement(Liste2())
Liste1 ...
First of all: I am a beginner and am I not familar with
Ergebnis = CompareMemoryString(*String1, *String2 [, Modus [, Länge [, Flags]]])
Right now I have two list
ReadFile(1,FileName1$)
While Eof(1)=0
Zeile.s=ReadString(1)
AddElement(Liste2())
Liste1 ...
- Mon Apr 29, 2013 8:05 pm
- Forum: Coding Questions
- Topic: Compare String
- Replies: 17
- Views: 2933
Compare String
Hi,
I am looking for a procedure to compare strings very, very fast.
example:
I have to lists.
List 1: 100000 Stings (each string has about 140 different characters)
List 2= 100100 Strings (each string has about 140 different characters)
Some strings are different between List 1 and List 2 (i.g ...
I am looking for a procedure to compare strings very, very fast.
example:
I have to lists.
List 1: 100000 Stings (each string has about 140 different characters)
List 2= 100100 Strings (each string has about 140 different characters)
Some strings are different between List 1 and List 2 (i.g ...
- Wed Aug 08, 2007 9:16 am
- Forum: Coding Questions
- Topic: keyboard
- Replies: 1
- Views: 908
keyboard
Hi and good morning!
By using following simple code it is possible to check if a key (e.g. "A") was pressed. But it worked only if the program is running in "foreground" (active window).
May question is: Is it possible to modify the code that pressing a key (e.g. A) change to a specified window ...
By using following simple code it is possible to check if a key (e.g. "A") was pressed. But it worked only if the program is running in "foreground" (active window).
May question is: Is it possible to modify the code that pressing a key (e.g. A) change to a specified window ...
- Fri Dec 01, 2006 12:53 pm
- Forum: Coding Questions
- Topic: how do I chande one bit in variable
- Replies: 9
- Views: 1931
- Fri Dec 01, 2006 11:09 am
- Forum: Coding Questions
- Topic: how do I chande one bit in variable
- Replies: 9
- Views: 1931
how do I chande one bit in variable
Hi to all PB-user!
In my program I have to change one bit in a register. For example
Var_a.b = %10001010:
I like to change bit number 3 of Var_a depending on an third bit of other byte by using the funktions or, and, xor, not ....
thanks a lotI in advance;
Martin
In my program I have to change one bit in a register. For example
Var_a.b = %10001010:
I like to change bit number 3 of Var_a depending on an third bit of other byte by using the funktions or, and, xor, not ....
thanks a lotI in advance;
Martin
- Wed Nov 29, 2006 10:43 am
- Forum: Coding Questions
- Topic: CheckBoxGadget BackColor
- Replies: 10
- Views: 5505
- Wed Nov 29, 2006 9:45 am
- Forum: Coding Questions
- Topic: CheckBoxGadget BackColor
- Replies: 10
- Views: 5505