Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Posts
    1,512

    Spaces and Enter

    Code:
    '
    	, ip_address:
    ok as you see there is a enter here how would i make this work in the code
    cos i keep getting a line error when i do

    Code:
    Endstring = "
    '
    	, ip_address:";
    i have tryed " and '

    thanks all

  2. #2
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534
    Are you referring to a carriage return? If so that is "\r\n".

    Also, you can set up strings using a multi-line technique.

    Code:
    Endstring = [[
    '
    	, ip_address:]];
    Code:
    --that method will include any spaces you enter in the code; therefore, if you write...
    
    sMyFirstString = [[This is my first string]];
    
    --you will see that it is different than...
    
    sMySecondString = [[...
    
    This is my second string
    
    see...]];
    
    
    Dialog.Message("First", sMyFirstString);
    
    Dialog.Message("Second", sMySecondString);
    Last edited by Centauri Soldier; 02-06-2009 at 09:27 PM.
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  3. #3
    Join Date
    Mar 2006
    Posts
    61
    Quote Originally Posted by rexzooly View Post
    Code:
    '
    	, ip_address:
    ok as you see there is a enter here how would i make this work in the code
    cos i keep getting a line error when i do

    Code:
    Endstring = "
    '
    	, ip_address:";
    i have tryed " and '

    thanks all
    There are a few ways.

    #1)
    Endstring = [[
    '
    , ip_address:]];

    If you use the double square brackets ALL text you type (including returns) remain.
    #2)
    Endstring = "'\r\n\t, ip_address:";

    '\r\n\t' - represent carriage return, line feed, and tab

    Hope that was helpful

  4. #4
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by Centauri Soldier View Post
    Are you referring to a carriage return? If so that is "\r\n".

    Also, you can set up strings using a multi-line technique.

    Code:
    Endstring = [[
    '
    	, ip_address:]];
    Code:
    --that method will include any spaces you enter in the code; therefore, if you write...
    
    sMyFirstString = [[This is my first string]];
    
    --you will see that it is different than...
    
    sMySecondString = [[...
    
    This is my second string
    
    see...]];
    
    
    Dialog.Message("First", sMyFirstString);
    
    Dialog.Message("Second", sMySecondString);
    [[ thanks i will try this one out as i am not sure in the spaces neede i just i did a straght copy from the code needed


    thanks guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts