Re: Storing a long value in an int [correction]

2005-11-09 Thread radhika

> Hi,
> I need to set this flag = 0x001
> My code is as follows:
>
> $flag = OBJ::HALT(0x001);
> print("setting flag $flag\n");
> produces: 65536
> But when I say $quote-SetFlag($flag);
> The flag is being set to 0;
>
> I see that the number I am trying to set is 65536.
> Is there a way I can make $flag a long int to store 65536 ?
>
> Thanks,
> Radhika
>
>
> --
> It is all a matter of perspective. You choose your view by choosing where
> to stand.
> Larry Wall
> ---
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>  
>
>
>


-- 
It is all a matter of perspective. You choose your view by choosing where
to stand.
Larry Wall
---

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Storing a long value in an int [correction]

2005-11-09 Thread Bob Showalter

radhika wrote:

Hi,
I need to set this flag = 0x001
My code is as follows:

$flag = OBJ::HALT(0x001);
print("setting flag $flag\n");
produces: 65536
But when I say $quote-SetFlag($flag);
The flag is being set to 0;


Is that a method call?

   $quote->SetFlag($flag)

I don't know what SetFlag() is or what it's doing (or what OBJ::HALT is 
for that matter), so you need to provide some more information. 
SetFlag() could be doing anything with $flag.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Storing a long value in an int [correction]

2005-11-09 Thread radhika
The problem was actually in our code - SetFlags().
SetFlags(unsigned short flags) which was causing the problem.
I changed that to a long, and it works.
Sorry for the rather un-informative description. I will try to ask better
questions next time.

Thanks,
-radhika

> radhika wrote:
>>>Hi,
>>>I need to set this flag = 0x001
>>>My code is as follows:
>>>
>>>$flag = OBJ::HALT(0x001);
>>>print("setting flag $flag\n");
>>>produces: 65536
>>>But when I say $quote-SetFlag($flag);
>>>The flag is being set to 0;
>
> Is that a method call?
>
> $quote->SetFlag($flag)
>
> I don't know what SetFlag() is or what it's doing (or what OBJ::HALT is
> for that matter), so you need to provide some more information.
> SetFlag() could be doing anything with $flag.
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>  
>
>
>


-- 
It is all a matter of perspective. You choose your view by choosing where
to stand.
Larry Wall
---

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]