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.

Single Line Edit Control question

6 posts in Objects Last posting was on 2004-03-03 01:27:01.0Z
Doug Harding Posted on 2004-03-01 23:26:55.0Z
Mime-Version: 1.0
X-Newsreader: Groupwise 6.5
From: "Doug Harding" <DHARDING@utah.gov>
Subject: Single Line Edit Control question
Newsgroups: sybase.public.powerbuilder.objects
Content-Type: multipart/alternative; boundary="____AQAWJYFNZWYVVOOTRRMJ____"
X-Original-NNTP-Posting-Host: fidrh.fi.as.ex.state.ut.us
Message-ID: <4043c6e3$1@forums-2-dub>
X-Original-Trace: 1 Mar 2004 15:27:31 -0800, fidrh.fi.as.ex.state.ut.us
Lines: 59
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Mar 2004 15:25:47 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Mar 2004 15:26:55 -0800
X-Trace: forums-1-dub 1078183615 10.22.108.75 (1 Mar 2004 15:26:55 -0800)
X-Original-Trace: 1 Mar 2004 15:26:55 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7809
Article PK: 735083

Hi all,
 
I have a PowerBuilder 101 type question.
 
I have an app that is written in PB 8.0.1.  I have a Single Line Edit Control on the main window for this app.  I populate this control with data as part of the open process for the window.  Now when the user tabs to the window I want to cursor to be positioned at the end of the data string that is already in the control.
 
Would someone please tell me how to do this?  I have looked in help for PB,  I have also googled for anything that had to do with Single Line Edit.  I don't see anyone asking about this or discussing it so it must be pretty easy.  I just can't find the answer.
 
Thanks in advance for any help.
 
Doug


Bruce Armstrong [TeamSybase] Posted on 2004-03-02 01:06:32.0Z
Message-ID: <4043DDD5.DBCAE058@teamsybase.com>
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Organization: TeamSybase
X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Single Line Edit Control question
References: <4043c6e3$1@forums-2-dub>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 141.102.124.34
X-Original-NNTP-Posting-Host: 141.102.124.34
Date: 1 Mar 2004 17:06:32 -0800
X-Trace: forums-1-dub 1078189592 141.102.124.34 (1 Mar 2004 17:06:32 -0800)
X-Original-Trace: 1 Mar 2004 17:06:32 -0800, 141.102.124.34
Lines: 26
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7810
Article PK: 735084

It appears you've posted in HTML. Please post in text.

Doug Harding wrote:
>
> Part 1.1.2 Type: Hypertext Markup Language (text/html)
> Encoding: quoted-printable

--
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Sixth Annual Sybase Tools Seminar - April 19, 2004 - Minneapolis, MN
http://www.powerobjects.com/seminar/?source=newsgroups

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Got code samples? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
http://www.needhim.org


Paul Horan[TeamSybase] Posted on 2004-03-02 01:38:51.0Z
From: "Paul Horan[TeamSybase]" <paulhATvcisolutionsDOTcom>
Newsgroups: sybase.public.powerbuilder.objects
References: <4043c6e3$1@forums-2-dub>
Subject: Re: Single Line Edit Control question
Lines: 33
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: 67-23-182-204.bflony.adelphia.net
X-Original-NNTP-Posting-Host: 67-23-182-204.bflony.adelphia.net
Message-ID: <4043e5ab$1@forums-1-dub>
Date: 1 Mar 2004 17:38:51 -0800
X-Trace: forums-1-dub 1078191531 67.23.182.204 (1 Mar 2004 17:38:51 -0800)
X-Original-Trace: 1 Mar 2004 17:38:51 -0800, 67-23-182-204.bflony.adelphia.net
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7811
Article PK: 735085

>>
"Doug Harding" <DHARDING@utah.gov> wrote in message news:4043c6e3$1@forums-2-dub...
Hi all,

I have a PowerBuilder 101 type question.

I have an app that is written in PB 8.0.1. I have a Single Line Edit Control on the main window for this app. I
populate this control with data as part of the open process for the window. Now when the user tabs to the window I want
to cursor to be positioned at the end of the data string that is already in the control.

Would someone please tell me how to do this? I have looked in help for PB, I have also googled for anything that had
to do with Single Line Edit. I don't see anyone asking about this or discussing it so it must be pretty easy. I just
can't find the answer.

Thanks in advance for any help.

Doug
<<

I would use a datawindow instead of an SLE control. Then you have the SelectText function.

From the Help file:

SelectText()
This statement sets the insertion point at the end of the text in the DataWindow edit control:

dw_1.SelectText(dw_1.GetText(), 0)

--
Paul Horan[TeamSybase]


Paul Horan[TeamSybase] Posted on 2004-03-02 01:40:32.0Z
From: "Paul Horan[TeamSybase]" <paulhATvcisolutionsDOTcom>
Newsgroups: sybase.public.powerbuilder.objects
References: <4043c6e3$1@forums-2-dub> <4043e5ab$1@forums-1-dub>
Subject: Re: Single Line Edit Control question
Lines: 39
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: 67-23-182-204.bflony.adelphia.net
X-Original-NNTP-Posting-Host: 67-23-182-204.bflony.adelphia.net
Message-ID: <4043e610$1@forums-1-dub>
Date: 1 Mar 2004 17:40:32 -0800
X-Trace: forums-1-dub 1078191632 67.23.182.204 (1 Mar 2004 17:40:32 -0800)
X-Original-Trace: 1 Mar 2004 17:40:32 -0800, 67-23-182-204.bflony.adelphia.net
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7812
Article PK: 735086


