Re: Parsing throught text entry
- From: JParker coinstar com
- To: Marco Quezada <mquezada nlxcorp com>
- Cc: gtk-app-devel-list gnome org, gtk-app-devel-list-admin gnome org
- Subject: Re: Parsing throught text entry
- Date: Fri, 8 Sep 2000 15:56:38 -0700
G'Day !
basically you put your file name into a string buffer and move the pointer to
the desired location within the string via pointer addition/subtraction. Do not
forget that strings are terminated by the "\n" character at the end.
Hope this helps
cheers,
Jim Parker
Sailboat racing is not a matter of life and death .... It is far more important
than that !!!
Marco Quezada
<mquezada nlxcorp com> To: gtk-app-devel-list gnome org
Sent by: cc:
gtk-app-devel-list-admin Subject: Parsing throught text entry
@gnome.org
09/08/00 03:17 PM
Hi all,
I have a text entry field connected with a "changed"signals. The purpose
of this field is for the user to enter a file name. The filenames
entered here are always the same length but I need to extract certain
parts of the file name to build an index ID, for example
file name is 1350235E123A.ascii
after the name has been entered I need to extract the strings 023 and
123 from the name. The file name is being set in a gchar pointer called
ascii_file_name. Is there a way to "parse" the pointer to extract the
desired digits and place them into a new text entry?
Thanks
--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
703-234-2100 x1028
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]