Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

PB12 Bitwise

3 posts in Powerscript Last posting was on 2010-05-24 00:42:16.0Z
mason Posted on 2010-05-23 15:31:44.0Z
From: "mason" <forums.sybase.com>
Newsgroups: sybase.public.powerbuilder.powerscript
Subject: PB12 Bitwise
Lines: 2
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8064.206
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8064.206
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4bf94a60$1@forums-1-dub>
Date: 23 May 2010 08:31:44 -0700
X-Trace: forums-1-dub 1274628704 10.22.241.152 (23 May 2010 08:31:44 -0700)
X-Original-Trace: 23 May 2010 08:31:44 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27381
Article PK: 793727

I thought I saw someone said PB12 would introduce bitwise operators.
Unfortunately, according to the documentation, that's for PB12.Net only. Is
there a PBNI example to do bitwise for PB12 Classic? I haven't used PBNI
before, how is its performance comparing to a regular C DLL? I have to deal
with binary files in several apps. Thanks.


Chris Pollach Posted on 2010-05-24 00:25:07.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.powerscript
References: <4bf94a60$1@forums-1-dub>
In-Reply-To: <4bf94a60$1@forums-1-dub>
Subject: Re: PB12 Bitwise
Lines: 2
Organization: STD Inc.
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4bf9c763$1@forums-1-dub>
Date: 23 May 2010 17:25:07 -0700
X-Trace: forums-1-dub 1274660707 10.22.241.152 (23 May 2010 17:25:07 -0700)
X-Original-Trace: 23 May 2010 17:25:07 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27382
Article PK: 793728

Hi Mason;

Yes, you need to use 12.NET for the new bitwise functionality.

FYI: I have had the bitwise functionality written in native PowerScript for
many releases. You can find the bitwise functions included with my STD
Foundation Classes for EAServer, PocketBuilder and PowerBuilder. They are
free and located on SourceForge:
http://sourceforge.net/projects/stdfndclass

Feel free to extract the bitwise logic or use the framework.

HTH

--

Regards ... Chris
President: STD Inc.
ISUG - Communications Director
http://chrispollach.pbdjmagazine.com

"mason" <forums.sybase.com> wrote in message news:4bf94a60$1@forums-1-dub...
> I thought I saw someone said PB12 would introduce bitwise operators.
> Unfortunately, according to the documentation, that's for PB12.Net only.
> Is there a PBNI example to do bitwise for PB12 Classic? I haven't used
> PBNI before, how is its performance comparing to a regular C DLL? I have
> to deal with binary files in several apps. Thanks.


mason Posted on 2010-05-24 00:42:16.0Z
From: "mason" <forums.sybase.com>
Newsgroups: sybase.public.powerbuilder.powerscript
References: <4bf94a60$1@forums-1-dub> <4bf9c763$1@forums-1-dub>
In-Reply-To: <4bf9c763$1@forums-1-dub>
Subject: Re: PB12 Bitwise
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8064.206
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8064.206
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4bf9cb68$1@forums-1-dub>
Date: 23 May 2010 17:42:16 -0700
X-Trace: forums-1-dub 1274661736 10.22.241.152 (23 May 2010 17:42:16 -0700)
X-Original-Trace: 23 May 2010 17:42:16 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27383
Article PK: 793725

Thanks, Chris.

I did it in PB as well, but later replaced it with a DLL due to performance
(way too significant for a CRC calculation). Tried Winform app earlier
today, the bitwise operators (and, xor, etc.) seems to work in a simple #if
block. Will investigate more. Now back to Lost.

"Chris Pollach" <cpollach@travel-net.com> wrote in message
news:4bf9c763$1@forums-1-dub...
> Hi Mason;
>
> Yes, you need to use 12.NET for the new bitwise functionality.
>
> FYI: I have had the bitwise functionality written in native PowerScript
> for many releases. You can find the bitwise functions included with my STD
> Foundation Classes for EAServer, PocketBuilder and PowerBuilder. They are
> free and located on SourceForge:
> http://sourceforge.net/projects/stdfndclass
>
> Feel free to extract the bitwise logic or use the framework.
>
> HTH
>
> --
>
> Regards ... Chris
> President: STD Inc.
> ISUG - Communications Director
> http://chrispollach.pbdjmagazine.com
>
>
>
>
> "mason" <forums.sybase.com> wrote in message
> news:4bf94a60$1@forums-1-dub...
>> I thought I saw someone said PB12 would introduce bitwise operators.
>> Unfortunately, according to the documentation, that's for PB12.Net only.
>> Is there a PBNI example to do bitwise for PB12 Classic? I haven't used
>> PBNI before, how is its performance comparing to a regular C DLL? I have
>> to deal with binary files in several apps. Thanks.
>