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.

String array problem

2 posts in Appeon (partner product) Last posting was on 2005-01-10 09:29:27.0Z
Andrea Bonifazio Posted on 2005-01-08 10:22:46.0Z
From: "Andrea Bonifazio" <abonifazio@vegatecnologie.it>
Newsgroups: sybase.public.appeon
Subject: String array problem
Lines: 22
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: host242-120.pool8254.interbusiness.it
X-Original-NNTP-Posting-Host: host242-120.pool8254.interbusiness.it
Message-ID: <41dfb476@forums-1-dub>
Date: 8 Jan 2005 02:22:46 -0800
X-Trace: forums-1-dub 1105179766 82.54.120.242 (8 Jan 2005 02:22:46 -0800)
X-Original-Trace: 8 Jan 2005 02:22:46 -0800, host242-120.pool8254.interbusiness.it
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:622
Article PK: 20831

Hi all!
I had this problem with string arrays.
The situation was the following:
a) the string array was populated using the ProfileString command from an
ini file.
b) later, the string array elements were used as arguments in datawindows
Retrieve method

The problem was that the datawindows appeared empty (0 rows), the cause of
it was that the string array arguments were not readed properly.
For example if the ini file input string was literally written as "001" the
Retrieve method received the argument as it should be, checked using Appeon
Debug, but it was not able to understand that the " was to be removed.
The solution I used was to trim the original string by removing the two "
symbols.
The client-server deployed version works fine with the "001" elements.
This happened with a v2.8 trial version.

Warm regards,
Andrea Bonifazio


Julie Jiang Posted on 2005-01-10 09:29:27.0Z
From: "Julie Jiang" <julie.jiang@appeon.net>
Newsgroups: sybase.public.appeon
References: <41dfb476@forums-1-dub>
Subject: Re: String array problem
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 210.21.221.178
X-Original-NNTP-Posting-Host: 210.21.221.178
Message-ID: <41e24af7@forums-1-dub>
Date: 10 Jan 2005 01:29:27 -0800
X-Trace: forums-1-dub 1105349367 210.21.221.178 (10 Jan 2005 01:29:27 -0800)
X-Original-Trace: 10 Jan 2005 01:29:27 -0800, 210.21.221.178
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:623
Article PK: 12628

Hi Andrea,

What you have observed is correct: the ini file input string should not
contain quotation mark. Therefore, to get the INI file working well in the
deployed applications, make sure there is no quotation mark included in the
values of INI files.

Appeon Help has described the naming rules for the files, sections, registry
keys used in the Registry and Profile functions (in the Functions | System
Functions | Registry function section).

(The names of the files, sections, and registry keys):
1. Must start with an ¡®_' (underscore) or an '$' (dollar sign) or a letter.
2. Can include any combination of characters, numbers, '.' (point), '_'
(underscore), '-' (dash), space, '\' (backslash) and '$' (dollar sign).
3. Cannot include single quotation mark, quotation mark, '&' (ampersand
sign), or '/' (slash).

Regards,
Julie

"Andrea Bonifazio" <abonifazio@vegatecnologie.it> wrote in message
news:41dfb476@forums-1-dub...
> Hi all!
> I had this problem with string arrays.
> The situation was the following:
> a) the string array was populated using the ProfileString command from an
> ini file.
> b) later, the string array elements were used as arguments in datawindows
> Retrieve method
>
> The problem was that the datawindows appeared empty (0 rows), the cause of
> it was that the string array arguments were not readed properly.
> For example if the ini file input string was literally written as "001"
the
> Retrieve method received the argument as it should be, checked using
Appeon
> Debug, but it was not able to understand that the " was to be removed.
> The solution I used was to trim the original string by removing the two "
> symbols.
> The client-server deployed version works fine with the "001" elements.
> This happened with a v2.8 trial version.
>
> Warm regards,
> Andrea Bonifazio
>
>