>>
> "Doug Harding" <DHARDING@utah.gov> wrote in message news:4043c6e3$1@forums-2-dub...
> Hi all,
>
> I have a PowerBuilder 101 type question.
>
> I have an app that is written in PB 8.0.1. I have a Single Line Edit Control on the main window for this app. I
> populate this control with data as part of the open process for the window. Now when the user tabs to the window I
want
> to cursor to be positioned at the end of the data string that is already in the control.
>
> Would someone please tell me how to do this? I have looked in help for PB, I have also googled for anything that had
> to do with Single Line Edit. I don't see anyone asking about this or discussing it so it must be pretty easy. I just
> can't find the answer.
>
> Thanks in advance for any help.
>
> Doug
> <<
>
> I would use a datawindow instead of an SLE control. Then you have the SelectText function.
>
> From the Help file:
>
> SelectText()
> This statement sets the insertion point at the end of the text in the DataWindow edit control:
>
> dw_1.SelectText(dw_1.GetText(), 0)
>
> --
> Paul Horan[TeamSybase]
>

My bad. SelectText() also exists for SLE controls. (Don't use 'em myself...)

--
Paul Horan[TeamSybase]


Doug Harding Posted on 2004-03-02 17:46:06.0Z
References: <4043c6e3$1@forums-2-dub> <4043e5ab$1@forums-1-dub> <4043e610$1@forums-1-dub>
X-Newsreader: Groupwise 6.5
From: "Doug Harding" <DHARDING@utah.gov>
Subject: Re: Single Line Edit Control question
Newsgroups: sybase.public.powerbuilder.objects
NNTP-Posting-Host: fidrh.fi.as.ex.state.ut.us
X-Original-NNTP-Posting-Host: fidrh.fi.as.ex.state.ut.us
Message-ID: <4044c85e$1@forums-1-dub>
Date: 2 Mar 2004 09:46:06 -0800
X-Trace: forums-1-dub 1078249566 168.179.253.56 (2 Mar 2004 09:46:06 -0800)
X-Original-Trace: 2 Mar 2004 09:46:06 -0800, fidrh.fi.as.ex.state.ut.us
Lines: 71
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7817
Article PK: 735089

Paul you are a lifesaver.

You put me onto a solution to this problem.

Here is the code that I used to accomplish my goal.

This.SelectText ( LEN(This.TEXT) + 1, 0 )

This is in the GetFocus script for the control. I had to add the + 1 in the
start parameter of the SelectText function because if I didn't the cursor
ended up at the last character in the data that was in the TEXT attribute of
the control.

Thanks for your help. I owe you more than I can count now.

Doug

>>> Paul Horan[TeamSybase]<paulhATvcisolutionsDOTcom> 03/01/04 6:40:32 PM
>>>

>>
> "Doug Harding" <DHARDING@utah.gov> wrote in message
news:4043c6e3$1@forums-2-dub...
> Hi all,
>
> I have a PowerBuilder 101 type question.
>
> I have an app that is written in PB 8.0.1. I have a Single Line Edit
Control on the main window for this app. I
> populate this control with data as part of the open process for the

window. Now when the user tabs to the window I
want
> to cursor to be positioned at the end of the data string that is already
in the control.
>
> Would someone please tell me how to do this? I have looked in help for
PB, I have also googled for anything that had
> to do with Single Line Edit. I don't see anyone asking about this or
discussing it so it must be pretty easy. I just
> can't find the answer.
>
> Thanks in advance for any help.
>
> Doug
> <<
>
> I would use a datawindow instead of an SLE control. Then you have the
SelectText function.
>
> From the Help file:
>
> SelectText()
> This statement sets the insertion point at the end of the text in the
DataWindow edit control:
>
> dw_1.SelectText(dw_1.GetText(), 0)
>
> --
> Paul Horan[TeamSybase]
>

My bad. SelectText() also exists for SLE controls. (Don't use 'em
myself...)

--
Paul Horan[TeamSybase]


Philip Salgannik Posted on 2004-03-03 01:27:01.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <4043c6e3$1@forums-2-dub> <4043e5ab$1@forums-1-dub><4043e610$1@forums-1-dub> <4044c85e$1@forums-1-dub>
Subject: Re: Single Line Edit Control question
Lines: 22
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.1106
X-Original-NNTP-Posting-Host: h0020af718683.ne.client2.attbi.com
Message-ID: <4045348c$1@forums-2-dub>
X-Original-Trace: 2 Mar 2004 17:27:40 -0800, h0020af718683.ne.client2.attbi.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Mar 2004 17:25:46 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Mar 2004 17:27:01 -0800
X-Trace: forums-1-dub 1078277221 10.22.108.75 (2 Mar 2004 17:27:01 -0800)
X-Original-Trace: 2 Mar 2004 17:27:01 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7819
Article PK: 735091


"Doug Harding" <DHARDING@utah.gov> wrote in message
news:4044c85e$1@forums-1-dub...
> Paul you are a lifesaver.
>
> You put me onto a solution to this problem.
>
> Here is the code that I used to accomplish my goal.
>
> This.SelectText ( LEN(This.TEXT) + 1, 0 )

You can get rid of the overhead of calling Len(This.TEXT), just do
This.SelectText (99999, 0 )



pbm_thisusuallydoesnothelp:-))
Philip Salgannik