Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CREATE OBJECT ARRAY USING LS_NAME

32 views
Skip to first unread message

General Específico

unread,
Jan 31, 2012, 9:00:11 AM1/31/12
to
Hi Everybody,

I'm using PB 10.5.

Refactoring some code, I fall into an autinstantiated class used in
many ways with minor changes; obviously, this means that the same
thing was copied and copied and then modified to be usable in every
fashion needed. Hence, what I did was to create a common ancestor with
all the functions and events required and its descendants with their
particularity. Now I have to use ancestorobjectInstance = CREATE using
'descendantname'. So far, so good... but then I fall into custom
functions that have parameters by ref with these objects as arrays and
asign them dinamically inside the function.
Then, I went thru a code like this:

ancestorobject ancestorobjectInstances[]

ancestorobjectInstances = CREATE using 'descendantname'

//this compiles ok

But when I try to DESTROY the array, I have to go one by one into a
loop... here I stopped and begun to be concerned about how the array
was created and if the dynamic assignment would work.

¿Any help?






bruce.a...@yahoo.com

unread,
Feb 7, 2012, 11:23:28 AM2/7/12
to
This group has been marked read only on the Sybase server, your post
will never make it there. In addition, the feed between Google and
the Sybase server is not currently working. If you post through
Google, the post will never show up on the Sybase server, and most
people who answer questions in that group will never see it.
Instead, you may want to access the Sybase newsgroups directly at

http://www.sybase.com/support/community-forums

bruce.a...@yahoo.com

unread,
Feb 7, 2012, 11:19:48 AM2/7/12
to
This group has been marked read only on the Sybase server. In addition, the feed between Google and the Sybase server is not currently working. If you post through Google the post will never show up on the Sybase server, and most people who answer questions in that group will never see it. Instead, you may want to access the Sybase newsgroups directly at:
http://www.sybase.com/detail_list?id=11507&pageNum=1&multi=true&show=1248
0 new messages