Alaska Software Inc. - List & Label xor
Username: Password:
AuthorTopic: List & Label xor
Peter AlderliestenList & Label xor
on Mon, 31 Jan 2011 15:41:53 +0100
I have to  OR two settings to create a opening mode parameter for
LlProjectOpen() in List&Label for opening/creating a project file.
I have tried that with the Xbase++ xor() but as it deletes my existing
project file, it does not seem to be the right way.

Anybody done this before and can give me a hand.

Thanks,
Peter
Michael HoffmannRe: List & Label xor
on Mon, 31 Jan 2011 18:12:09 +0100
Hello Peter
you might want to use the function BOr.
Best regards
Michael




<Peter Alderliesten> wrote in message 
news:1r4iz2gcbn73z$.1rzfa70bhvm24$.dlg@40tude.net...
>
> I have to  OR two settings to create a opening mode parameter for
> LlProjectOpen() in List&Label for opening/creating a project file.
> I have tried that with the Xbase++ xor() but as it deletes my existing
> project file, it does not seem to be the right way.
>
> Anybody done this before and can give me a hand.
>
> Thanks,
> Peter
Peter AlderliestenRe: List & Label xor
on Tue, 01 Feb 2011 15:48:39 +0100
Michael,

I tried Bor() first and when that did not work I tried Xor(). Bothe these
functions don't seem to work with List&Label.

Peter

> Hello Peter
> you might want to use the function BOr.
> Best regards
> Michael
> 
> 
> 
> 
> <Peter Alderliesten> wrote in message 
> news:1r4iz2gcbn73z$.1rzfa70bhvm24$.dlg@40tude.net...
>>
>> I have to  OR two settings to create a opening mode parameter for
>> LlProjectOpen() in List&Label for opening/creating a project file.
>> I have tried that with the Xbase++ xor() but as it deletes my existing
>> project file, it does not seem to be the right way.
>>
>> Anybody done this before and can give me a hand.
>>
>> Thanks,
>> Peter
Michael HoffmannRe: List & Label xor
on Wed, 02 Feb 2011 11:28:50 +0100
Hello Peter,
do you have more infomation on the problematic parameter and the constants 
(with numeric values) to be ored?
Best regards,
Michael

<Peter Alderliesten> wrote in message 
news:156b6wpzkk7gf.1deppwrqpz8x2$.dlg@40tude.net...
> Michael,
>
> I tried Bor() first and when that did not work I tried Xor(). Bothe these
> functions don't seem to work with List&Label.
>
> Peter
>
>> Hello Peter
>> you might want to use the function BOr.
>> Best regards
>> Michael
>>
>>
>>
>>
>> <Peter Alderliesten> wrote in message
>> news:1r4iz2gcbn73z$.1rzfa70bhvm24$.dlg@40tude.net...
>>>
>>> I have to  OR two settings to create a opening mode parameter for
>>> LlProjectOpen() in List&Label for opening/creating a project file.
>>> I have tried that with the Xbase++ xor() but as it deletes my existing
>>> project file, it does not seem to be the right way.
>>>
>>> Anybody done this before and can give me a hand.
>>>
>>> Thanks,
>>> Peter
Peter AlderliestenRe: List & Label xor
on Wed, 02 Feb 2011 15:59:32 +0100
Michael,

I am trying to open a project file:
    nMode   := bor(LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE)
    nRetVal := LlProjectOpen(nJob, LL_PROJECT_LIST, cProjectFile, nMode)

Thanks,
Peter



> Hello Peter,
> do you have more infomation on the problematic parameter and the constants 
> (with numeric values) to be ored?
> Best regards,
> Michael
> 
> <Peter Alderliesten> wrote in message 
> news:156b6wpzkk7gf.1deppwrqpz8x2$.dlg@40tude.net...
>> Michael,
>>
>> I tried Bor() first and when that did not work I tried Xor(). Bothe these
>> functions don't seem to work with List&Label.
>>
>> Peter
>>
>>> Hello Peter
>>> you might want to use the function BOr.
>>> Best regards
>>> Michael
>>>
>>>
>>>
>>>
>>> <Peter Alderliesten> wrote in message
>>> news:1r4iz2gcbn73z$.1rzfa70bhvm24$.dlg@40tude.net...
>>>>
>>>> I have to  OR two settings to create a opening mode parameter for
>>>> LlProjectOpen() in List&Label for opening/creating a project file.
>>>> I have tried that with the Xbase++ xor() but as it deletes my existing
>>>> project file, it does not seem to be the right way.
>>>>
>>>> Anybody done this before and can give me a hand.
>>>>
>>>> Thanks,
>>>> Peter
Michael HoffmannRe: List & Label xor
on Wed, 02 Feb 2011 18:58:58 +0100
Hello Peter,
looks perfect. Could you add this line:

? LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE, 
bor(LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE)

and post the result.
Best regards,
Michael
Peter AlderliestenRe: List & Label xor
on Thu, 03 Feb 2011 10:43:30 +0100
Michael,

The result is:
805306368
1073741824
1879048192

from the include file:
#define LL_PRJOPEN_CD_OPEN_ALWAYS      (0x30000000)
#define LL_PRJOPEN_AM_READWRITE        (0x40000000)        

