- Subject: Re: String type + integer type
- From: "John E. Davis" <davis>
- Date: Mon, 6 Jan 2003 03:18:36 -0500
Morten Bo Johansen <mojo@xxxxxxxx> wrote:
>I have been looking at various possible solutions with
>custom_variable and Sprintf but I can't seem to get it to behave.
There are several ways to convert an integer to a string. Here are
the two most common:
n = sprintf ("%d", n);
n = string (n);
Since you want:
> re_fsearch ("^msgstr[ ]*\\[" + value of 'n')
I would use:
() = re_fsearch (sprintf ("^msgstr[ ]*\\[%d]", n));
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2003 date index]
[2003 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]