May 17, 2008

Delphi Password Loading To Text Box

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Assembler and Delphi

free web hosting

Delphi Password Loading To Text Box

Cena_54
IPB Image

As you can see from this image, I have a listbox which loads in the usernames from a .DAT file, which has been encrypted and decrypted using the parsestring function.

However, I cannot get the type of user (e.g. Administrator, Supervisor, Guest) to load into the Combobox below, and the password of the user selected to load into the password Textbox. I have a procedure called:

CODE
[b]procedure[/b] LoadPasswordFile;


and in this code there is a procedure called:

CODE
[b]procedure[/b] DisplayRecord;

and the code for that is as follows:

CODE
// Display the record.
     FrmOptions.LstUsers.ItemIndex      := StrToInt (s_user[i_currrec]);
     FrmOptions.CmbLoginType.ItemIndex := StrToInt (s_type[i_currrec]);
     FrmOptions.TxtPassword.Text := s_password[i_currrec];


The code for loading the password file is below also if that helps:

CODE
/ Start to read the records into the arrays.
          while not eof(f_handle) do
          begin
               Readln(f_handle, s_inputtext);

                // Check that the line contains data.
               if s_inputtext > '' then
               begin
                    parsestring(s_inputtext, temp_string);
                    s_user[i_norecords] := decrypt(temp_string, length(temp_string));
                    FrmOptions.LstUsers.Items.Add(s_user[i_norecords]);
                    parsestring(s_inputtext, temp_string);
                    s_type[i_norecords] := decrypt(temp_string, length(temp_string));
                    s_password[i_norecords] := Decrypt(Copy(s_inputtext, 2,
                                               Length(s_inputtext) - 2),
                                               Length(Copy(s_inputtext, 2,
                                               Length(s_inputtext) - 2)));
               end;


Thanks a lot if anyone can help me!

 

 

 


Reply

DeveloperX
QUOTE
Delphi Password Loading To Text Box


For showing password at TextBox you should use * - it's "password char" field in object inspector.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. delphi load ftp - 2.70 hr back.
  2. text box delphi 7 - 4.74 hr back.
  3. inputbox delphi password - 6.71 hr back.
  4. password delphi - 10.80 hr back.
  5. delphi passwordchar empty - 22.71 hr back.
  6. delphi check ad password - 26.99 hr back.
Similar Topics

