M MichaelTJ Member Licensed User Longtime User Apr 21, 2013 #1 when i have the following situation... X = 1 Y = 2 Z = 3 and do the following..... dim ST1 as string ST1 = X & " " & Y & ".........." & Z the value of ST1 is returned as "1 2 ..........3" how do i maintain the blank or "white" spaces between 1(X) and 2(Y)?
when i have the following situation... X = 1 Y = 2 Z = 3 and do the following..... dim ST1 as string ST1 = X & " " & Y & ".........." & Z the value of ST1 is returned as "1 2 ..........3" how do i maintain the blank or "white" spaces between 1(X) and 2(Y)?
M MichaelTJ Member Licensed User Longtime User Apr 21, 2013 #2 hmmmm... even this forum posting kills the white spaces.... within the ST1 string i need 10 blank spaces between the 1 and the 2 Last edited: Apr 21, 2013 Upvote 0
hmmmm... even this forum posting kills the white spaces.... within the ST1 string i need 10 blank spaces between the 1 and the 2
klaus Expert Licensed User Longtime User Apr 21, 2013 #3 This works fine ! Code: X = 1 Y = 2 Z = 3 STR1 = X & " " & Y & ".........." & Z Log(STR1 The Log looks like this : Code: 1 2..........3 So I don't understand what your problem is. Best regards. Upvote 0
This works fine ! Code: X = 1 Y = 2 Z = 3 STR1 = X & " " & Y & ".........." & Z Log(STR1 The Log looks like this : Code: 1 2..........3 So I don't understand what your problem is. Best regards.
M MichaelTJ Member Licensed User Longtime User Apr 21, 2013 #4 reply to "don't see problem" with in the string ST1 i need ten blank spaces between the "1" and the "2" similarly to how there are ten periods between the "2" and the "3"..... i wrote the question that way but even this forum functionality killed the white spaces in my example Upvote 0
reply to "don't see problem" with in the string ST1 i need ten blank spaces between the "1" and the "2" similarly to how there are ten periods between the "2" and the "3"..... i wrote the question that way but even this forum functionality killed the white spaces in my example
klaus Expert Licensed User Longtime User Apr 21, 2013 #5 The code sample I posted does work there are 10 spaces between 1 and 2 ! Yes, in the forum text, extra spaces are removed. But if you put your text between code tags the spaces are maintained, like in my post. Best regards. Upvote 0
The code sample I posted does work there are 10 spaces between 1 and 2 ! Yes, in the forum text, extra spaces are removed. But if you put your text between code tags the spaces are maintained, like in my post. Best regards.
M MichaelTJ Member Licensed User Longtime User Apr 21, 2013 #6 i will try that later today.... i was not keeping the spaces separated from other text as in & "......C" & so i will try & "......" & "C" (. represents blank) Upvote 0
i will try that later today.... i was not keeping the spaces separated from other text as in & "......C" & so i will try & "......" & "C" (. represents blank)
M MichaelTJ Member Licensed User Longtime User Apr 22, 2013 #7 am i STILL missing something? locLineData = locTme & " " & locTYPE & " " & "P-" & locST2data looks fine now but the forum will probably compress it so as to not be seen but.... there are six spaces between locTme and locTYPE and two spaces between locTYPE and "P-" the value of locLineData however shows all but one of the 6 spaces removed and one of the two spaces removed so that there is but a single space between these items.... is there something else to try? Upvote 0
am i STILL missing something? locLineData = locTme & " " & locTYPE & " " & "P-" & locST2data looks fine now but the forum will probably compress it so as to not be seen but.... there are six spaces between locTme and locTYPE and two spaces between locTYPE and "P-" the value of locLineData however shows all but one of the 6 spaces removed and one of the two spaces removed so that there is but a single space between these items.... is there something else to try?
M MichaelTJ Member Licensed User Longtime User Apr 22, 2013 #8 i see this "faulty" value by.... hovering over the locLineData while in the debug mofe..... the spaces are all adjusted from any number of spaces entered to but one space between values Upvote 0
i see this "faulty" value by.... hovering over the locLineData while in the debug mofe..... the spaces are all adjusted from any number of spaces entered to but one space between values
M MichaelTJ Member Licensed User Longtime User Apr 22, 2013 #9 more discovery.... the hovering never shows the spaces but the value displayed under "Local variables" is correct.... so it is just the hover function that has the problem? and not the actual value being assigned to the string variable.... thank you for your help with this Upvote 0
more discovery.... the hovering never shows the spaces but the value displayed under "Local variables" is correct.... so it is just the hover function that has the problem? and not the actual value being assigned to the string variable.... thank you for your help with this