INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How To: Left Pad with Blank/Space  (Read 1171 times)

Zardoz2293

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 50
  • Beyond...
How To: Left Pad with Blank/Space
« on: August 10, 2014, 04:15:33 pm »

I find in many MC fields the left side of the string has the blank/spaces removed. How do I add or force a space to exist on the left side of a string? The information is an example not to be taken literally.

Currently:
i.e., If( expressionTrue,       True ,) ---> "True " <-- undesirable

Desired:
i.e., If( expressionTrue,  True ,) ---> " True " <-- desired

Thanks
Logged
    Windows 7 Ultimate SP1 (Build 7601) [64-bit]
    Asus Sabertooth X58, i7-980X @4.1GHz, 24GB @PC3-14400

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: How To: Left Pad with Blank/Space
« Reply #1 on: August 10, 2014, 04:24:04 pm »

Add a slash before the space /
Logged

Zardoz2293

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 50
  • Beyond...
Re: How To: Left Pad with Blank/Space
« Reply #2 on: August 10, 2014, 04:28:12 pm »

Add a slash before the space /

Thank you!
Logged
    Windows 7 Ultimate SP1 (Build 7601) [64-bit]
    Asus Sabertooth X58, i7-980X @4.1GHz, 24GB @PC3-14400

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: How To: Left Pad with Blank/Space
« Reply #3 on: August 10, 2014, 07:46:40 pm »

One way (maybe not the most elegant) to correct any tags, for example the [name] field:
Right click on the [name] entry and choose rename (or left-click on it and hit F2)
Then type:

=/ [name]

Repeat for other tags. Batch select affected files.
Logged
Pages: [1]   Go Up