I found out that when I just use LL_PRJOPEN_AM_READWRITE the function
works, but the function call fails when I use LL_PRJOPEN_CD_OPEN_ALWAYS.

Peter


> Hello Peter,
> looks perfect. Could you add this line:
> 
> ? LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE, 
> bor(LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE)
> 
> and post the result.
> Best regards,
> Michael
Michael HoffmannRe: List & Label xor
on Thu, 03 Feb 2011 14:56:33 +0100
Hello Peter
it's an L&L bug, BOr works just fine.
Best regards,
Michael


<Peter Alderliesten> wrote in message 
news:r8se3s1cxppn.3xs7d8ynj2zp.dlg@40tude.net...
> Michael,
>
> The result is:
> 805306368
> 1073741824
> 1879048192
>
> from the include file:
> #define LL_PRJOPEN_CD_OPEN_ALWAYS      (0x30000000)
> #define LL_PRJOPEN_AM_READWRITE        (0x40000000)
>
> I found out that when I just use LL_PRJOPEN_AM_READWRITE the function
> works, but the function call fails when I use LL_PRJOPEN_CD_OPEN_ALWAYS.
>
> Peter
>
>
>> Hello Peter,
>> looks perfect. Could you add this line:
>>
>> ? LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE,
>> bor(LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE)
>>
>> and post the result.
>> Best regards,
>> Michael
Jack DuijfRe: List & Label xor
on Sat, 12 Feb 2011 17:51:30 +0100
Hello Peter,

Try this:
nMode   := LL_PRJOPEN_CD_OPEN_ALWAYS + LL_PRJOPEN_AM_READWRITE

Regards,
Jack Duijf

"Peter Alderliesten" schreef in bericht 
news:vvun6arwzzzy$.xthd3dnababf$.dlg@40tude.net...
> Michael,
>
> I am trying to open a project file:
>    nMode   := bor(LL_PRJOPEN_CD_OPEN_ALWAYS, LL_PRJOPEN_AM_READWRITE)
>    nRetVal := LlProjectOpen(nJob, LL_PROJECT_LIST, cProjectFile, nMode)
>
> Thanks,
> Peter
>
>
>
>> Hello Peter,
>> do you have more infomation on the problematic parameter and the 
>> constants
>> (with numeric values) to be ored?
>> Best regards,
>> Michael
>>
>> <Peter Alderliesten> wrote in message
>> news:156b6wpzkk7gf.1deppwrqpz8x2$.dlg@40tude.net...
>>> Michael,
>>>
>>> I tried Bor() first and when that did not work I tried Xor(). Bothe 
>>> these
>>> functions don't seem to work with List&Label.
>>>
>>> Peter
>>>
>>>> Hello Peter
>>>> you might want to use the function BOr.
>>>> Best regards
>>>> Michael
>>>>
>>>>
>>>>
>>>>
>>>> <Peter Alderliesten> wrote in message
>>>> news:1r4iz2gcbn73z$.1rzfa70bhvm24$.dlg@40tude.net...
>>>>>
>>>>> I have to  OR two settings to create a opening mode parameter for
>>>>> LlProjectOpen() in List&Label for opening/creating a project file.
>>>>> I have tried that with the Xbase++ xor() but as it deletes my existing
>>>>> project file, it does not seem to be the right way.
>>>>>
>>>>> Anybody done this before and can give me a hand.
>>>>>
>>>>> Thanks,
>>>>> Peter
Peter AlderliestenRe: List & Label xor
on Tue, 15 Feb 2011 19:30:31 +0100
Michael, Jack,

> Try this:
> nMode   := LL_PRJOPEN_CD_OPEN_ALWAYS + LL_PRJOPEN_AM_READWRITE

Sorry, I should have reported back.
I don't know if it was in my code or a problem with a wrongly created
project file, but the Bor() solution does work, as does your suggestion
Jack.

I haven't got a clue what bor() does to 2 numbers, but I do het exactly the
same result bor'ing the numbers  and  just adding both numbers.

Thanks anyway,
Peter
Barent BrouwersRe: List & Label xor
on Wed, 02 Feb 2011 12:33:42 +0100
Shouldn't that be BXOr(), or is that just a typo in your mail ?

Regards,
Frans Vermeulen

Op 01-02-2011 15:48, Peter Alderliesten schreef:
> Michael,
>
> I tried Bor() first and when that did not work I tried Xor(). Bothe these
> functions don't seem to work with List&Label.
>
> Peter
>
>> Hello Peter
>> you might want to use the function BOr.
>> Best regards
>> Michael
>>
>>
>>
>>
>> <Peter Alderliesten>  wrote in message
>> news:1r4iz2gcbn73z$.1rzfa70bhvm24$.dlg@40tude.net...
>>>
>>> I have to  OR two settings to create a opening mode parameter for
>>> LlProjectOpen() in List&Label for opening/creating a project file.
>>> I have tried that with the Xbase++ xor() but as it deletes my existing
>>> project file, it does not seem to be the right way.
>>>
>>> Anybody done this before and can give me a hand.
>>>
>>> Thanks,
>>> Peter
Peter AlderliestenRe: List & Label xor
on Wed, 02 Feb 2011 15:54:22 +0100
Frans,

> Shouldn't that be BXOr(), or is that just a typo in your mail ?

Indeed, that's a typo.
I would have got an Xbase++ error trying xor()  as is.

Peter