Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Spaces

  1. #1
    Join Date
    Aug 2005
    Posts
    12

    Spaces

    Im using net view to get computer names to text file
    Then reading it to a table
    Everything is working fine but when I Use the variables The Seem to have spaces like


    %ComputerName1%\\C\Stuff

    ends up being

    \\Test \C\Stuff

    If there a way to remove spaces in text file lines or even in a line of the table itself

  2. #2
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Perhaps the String.TrimLeft/TrimRight functions?

    Online Help Page

  3. #3
    Join Date
    Aug 2005
    Posts
    12

    Good Idea

    That worked but created a new problem

    x = result1;
    y = 2;
    if (x > y) then
    ComputerNameA = ComputerNames[2];
    ComputerName1 = String.TrimRight("ComputerNameA ", nil);
    SessionVar.Set("%ComputerName1%", ComputerName1)
    end

    what i have it doing is pulling line 2 from table and saving it as computernameA but when i use the trim command it isnt pulling the data from
    computernameA just using the word please help

  4. #4
    Join Date
    Aug 2005
    Posts
    12

    Lightbulb Thanks

    Thought Alot more into that command and figured out how to get it to work

    alot of steps in this but hey it works

    x = result1;
    y = 2;
    if (x > y) then
    ComputerNameA = ComputerNames[2];
    SessionVar.Set("%ComputerName1%", ComputerNameA)
    ComputerName1 = String.TrimRight (SessionVar.Expand("%ComputerName1% "), nil);
    SessionVar.Set("%ComputerName1%", ComputerName1)

Similar Threads

  1. URL spaces
    By Skyluke in forum TrueUpdate 2.0
    Replies: 4
    Last Post: 05-27-2005, 07:46 AM
  2. GetURLFilename script, how to use spaces in URL's
    By gnetcanada in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 07-21-2004, 01:57 PM
  3. Path problems in NT when executing file with spaces in path
    By tomarppe in forum Setup Factory 6.0
    Replies: 6
    Last Post: 03-21-2002, 02:01 PM
  4. Registry problem with paths containing spaces
    By evaluator in forum Setup Factory 6.0
    Replies: 7
    Last Post: 03-19-2002, 09:37 AM

Posting Permissions

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