The World's Simplest Code Generator

Are you a programmer? Meet your new best friend.

Update! New version out now: the World's 2nd Simplest Code Generator

the worlds simplest code generator

Enter comma separated data into the first box. Type a 'Pattern' into the second box. Press 'Calculate' and Voila! The data and the pattern are merged.

<% 'For Each Item In Request.Form ' Response.Write "Item: " & Item & " Value:" & (Request.Form(Item)) & "
" 'next Dim sRows Dim sRowArray Dim sRow Dim sFields Dim sFieldArray Dim sField Dim sTemplate Dim sResponse Dim sReponseLine Dim iFieldNum sRows = Request.Form("TextRows") sTemplate = Request.Form("TextTemplate") if Replace(sRows,"vbcrlf","") = "" then sRows = "me,you" + vbcrlf + "you,me" end if if sTemplate = "" then sTemplate = "$1 loves $2 " + vbcrlf end if sRowArray = Split(sRows, vbCrLf) sResponse = "" Dim iRowNum For each sRow in sRowArray sFieldArray = Split(sRow, ",") iFieldNum = 0 iRowNum = iRowNum + 1 sResponseLine = sTemplate For each sField in sFieldArray iFieldNum = iFieldNum + 1 sResponseLine = Replace(sResponseLine, "$" & iFieldNum, sField) Next sResponse = sResponse & sResponseLine Next %>

Merge These Rows

Into This Pattern


If you use this generator, you might find it useful to store your Patterns in the comment area below...


I'm currently writing a book about how to build your first product. If you want to build your first product, please sign up to be notified when the book is available.

(By the way, I read every comment and often respond.)

Your comment, please?

Your Name
Your Url (optional)
Note: I may edit, reuse or delete your comment. Don't be mean.