formatting a field with SQL data.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
d.m.holdawayGA2553
Posts: 81
Joined: Mon Jan 09, 2012 4:48 pm

formatting a field with SQL data.

Post by d.m.holdawayGA2553 » Tue Aug 14, 2012 10:37 am

hello,

at the moment my my code pulls in some data from a SQL database, it works a treat but i am having trouble formatting it

at the moment it pulls in names from a address book for example and displays them

darren,dave,ian,simon

what i would like it to do is list them

darren
dave
ian
simon

any ideas?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: formatting a field with SQL data.

Post by bn » Tue Aug 14, 2012 11:08 am

How about:

Code: Select all

replace comma with return in myNames
put myNames into field "theNames"
where myNames is the variable with the names.
Kind regards
Bernd

d.m.holdawayGA2553
Posts: 81
Joined: Mon Jan 09, 2012 4:48 pm

Re: formatting a field with SQL data.

Post by d.m.holdawayGA2553 » Tue Aug 14, 2012 11:13 am

is that it?

gosh i feel like such a idiot.... haha

Post Reply