January 27, 200422 yr I have a global field that receives data from another file. The data in this global field is concatenated. There are various field data in it and the script I have has to separate the data. One thing I
January 27, 200422 yr First, if the data is concatenated, from another file, then it originally existed separately. The fact that is a global leads one to think that this is a temporary value. So why can't you use the process which set this global to the separate values to also set them as separate values, in other globals? In other words, rather than trying to pull the data apart, why not also pass the separate values? If that is not possible, then you are either going to have to figure out what (if anything) allows you to distinguish the separate values when concatenated; or else you're going to have to compare each part of it back to the original values somewhere, to see where to break them.
January 29, 200422 yr Author Thanks. I almost have the solution, but I have some problems. For the last concatenated value in the string I
January 29, 200422 yr You say that the concatenated field has different types of data. It can't. Once it's in one field, it's only 1 type, Text result probably. What is was before doesn't really matter at that point; though it may matter again after you parse it. Are you saying that TextToDate produces an incorrect date, from what looks exactly like a regular date (on your system)? I still don't see why all this struggle, why you can't get the values from the original separate fields. Why don't you post some sample data, along with your calculations (well-labelled). We can't tell otherwise what's going on.
Create an account or sign in to comment