New topic: 

Lorem Ipsum generator

<http://forums.realsoftware.com/viewtopic.php?t=46041>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        oleman108          Post subject: Lorem Ipsum generatorPosted: 
Sun Nov 25, 2012 11:00 am                                 
Joined: Tue Sep 02, 2008 3:01 pm
Posts: 176
Location: Switzerland                If ever you have a need to display random 
text in one of your apps - to fill listboxes or textareas - then you might be 
interested in the loripsum.net api.  
For example: Create an RB project, add a textarea and paste this code to its 
open event handler: 
Dim http As New HTTPSocket
TextArea1.Text=TextArea1.Text _
  + http.Get("http://loripsum.net/api/1/plaintext",30)

Quote:How do I use the API?

Just do a GET request on loripsum.net/api, to get some placeholder text. You 
can add extra parameters to specify the output you're going to get. Say, you 
need 10 short paragraphs with headings, use loripsum.net/api/10/short/headers. 
All of the possible parameters are:

  (integer) - The number of paragraphs to generate.
  short, medium, long, verylong - The average length of a paragraph.
  decorate - Add bold, italic and marked text.
  link - Add links.
  ul - Add unordered lists.
  ol - Add numbered lists.
  dl - Add description lists.
  bq - Add blockquotes.
  code - Add code samples.
  headers - Add headers.
  allcaps - Use ALL CAPS.
  prude - Prude version.
  plaintext - Return plain text, no HTML.

      
_________________
"Stop deluding yourself with wishful thinking and find a solution that works 
for what you need to do"
Tim Hare - on forums.realsoftware.com  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to