XmTextFieldReplace(3X)XmTextFieldReplace(3X)NAME
XmTextFieldReplace - A TextField function that replaces part of a text string
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldReplace (widget, from_pos, to_pos, value)
Widget widget;
XmTextPosition from_pos;
XmTextPosition to_pos;
char * value;
DESCRIPTION
XmTextFieldReplace replaces part of the text string in the TextField widget. The character positions begin at zero and are numbered
sequentially from the beginning of the text.
An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the parameter
from_pos must be 1 and to_pos must be 3. To insert a string after the fourth character, both parameters, from_pos and to_pos, must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed
first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. Specifies the TextField widget ID Specifies the start
position of the text to be replaced Specifies the end position of the text to be replaced Specifies the character string value to be added
to the text widget
For a complete definition of TextField and its associated resources, see XmTextField(3X).
SEE ALSO XmTextField(3X), XmTextFieldReplaceWcs(3X)XmTextFieldReplace(3X)
Check Out this Related Man Page
XmTextFieldReplace(library call) XmTextFieldReplace(library call)
NAME
XmTextFieldReplace -- A TextField function that replaces part of a text string
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldReplace(
Widget widget,
XmTextPosition from_pos,
XmTextPosition to_pos,
char * value);
DESCRIPTION
XmTextFieldReplace replaces part of the text string in the TextField widget. The character positions begin at 0 (zero) and are numbered
sequentially from the beginning of the text.
An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the parameter
from_pos must be 1 and to_pos must be 3. To insert a string after the fourth character, both parameters, from_pos and to_pos, must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first
and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. The XmNmotionVerifyCallback is generated if to_pos is less
than or equal to the cursor position and the length of value is not the same as the length of the text being replaced, or if the cursor
position is between from_pos and to_pos, and the distance from the cursor position to from_pos is greater than the length of value.
widget Specifies the TextField widget ID
from_pos Specifies the start position of the text to be replaced
to_pos Specifies the end position of the text to be replaced
value Specifies the character string value to be added to the text widget
For a complete definition of TextField and its associated resources, see XmTextField(3).
RELATED XmTextField(3). XmTextFieldReplaceWcs(3).
XmTextFieldReplace(library call)
Hello All,
Can somebody please help me how to accomplish the following :
I have a text file called data.txt that has the following information :
M|88494-998494
M|98jd#0094
M|88394-994049
M|GFG9980#009944
and so on...
I need to replace the value of M to either "S" or "X"... (3 Replies)
Dear Friends,
I am facing a problem while selecting the test that is between start and end tags.
i have a file contains,
--------------
<abc> some text some text
some text some text
some text some text
some text some text
some text </abc>
===blank line======
<abc> some text some text... (7 Replies)
I have a file which contains the following data.
Parameters "CParameters"
BEGIN DSSUBRECORD
Name "TgtDB"
Prompt "TgtDB"
Default "edwdev"
ParamType "0"
ParamLength "0"
ParamScale "0"
END DSSUBRECORD
MetaBag... (6 Replies)
Hi,
I want to get the latest added part of a text file sent over the network to for analysis. Is there a tool to use to keep track of which part of a text file that has already been analysed so only the "new" lines will be sent and handled? I have checked a few tools but I still donīt know how to... (3 Replies)
Dear Folks :),
I am new to UNIX scripting and I do not know how can I insert some text in the first column of a UNIX text file at command promtp.
I can do this in vi editor by using this command :g/^/s//BBB_
e,g I have a file named as Test.dat and it containins below text:
michal... (4 Replies)
***************
#some other text
*****************
***************
#some other text
*****************
address1=1.1.1.1
address2=2.2.2.2
address3=3.3.3.3
I have a file where i need to push all the text starting from address1 till end of file to, below . Can anyone of you... (6 Replies)
Hello,
I must replace all occurences of 0a character in a text file with 2 characters 0d0a. I've tried sed, but it cannot insert control characters ie. \n \r - it simply writes \n \r into output file. What is the good solution for my problem? I use ksh and AIX 5.3 operating system.
Tia
Yac (8 Replies)
I just want to add a particular string in text file using shell script
text file format
1 columns-10
2 text=89
3 no<>
4
5 test-9876
6 size=9
string need to insert in 4th line
<switch IP='158.195.2.567' port='5900' user='testc' password='asdfrp' Code='8'>
After inserting the... (8 Replies)
What command can I use to replace the last part of a text string with different text.
Example: I want to replace the text NAME in the following string with the text NEW_NAME
abc~diff~other~something~NAME
The number of ~ can change. (4 Replies)
Hi
I am looking for a particular string in a file.If the string exists, then I want to replace another string with some other text.Once replaced, search for the same text after that character position in the file. :wall:
E.g: Actual File content:
Hello
Name: Nitin Raj
Welcome to Unix... (4 Replies)
I have text file as follows and would like to remove the last occurance of "UNION ALL" string and replace @@ with single quote (').
Input text in file is
with temp as (
( select ----------- where OPERATION = @@B@@ and OBJECTTYPE = @@P@@ and start_time desc ) UNION ALL
( select... (9 Replies)
Greetings.
I need to extract text between two character positions, e.g: all text between character 4921 and 6534.
The text blocks are FASTA-format sequence of whole chromosomes, so basically a million A, T, G, C, combinations. E.g:
>Chr_1
ACCTGTTCAACTCTCAGGACTCTCAGGTCAACTCTCAG... (3 Replies)
I wrote a program using Perl to find and replace a text within a file.
The text that needs to be replaced in the file is 'sql7.0.1' with 'sqls715'. When I execute my program I get an error message:
Here is my code:
#!/usr/bin/perl
use strict;
use warnings;
my $filename =... (6 Replies)
My server xml file has huge data part of which i'm sharing below.
I wish to add the below text held by variable "addthisline" after the closing braces i.e --> once the first </Connector> tag is found.
addthisline="I need to be inserted after the comments"
Thus my searchstring is... (3 Replies)