jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: String type + integer type


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]