Solved

How to highlight a field in datawindow?

Posted on 2002-06-19
2
368 Views
Last Modified: 2013-12-26
I have a free-form style datawindow that displays only one record.  There are two fields in the datawindow: report and name.  Both fields are retrieved from the database.  These are not text boxes or edit boxes.  Both fields are editable and enabled and have tab values assigned.
How do I highlight the report field (selecting all text inside) using powerscript?
0
Comment
Question by:Niemand
2 Comments
 

Accepted Solution

by:
ptbarnum earned 20 total points
Comment Utility
//Make it the current column
dw_1.SetColumn("report")

// Then select the text
dw_1.SelectText(1,N)  // where N is the length of the column
0
 

Author Comment

by:Niemand
Comment Utility
It turns out that SelectText is not necessary to highlight the text because just using SetColumn would highlight the entire text.  I suppose SelectText is used so that SelectedText can be applied.
Thanks.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now