comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Combining two strings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Combining two strings [message #92323] Tue, 17 November 2015 18:41
wdolan is currently offline  wdolan
Messages: 29
Registered: June 2015
Junior Member
So I'm trying to add strings together so it reads in the format: 'Run07656_Seq0001_Scan012' for a series of a bunch of scans.

So I type in
x='Run0'+string(variable1)+'_Seq0001_Scan'+string(variable2)

where variable 1 is the run (ex. 7656), and variable 2 is the scan (ex. 012).

But it prints out : 'Run0 7656_Seq0001_Scan012'

How do I get rid of the space?
[Message index]
 
Read Message
Previous Topic: Averaging timesteps on large geospatial dataset?
Next Topic: Adding two strings together

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:30:24 PDT 2025

Total time taken to generate the page: 0.00376 seconds