Keywords : delphi, password, loading, text, box

  1. Source Code Troubles {delphi}
    (2)
  2. Delphi Questions...
    Maybe you can help me... (1)
    I'm going to start working on a new project that I have been thinking about. I have a
    programming contest in my highschool in february next year (I have won this year's edition) and
    I hope this new project will be my masterpierce. That is why I want to start working early. Well it
    is going to be an encoding software (for text.. txt, doc, only... nothing too fancy). I have a lot
    of functions in my mind that I would like to see implemented into the software. That's why I
    need some help from somebody who knows more then I do. There are three things I need help w....
  3. Delphi Panels Help
    I need help with the colour of panels! (0)
    Right, first off, I have three forms, FrmSplash = Splash Screen, FrmPassword = Username/Log-In
    Screen and FrmMain = The main form. On all three of those forms I have the colour of the forms set
    to clBlack. on FrmMain, I have input many panels which contain text, and I have set a few of them to
    clBlack with a border around, and the rest of those, to clGrey with borders around also. In design
    view, the form looks perfectly ok, however, when I run the program, the panels which are grey,
    actually turn out to be black. I have tried changing the panels to red, blue, green, ye....
  4. Splash Screen & User/password Login Screen!
    (0)
    If anyone can help me on this I would be really grateful. I am creating a Theatre Booking Sytsme
    using Delphi 7 Personal Edition, and at current I have 3 forms. FrmMain, FrmSplash and FrmPassword.
    I need help on how to get a splash screen, which I want a timer event which will have a progress
    bar, and like every 2 seconds loads an image which I place on the form. Also, after the the splash
    screen has loaded, it will then move onto the password screen. Which will automatically load
    usernames into a LstBox from a text file or from the LstBox itself, and then there will be ....
  5. Need Help To Convert Code To Delphi
    (0)
    . any help is appreciated. the code is supposed to give the index of elements in an array with a
    maxSum for any combination of elements in the array while the maxsum is still less than an
    allowedMax. See the example at the end of code. CODE function maximum_subset_sum
    ($max, $candidate_array) { $working_array = array(); while
    ($next = each($candidate_array)) { $candidate =
    $next['value']; $sums_to_date = array_keys($working_array);
    while ($marked_sum = ea....
  6. Delphi Is Easy And Most Oop-d Language.
    Delphi is very good to write OOP code. (6)
    Lets discuss about Delphi. Itr is very good Visual Language. Exchange an opinions.....
  7. My First Contribution
    book delphi to learn how to program (0)
    pass:www.mocoforo.com http://rapidshare.de/files/1804867/Masteri...lphi_6.rar.html I wait they
    like it /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ....
  8. Make Anty-spyware Program In Delphi 7 ?
    How to make anty-spy program?? (3)
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0' style='vertical-alig....
  9. Delphi Upgrade!
    Should I Upgrade? (2)
    When I started programming in Delphi I didn't care too much about what version I was going to
    use since I was learning the basic functions. But half an year has passed since that moment and I
    have started to care. I am using version 7 (enterprise) now, but I am dreaming for an upgrade. So is
    it worth to upgrade?....
  10. Delphi Question
    .... (9)
    I've been learning C++ alot lately and would like to learn Delphi/Pascal and I seem to not be
    able to find anywhere to begin...so does anyone know where I could find a Delphi/Pascal tutorial?
    And uh...what's Delphi like? Is it as good as C++?....
  11. Delphi
    (6)
    Delphi is a great langguage , does anyone else Agree? I love the fact that the IDE is so fast - and
    it compiles really fast too. Also it makes hadling the windows API really easy by putting wrappers
    round most api functions that make it easy to access. The compiler is very fast. I don't like
    Delphi 8 though - its biased twoards NET programming - and I don't like microsoft stuff too
    much. I suggest going for Delphi 9 when you can - and after its been released an update since the
    current verison is a bit suspect. An update is due soon....
  12. Raccourcis Delphi
    (0)
    Ctrl +Espace Dans l'éditeur : complète le mot sur lequel se trouve le curseur en listant les
    possibilités de variables et autres Ctrl+Maj +Espace Pour afficher la syntaxe des méthodes :
    Ctrl+Maj+ flèche haut ou bas Dans l'éditeur : aller directement de la déclaration d'une
    méthodes à son implémentation et réciproquement. Ctrl + bouton gauche de la souris Permet
    d'aller d'un nom de procedure, de fonction ou de type vers l'unité où il est déclaré et
    ce, en se plaçant sur son implémentation. Des flèches en haut à droite de la fenêtre du c....
  13. Gestion Des Exceptions Sous Delphi
    (0)
    Gestion des exceptions sous Delphi 1. Introduction En tant que programmeur Delphi (ou une autre
    language orienté objet), vous avez été ou serez amenés à rencontrer des exceptions. En
    programmation, il est difficile et alourdissant pour le code de contrôler toutes les valeurs
    renvoyées par les fonctions, les entrées utilisateurs, ... Heureusement, le language (le pascal
    objet) nous informe des erreurs et interrompt le programme et affiche un message descriptif de
    l'erreur. Dans ce cas, comme on a une erreur et que par conséquent les données sont incertaines,
    le progr....
  14. Delphi 2005 Gratuit Pour Une Utilisation Personnel
    (0)
    Delphi 2005 gratuit pour une utilisation personnelle En voilà une bonne nouvelle... Borland sortira
    une version personnelle de Delphi 2005 (pour une utilisation non commercial)... Rappelons que la
    dernière version de Delphi permettra de programmer des applications Win32 et .Net en Delphi et en
    C#... Le logiciel sera disponible en téléchargement sur le site de Borland d'ici peu... Néamoins
    si vous n'aimez pas la gratuité, vous pouvez acheter la version architecte pour seulement 3000€
    /wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /> (Disponi....
  15. Sémaphores Et Mutex En Delphi Et Java
    (0)
    Sémaphores et Mutex en Delphi et Java Date de publication : 28/09/2004 Par Wormful_sickfoot
    (Section Tutoriels) Comment utiliser des sémaphores et des mutex en Delphi et Java ?
    Avant-Propos Introduction 1. Qu’est-ce qu’un sémaphore ? Qu’est-ce qu’un mutex ? 1.1. Principe des
    sémaphores 1.2. Un exemple concret 1.3. Un exemple informatique 1.4. Principe des mutex 2. Principe
    de fonctionnement 2.1. Programmes, processus et threads 2.2. Le mécanisme des sémaphores 2.3.
    L'approche Objet 3. Programmation sous Delphi 3.1. Définition de la classe TSemaphore 3.2.
    Constr....
  16. Premier Contact Avec Le Futur De Delphi
    (0)
    Premier contact avec le futur de Delphi Date de publication : 9/10/2004 Par Pierre Castelain
    (Contributions) Premier contact avec le futur de Delphi. Nom de code : Diamondback 1.
    Introduction 2. Un environnement multi langage 3. EDI Langages Sauvegardes Historique Structure
    Import de composants Fenêtres Palette de composants 4. Editeur de code Refactoring Sync Edit Error
    Insight Help Insight Mise en commentaire d'une sélection 5. Conclusion la suite :
    http://castelain.developpez.com/articles/delphi/2005/test/ ....
  17. Borland Dévoile Delphi 2005
    (0)
    Borland dévoile Delphi 2005 par E. C. (18/10/04) - Borland a dévoilé la semaine dernière la dernière
    version de son outil de développement Delphi 2005, un mouture qui rassemble ses outils de
    développement Win32, .Net, Delphi et C# en un seul et même environnement de développement tout en
    intégrant les outils de gestion du cycle de vie des applications de la marque. Connu
    jusqu'alors sous le nom de code Diamondback, Delphi 2005 a pour but de simplifier la transition
    des développeurs d'architectures anciennes vers les nouvelles architectures orientées services. ....
  18. Interview De Olivier Dahan Sur Delphi 2005
    par developpez.com (0)
    Interview de Olivier Dahan, auteur des deux ouvrages Delphi 7 Studio et Delphi 8 pour .NET aux
    éditions Eyrolles, par l'équipe de www.developpez.com sur la sortie du nouveau Delphi : Delphi
    2005. Interview réalisée par : Sylvain James, rédacteur expert senior de www.developpez.com Voir
    aussi : Découvrez le futur Delphi 2005 ( Delphi et C# ) par Pierre Castelain Les évolutions du
    langage sous Delphi 2005 par Laurent Dardenne Interview de Bruno de Combiens, Chef de produit
    Borland France * Sylvain James : Delphi 2005 : Que pensez-vous de la nouvelle cohab....
  19. Ac C E L E R At E Your Develo P M E N T
    DELPHI 2005 Pascal and C# (0)
    Borland® Delphi™ 2005 is the ultimate development solution for Windows.® With Delphi, C#, Microsoft®
    .NET Framework and Win32® support for GUI, Web, database, modeling, and ALM in one hyperproductive
    RAD environment, Delphi 2005 takes the power of Delphi to the next level, making Windows development
    tasks faster, better, and easier. Designed for developers, Delphi 2005 combines the familiar power
    of Delphi with productivity-boosting features, more languages and SDKs, and streamlined ALM
    integration — putting the “fast and fun” back into Windows development. New technolog....
  20. Borland Delphi 2005 Boosts Microsoft Windows ....
    (0)
    Borland Delphi 2005 Boosts Microsoft Windows Productivity, Optimizes Software Investments
    Groundbreaking New Release Includes Multi-Language Support, Innovative Productivity Advancements and
    Application Lifecycle Management Integration Scotts Valley, Calif. - October 12, 2004 : Borland
    Software (NASDAQ: NM: BORL) today announced Borland® Delphi™ 2005, previously codenamed
    "Diamondback" and the newest version of Borland's Rapid Application Development (RAD)
    environment for Windows® and .NET applications. Delphi 2005 combines Win32, .NET, Delphi and C#
    support all w....
  21. Anyone know Delphi?
    My friend is a translator, (3)
    and he needs someone to help him doing a file in delhi. The program he is translating is called
    Network RPG Maker 2000 and its a freeware Networked RPG Maker (As the name says) The file is in
    Japanese and he can translate that but he doesnt know delphi (The program exists of a few modules
    like the Maker, Game Browser etc. The entire NRM2k community is waiting for him so if you can help
    him with delphi you will be a hero /smile.gif' border='0' style='vertical-align:middle'
    alt='smile.gif' /> The msn of my friend is megaman_8x@hotmail.com - Thanks /smile.gif' border='....
  22. Where can i get a delphi compiler?
    Delphi Compiler (4)
    Hey where can download a free or trial delphi compiler?....

    1. Looking for delphi, password, loading, text, box

Searching Video's for delphi, password, loading, text, box
advertisement



Delphi Password Loading To Text Box



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE