Hello All, I am trying to create a database table using pharo, sqlite. I have taken the argument column names and data type as dictionary. For e.g. "a Dictionary(#DOB->Date #Name->String #Salary->Number )". Now I need to parse over it using keysAndValuesDo: to create a string from it "DOB Date,Name String,Salary Number" which would be used in query. I am not able to concatenate them correctly. Could you suggest some idea. Harshit
Already answered here: http://stackoverflow.com/questions/24750371/dictionary-to-string On 15 Jul 2014, at 08:00, Dokania, Harshit <hdokani2@illinois.edu> wrote:
Hello All,
I am trying to create a database table using pharo, sqlite. I have taken the argument column names and data type as dictionary.
For e.g. "a Dictionary(#DOB->Date #Name->String #Salary->Number )".
Now I need to parse over it using keysAndValuesDo: to create a string from it "DOB Date,Name String,Salary Number" which would be used in query.
I am not able to concatenate them correctly. Could you suggest some idea.
Harshit
Superb! I like the two proposals :) On 15/7/14 08:47, Yuriy Tymchuk wrote:
Already answered here: http://stackoverflow.com/questions/24750371/dictionary-to-string
On 15 Jul 2014, at 08:00, Dokania, Harshit <hdokani2@illinois.edu> wrote:
Hello All,
I am trying to create a database table using pharo, sqlite. I have taken the argument column names and data type as dictionary.
For e.g. "a Dictionary(#DOB->Date #Name->String #Salary->Number )".
Now I need to parse over it using keysAndValuesDo: to create a string from it "DOB Date,Name String,Salary Number" which would be used in query.
I am not able to concatenate them correctly. Could you suggest some idea.
Harshit
participants (3)
-
Dokania, Harshit -
stepharo -
Yuriy Tymchuk