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.

Select certain line in multilineedit control

7 posts in ,  Objects General Discussion Last posting was on 2008-05-21 15:06:55.0Z
Gandalf Posted on 2008-05-21 07:52:52.0Z
From: Gandalf <gandalf@telenetzonderspam.be>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
Subject: Select certain line in multilineedit control
Date: Wed, 21 May 2008 09:52:52 +0200
Message-ID: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
X-Newsreader: Forte Free Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 5
Organization: -= Belgacom Usenet Service =-
NNTP-Posting-Host: bb59bc39.news.skynet.be
X-Trace: 1211356373 news.skynet.be 2942 81.246.7.2:33332
X-Complaints-To: usenet-abuse@skynet.be
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!novia!feeder.news-service.com!feeder2.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.skynet.be!195.238.0.222.MISMATCH!newsspl501.isp.belgacom.be!tjb!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214468 sybase.public.powerbuilder.objects:9697
Article PK: 665091

I want to store a certain line of e multilineedit control into a
string variable. How can I do that? How do I select for instance the
5th line of a multilineedit control?

Gandalf


kzganesan@gmail.com Posted on 2008-05-21 14:05:11.0Z
From: "kzganesan@gmail.com" <kzganesan@gmail.com>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
Subject: Re: Select certain line in multilineedit control
Date: Wed, 21 May 2008 07:05:11 -0700 (PDT)
Organization: http://groups.google.com
Lines: 19
Message-ID: <a28db0e8-c546-4033-9f4a-f2ea6b4b4ad0@k10g2000prm.googlegroups.com>
References: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
NNTP-Posting-Host: 123.242.248.130
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1211378711 18924 127.0.0.1 (21 May 2008 14:05:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 21 May 2008 14:05:11 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k10g2000prm.googlegroups.com; posting-host=123.242.248.130; posting-account=NCu2GgoAAACnfnEZr4oUqnJThqm3uxvz
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!k10g2000prm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214480 sybase.public.powerbuilder.objects:9701
Article PK: 665089


On May 21, 12:52 pm, Gandalf <gand...@telenetzonderspam.be> wrote:
> I want to store a certain line of e multilineedit control into a
> string variable. How can I do that? How do I select for instance the
> 5th line of a multilineedit control?
>
> Gandalf

Try the below, i cant find other solutions

String ls_data
long li_linecnt, cnt
li_linecnt = rte_1.linecount( )

for cnt=1 to li_linecnt
rte_1.SelectText (cnt, 1, cnt, 1)
rte_1.SelectTextLine ( )
ls_data = rte_1.selectedtext( ) + "~n"
messagebox (string(cnt), ls_data)
Next


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-21 13:58:53.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
References: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
Subject: Re: Select certain line in multilineedit control
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48342a9d$1@forums-1-dub>
Date: 21 May 2008 06:58:53 -0700
X-Trace: forums-1-dub 1211378333 10.22.241.152 (21 May 2008 06:58:53 -0700)
X-Original-Trace: 21 May 2008 06:58:53 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214479 sybase.public.powerbuilder.objects:9700
Article PK: 665093

Take a look at the TextLine function. If that doesn't serve, you may have to
parse out Text by character count or Pos on ~n.

"Gandalf" <gandalf@telenetzonderspam.be> wrote in message
news:p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com...
>I want to store a certain line of e multilineedit control into a
> string variable. How can I do that? How do I select for instance the
> 5th line of a multilineedit control?
>
> Gandalf


Adam Polech Posted on 2008-05-21 12:26:55.0Z
From: "Adam Polech" <polada1@poczta.onet.eu>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
References: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
In-Reply-To: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
Subject: Re: Select certain line in multilineedit control
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4834150f@forums-1-dub>
Date: 21 May 2008 05:26:55 -0700
X-Trace: forums-1-dub 1211372815 10.22.241.152 (21 May 2008 05:26:55 -0700)
X-Original-Trace: 21 May 2008 05:26:55 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214472 sybase.public.powerbuilder.objects:9698
Article PK: 665094

It looks nice, but my compressed folder has many subfolders and every
subfolder has many files.
I would like to preserve whole structure of my folder.
I need one simple function i.e. compress().

any ret
string pass='my password'
ret=compress('C:\MyFolder','c:\myfolder.zip',pass)

Is anything like this?
Adam



Uzytkownik "Gandalf" <gandalf@telenetzonderspam.be> napisal w wiadomosci
news:p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com...

>I want to store a certain line of e multilineedit control into a
> string variable. How can I do that? How do I select for instance the
> 5th line of a multilineedit control?
>
> Gandalf


Adam Polech Posted on 2008-05-21 12:28:25.0Z
From: "Adam Polech" <polada1@poczta.onet.eu>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
References: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com> <4834150f@forums-1-dub>
In-Reply-To: <4834150f@forums-1-dub>
Subject: Re: Select certain line in multilineedit control
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48341569@forums-1-dub>
Date: 21 May 2008 05:28:25 -0700
X-Trace: forums-1-dub 1211372905 10.22.241.152 (21 May 2008 05:28:25 -0700)
X-Original-Trace: 21 May 2008 05:28:25 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214474 sybase.public.powerbuilder.objects:9699
Article PK: 665088

sorry, a mistake...

Uzytkownik "Adam Polech" <polada1@poczta.onet.eu> napisal w wiadomosci
news:4834150f@forums-1-dub...

> It looks nice, but my compressed folder has many subfolders and every
> subfolder has many files.
> I would like to preserve whole structure of my folder.
> I need one simple function i.e. compress().
>
> any ret
> string pass='my password'
> ret=compress('C:\MyFolder','c:\myfolder.zip',pass)
>
> Is anything like this?
> Adam
>
>
>
> Uzytkownik "Gandalf" <gandalf@telenetzonderspam.be> napisal w wiadomosci
> news:p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com...
>>I want to store a certain line of e multilineedit control into a
>> string variable. How can I do that? How do I select for instance the
>> 5th line of a multilineedit control?
>>
>> Gandalf
>


Philip Salgannik Posted on 2008-05-21 15:06:55.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
References: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
Subject: Re: Select certain line in multilineedit control
Lines: 12
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48343a8f@forums-1-dub>
Date: 21 May 2008 08:06:55 -0700
X-Trace: forums-1-dub 1211382415 10.22.241.152 (21 May 2008 08:06:55 -0700)
X-Original-Trace: 21 May 2008 08:06:55 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214482 sybase.public.powerbuilder.objects:9703
Article PK: 665095

This is how you do it:
http://eric.aling.tripod.com/PB/tips/pbtip31.htm

"Gandalf" <gandalf@telenetzonderspam.be> wrote in message
news:p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com...
>I want to store a certain line of e multilineedit control into a
> string variable. How can I do that? How do I select for instance the
> 5th line of a multilineedit control?
>
> Gandalf


kzganesan@gmail.com Posted on 2008-05-21 14:07:09.0Z
From: "kzganesan@gmail.com" <kzganesan@gmail.com>
Newsgroups: sybase.public.powerbuilder.general,sybase.public.powerbuilder.objects
Subject: Re: Select certain line in multilineedit control
Date: Wed, 21 May 2008 07:07:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 15
Message-ID: <0e8e6db8-6397-4b65-9756-599d867ab7e2@y22g2000prd.googlegroups.com>
References: <p3l734p2bdq9421viahqopuc6u5r95ctei@4ax.com>
NNTP-Posting-Host: 123.242.248.130
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1211378829 19206 127.0.0.1 (21 May 2008 14:07:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 21 May 2008 14:07:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: y22g2000prd.googlegroups.com; posting-host=123.242.248.130; posting-account=NCu2GgoAAACnfnEZr4oUqnJThqm3uxvz
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!y22g2000prd.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:214481 sybase.public.powerbuilder.objects:9702
Article PK: 665096

Try the below, i cant find other solutions

String ls_data
long li_linecnt, cnt
li_linecnt = rte_1.linecount( )


for cnt=1 to li_linecnt
rte_1.SelectText (cnt, 1, cnt, 1)
rte_1.SelectTextLine ( )
ls_data = rte_1.selectedtext( ) + "~n"
messagebox (string(cnt), ls_data)
Next