Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2007
    Posts
    452

    Grin Input Code Change

    Code:
    strText = String.Replace(strText, "[IMG", "<img src=", false);
    strText = String.Replace(strText, "[/IMG]", "", false);
    strText = String.Replace(strText, "]", ">", false);
    what wrong with the code above ??? it doesnt load the picture !!!!

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    the tags look ok

    are you allowing your app to get through your firewall ?
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Mar 2007
    Posts
    452
    have a look error1 and error2...
    error1 : trying to load the picture
    error2 : couldnt load the picture

    and i am using that code
    strText = String.Replace(strText, "[IMG]", "<img src=", false);
    strText = String.Replace(strText, "[/IMG]", "", false);
    strText = String.Replace(strText, "]", ">", false);
    TextFile.WriteFromString("C:\\temp_preview.html"," <HTML>"..strText.."</HTML>",false);-- write the html file
    File.OpenURL("C:\\temp_preview.html", SW_SHOWNORMAL);-- show the preview
    Attached Images
    Last edited by GoOgLe; 03-27-2007 at 12:08 AM.

  4. #4
    Join Date
    Mar 2007
    Posts
    452

    Huh?

    any help please !!!!!

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    ok i said the tags look ok i was wrong

    strText = String.Replace(strText, "[/IMG]", "", false);

    should be

    strText = String.Replace(strText, "[/IMG]", ">", false);


    you are replacing the tag with nothing
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Mar 2007
    Posts
    452
    thanks alot alot alot Rizlauk

    i have another question ;

    how can i keep the text selected after i add the code so i can add more code without selecting again ???

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    iv already given you the code to do that, but you chose not to use it

    download my bbcoder app and use it to add some tags, see how it works


    this is the code template you will need to have the same effect
    http://www.indigorose.com/forums/sho...4&postcount=11
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    Mar 2007
    Posts
    452
    i have downloaded it Rizlauk much better looking than i sent u...

    i used ur code now and it worked...

    thanks alot

Similar Threads

  1. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  2. Is there any way to change the page color by code?
    By itamar in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 11-20-2005, 12:21 AM
  3. Replies: 1
    Last Post: 10-15-2005, 10:20 AM
  4. Page Back Color - can change by code?
    By itamar in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 06-13-2004, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts