Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7204 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello,

This may not be the correct forum, I am new to fmp.

I'm exporting data as Comma Separated Text - this is how it exports:

"Darren", "Mcdonnald"

"Ben", "Smith"

"Gavin", "Richardson"

"George", "Brown"
 



But instead, I want all the collumns on one line:


 

FirstName = "Darren", "Ben", "Gavin", "George"

LastName = "Mcdonnald", "Smith", "Richardson", "Brown"

Is this possible?

Thanks

Posted

You'll need two new fields to concatenate the data. I would suggest using global fields and looping through the found set, appending each piece of a data to the fields. Something like

Set Field [globalFirstName, ""]

Set Field [globalLastName, ""]

Go to Record/Request/Page [First]

Loop

Set Field [globalFirstName, globalFirstName & """" & FirstName & """, "]

Set Field [globalLastName, globalLastName & """" & LastName & """, "]

Go to Record/Request/Page [Exit after last, Next]

End Loop

Set Field [globalFirstName, Left( globalFirstName, Length(globalFirstName) - 2 )]

Set Field [globalLastName, Left( globalLastName, Length(globalLastName) - 2 )]

Then export the globals.

Posted

Don't forget that text fields have a 640 KB character limit in FMP 6 and earlier. In FMP 7 the limit has extended to 2 GB.

This could probably be done easily with XML export. Unfortunately I know not how to do it myself but others may be able to help.

Posted

Queue, I couldn't remember which it was, 64 or 640. I figured that it couldn't possibly be as small as 64K! lol

640K is the old DOS memory limit.

Posted

Scary but true! 64,000 character limit. 640,000 would be great for 5.5 in my solutions, but alas, 'tis not the case.

Posted

Hey, Giraffe.

Is this by any chance a one-off?

If so, export as comma delimited Fname, LName.

Import to Excel or other spreadsheet and transpose rows and columns.

Export from Excel as comma-delimited.

Depending on how big your database is, I think you could have problems with the size of your two resulting records. Many text editors truncate at ?? and I think this is a system limitation not the editors' authors. I think ?? might be the magic 64k but not sure. BigThumbUp.gif

  • 2 weeks later...
Posted

Wow, this is almost the answer to the question I was about to post...but not quite. I need to do something like what -Queue- was suggesting (but I think that the character limit will make this infeasible for us), but it is not a one time thing, so I'd like to make it as quick an user-interaction free as possible. Does anyone see another way to do this?

I have been searching this site for a while to see if there's anything about this. A different post mentioned using an ODBC link. I am embarrassed to admit that I have no idea what this is. I'm using FileMaker version 4, and I can't find anything in the help about this...is it something only available in newer versions?

This topic is 7204 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.