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.

Structure to Blob

4 posts in Objects Last posting was on 2002-11-22 14:40:39.0Z
Pablo_DC Posted on 2002-10-01 13:07:54.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Pablo_DC
Date: Tue, 1 Oct 2002 09:07:54 -0400
Subject: Structure to Blob
Lines: 5
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:885
Article PK: 713452

how convert a structure to blob?
previously, I try with BlobEdit,
but haven't reul...

Thanks in advance.


Paul B Posted on 2002-10-29 16:58:01.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Paul B" <Pawel.Bodnar@atena.pl>
Subject: Re: Structure to Blob
Date: Tue, 29 Oct 2002 17:58:01 +0100
Lines: 31
Organization: Atena
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: hades.atena.pl 212.160.158.13
Message-ID: <364_oGHLn32fCHA.296@forums.sybase.com>
References: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:832
Article PK: 713404

here is another solution
Subroutine MoveMemoryByte(ref blob pblb_dst , ref your_structure
pstr_source, ulong lLenght ) library "kernel32.dll" alias for RtlMoveMemory

And the code in PowerBuilder:
your_structure lo_str
Blob lblb_data
ulong ll_size

//you have to know size of your structure (I hope you
don't use any object types ), just count attributes size in bytes.
ll_size = //size of your structure in bytes
lblb_data = blob( fill(' ' , ll_size ) )
MoveMemoryByte ( lblb_data , lo_str , ll_size )

//now you have a copy of structure in blob, If you want to convert blob into
a structure just declare another external function like : Subroutine
MoveMemoryBack( ref your_structure pstr_dest, ref blob pblb_src , ulong
lLenght ) library "kernel32.dll" alias for RtlMoveMemory



Uzytkownik <Pablo_DC> napisal w wiadomosci
news:0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums...

> how convert a structure to blob?
> previously, I try with BlobEdit,
> but haven't reul...
>
> Thanks in advance.


Adrian Gomez Posted on 2002-11-22 03:51:33.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Adrian Gomez" <adriancgomez@hotmail.com>
Subject: Re: Structure to Blob
Date: Fri, 22 Nov 2002 00:51:33 -0300
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: host206.200-43-39.telecom.net.ar 200.43.39.206
Message-ID: <364_O7756ydkCHA.285@forums.sybase.com>
References: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums> <364_oGHLn32fCHA.296@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:748
Article PK: 713315

It seems a fine solution to convert the structure into a blob, but.....
the structure has attributes which are themselves structures too!
Even more, the 2nd structure contains blobs, result from GetFullState().

Would this solution still work in this scenario?

Thanks

PS. I know what structure Pablo is talking about since I'm his boss :)

"Paul B" <Pawel.Bodnar@atena.pl> wrote in message
news:oGHLn32fCHA.296@forums.sybase.com...
> here is another solution
> Subroutine MoveMemoryByte(ref blob pblb_dst , ref your_structure
> pstr_source, ulong lLenght ) library "kernel32.dll" alias for
RtlMoveMemory
>
> And the code in PowerBuilder:
> your_structure lo_str
> Blob lblb_data
> ulong ll_size
>
> //you have to know size of your structure (I hope you
> don't use any object types ), just count attributes size in bytes.
> ll_size = //size of your structure in bytes
> lblb_data = blob( fill(' ' , ll_size ) )
> MoveMemoryByte ( lblb_data , lo_str , ll_size )
>
> //now you have a copy of structure in blob, If you want to convert blob
into
> a structure just declare another external function like : Subroutine
> MoveMemoryBack( ref your_structure pstr_dest, ref blob pblb_src , ulong
> lLenght ) library "kernel32.dll" alias for RtlMoveMemory
>
>
>
> Uzytkownik <Pablo_DC> napisal w wiadomosci
> news:0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums...
> > how convert a structure to blob?
> > previously, I try with BlobEdit,
> > but haven't reul...
> >
> > Thanks in advance.
>
>


Bug Posted on 2002-11-22 14:40:39.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Bug" <fenterbug@hotmail.com>
Subject: Re: Structure to Blob
Date: Fri, 22 Nov 2002 08:40:39 -0600
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: iaccess100.greyhound.com 206.66.2.100
Message-ID: <364_gkHAqdjkCHA.285@forums.sybase.com>
References: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums> <364_oGHLn32fCHA.296@forums.sybase.com> <364_O7756ydkCHA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:746
Article PK: 713307

I would assume that you'd use the same techniques on the various elements of
the structure. You might have to have two versions of the structure, one
with a structure element and one with a corresponding blob element.

--
(`'·.¸_/^\_¸.·'´)
f e n t e r b u g
(¸.·'´¯)^(¯`'·.¸)
/ \
´´´^```

"Adrian Gomez" <adriancgomez@hotmail.com> wrote in message
news:O7756ydkCHA.285@forums.sybase.com...
> It seems a fine solution to convert the structure into a blob, but.....
> the structure has attributes which are themselves structures too!
> Even more, the 2nd structure contains blobs, result from GetFullState().
>
> Would this solution still work in this scenario?
>
> Thanks
>
> PS. I know what structure Pablo is talking about since I'm his boss :)
>
>
> "Paul B" <Pawel.Bodnar@atena.pl> wrote in message
> news:oGHLn32fCHA.296@forums.sybase.com...
> > here is another solution
> > Subroutine MoveMemoryByte(ref blob pblb_dst , ref your_structure
> > pstr_source, ulong lLenght ) library "kernel32.dll" alias for
> RtlMoveMemory
> >
> > And the code in PowerBuilder:
> > your_structure lo_str
> > Blob lblb_data
> > ulong ll_size
> >
> > //you have to know size of your structure (I hope you
> > don't use any object types ), just count attributes size in bytes.
> > ll_size = //size of your structure in bytes
> > lblb_data = blob( fill(' ' , ll_size ) )
> > MoveMemoryByte ( lblb_data , lo_str , ll_size )
> >
> > //now you have a copy of structure in blob, If you want to convert blob
> into
> > a structure just declare another external function like : Subroutine
> > MoveMemoryBack( ref your_structure pstr_dest, ref blob pblb_src ,
ulong
> > lLenght ) library "kernel32.dll" alias for RtlMoveMemory
> >
> >
> >
> > Uzytkownik <Pablo_DC> napisal w wiadomosci
> > news:0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums...
> > > how convert a structure to blob?
> > > previously, I try with BlobEdit,
> > > but haven't reul...
> > >
> > > Thanks in advance.
> >
> >
>
>