Results 1 to 11 of 11

Thread: Wrineln- Seriouse Question-(Not a noob)

  1. #1
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Wrineln- Seriouse Question-(Not a noob)

    Ok I was wondering if any one knows how to make the writeln do *s instead of the actual letters


    like heres the example

    writeln('Password = ' + bobistrong);


    Ok in the debug box it would say, Password = bobistrong

    I need it to say

    Password = *********

    instead of

    Password = bobistrong

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    writeln('Password = *********')

  3. #3
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thats not what i mean


    I need to change it so it displays the text typed in as ******

    something like

    password = (change char to **s) bobistrong

    So It would get the amount correct.

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    const pass='6chars';

    function PrivatePass(ThePass:string):string;
    var i,HowMany:integer;
    begin
      HowMany:=Length(ThePass);
      repeat
        result:=result+'*';
        i:=i+1;
      until i=HowMany;
    end;

     
    begin
      SetupSRL;
      writeln('Password = '+PrivatePass(pass))

    end.

    But why does it need to be the same length? Wouldn't that be revealing more information about the password, when the whole point is not reveal the password?

  5. #5
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Why would you want it to write the password in the debug box?

  6. #6
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks.

  7. #7
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    yeah i was always wondering how you make it so when you type text in a form or something it shows up as **** in place of the text. how would you do that?

  8. #8
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Go here

    press ctrl+F and type

    To make your password appear

  9. #9
    Join Date
    Mar 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Post Percocet question and more free full information.

    Ok I actually read this and it was funny ~Wizzup?

  10. #10
    Join Date
    Sep 2006
    Location
    Australia
    Posts
    425
    Mentioned
    0 Post(s)
    Quoted
    34 Post(s)

    Default

    ^^ go die..

  11. #11
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mjordan, you can make the * appear in an edit box on the form by adding this in your initform procedures

    Edit1.PasswordChar:= '*';

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Noob question
    By Bobarkinator in forum Delphi/FPC Help and Tutorials
    Replies: 4
    Last Post: 07-31-2007, 03:03 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
  •