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.

DW.net has error when using describe

3 posts in DataWindow .NET Last posting was on 2004-08-13 14:10:09.0Z
lsy Posted on 2004-08-13 06:23:48.0Z
From: "lsy" <indwrld@hotmail.com>
Newsgroups: sybase.public.datawindow.net
Subject: DW.net has error when using describe
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 211.40.136.235
X-Original-NNTP-Posting-Host: 211.40.136.235
Message-ID: <411c5e74$1@forums-1-dub>
Date: 12 Aug 2004 23:23:48 -0700
X-Trace: forums-1-dub 1092378228 211.40.136.235 (12 Aug 2004 23:23:48 -0700)
X-Original-Trace: 12 Aug 2004 23:23:48 -0700, 211.40.136.235
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:126
Article PK: 124563

t_text.width has default value 100 and expression "long(t_text.x) +
long(t_text2.x)".

In code,

dw_test.Describe("t_text.width")

expects result of the expression's value, but it returns like this.

100*"long(t_text.x) + long(t_text2.x)"


lsy Posted on 2004-08-13 06:26:45.0Z
From: "lsy" <indwrld@hotmail.com>
Newsgroups: sybase.public.datawindow.net
References: <411c5e74$1@forums-1-dub>
Subject: error only in Evaluation version not in Beta version.
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 211.40.136.235
X-Original-NNTP-Posting-Host: 211.40.136.235
Message-ID: <411c5f25$1@forums-1-dub>
Date: 12 Aug 2004 23:26:45 -0700
X-Trace: forums-1-dub 1092378405 211.40.136.235 (12 Aug 2004 23:26:45 -0700)
X-Original-Trace: 12 Aug 2004 23:26:45 -0700, 211.40.136.235
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:127
Article PK: 124565

error only in Evaluation version not in Beta version.

"lsy" <indwrld@hotmail.com> wrote in message news:411c5e74$1@forums-1-dub...
>
> t_text.width has default value 100 and expression "long(t_text.x) +
> long(t_text2.x)".
>
> In code,
>
> dw_test.Describe("t_text.width")
>
> expects result of the expression's value, but it returns like this.
>
> 100*"long(t_text.x) + long(t_text2.x)"
>
>
>
>
>


Jim O'Neil [Sybase] Posted on 2004-08-13 14:10:09.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.datawindow.net
Subject: Re: DW.net has error when using describe
Message-ID: <n6iph0phb2o4j6k0gj799n73q04182kpib@4ax.com>
References: <411c5e74$1@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
Date: 13 Aug 2004 07:10:09 -0700
X-Trace: forums-1-dub 1092406209 10.18.63.187 (13 Aug 2004 07:10:09 -0700)
X-Original-Trace: 13 Aug 2004 07:10:09 -0700, joneilw2k.sybase.com
Lines: 26
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:132
Article PK: 124567

I'm not sure I quite understand the bug here. Describe() will give
you the expression string syntax, because you are dealing with the
definition of a particular object on the datawindow not an INSTANCE of
that object. For instance, you might have a t_text as a label in each
row, and i's width could differ for each of those rows. You'd need to
use Describe("Evaluate('t_text.width',<rownumber>)") to get the value
for the specific instance of t_text that you want.

On 12 Aug 2004 23:23:48 -0700, "lsy" <indwrld@hotmail.com> wrote:

>
>t_text.width has default value 100 and expression "long(t_text.x) +
>long(t_text2.x)".
>
>In code,
>
>dw_test.Describe("t_text.width")
>
>expects result of the expression's value, but it returns like this.
>
>100*"long(t_text.x) + long(t_text2.x)"
>
>
>
>