Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

PasswordChar

2 questions.1. how do i use the PasswordChar property as a function. 2. lets say in the text1 i typed in a text with the "*" as the passwordchar. and in text2. i type in a letter. then how would i have it so when i click a button the letter in the letter if its contain in text1 would pop out in a text3, like this: **d***d***


i.e. word=Programmer text1=********** text2=r

button text3=*r**r****r.


hope u people understand


Comments

  • : 2 questions.1. how do i use the PasswordChar property as a function. 2. lets say in the text1 i typed in a text with the "*" as the passwordchar. and in text2. i type in a letter. then how would i have it so when i click a button the letter in the letter if its contain in text1 would pop out in a text3, like this: **d***d***


    : i.e. word=Programmer text1=********** text2=r

    : button text3=*r**r****r.


    : hope u people understand




    Hello,


    I don't think PasswordChar is what you are looking for. If you are looking to create an appliation, something similar to Wheel of Fortune, you can have one variable with the hidden word, have another variable that will contain the character that you are searching for, in the word, and another variable that contains the lenght of the word, in stars. Once a character is uncovered, change the third word to reflect where the character appears. You will have to have a function that searches the hidden word, for the character that the person where to enter.


    You probably can find some functions that will do this, at the following address.


    http://premium.microsoft.com/msdn/library/tools/vbsref/d1/keyword.htm


    If you do not have access to this link, simply follow the steps to get your MSDN Online resource access. This is a great tool and it is free!


    I hope that this is helpful!


    Sincerely,

    Keenan


    Keenan Stewart (keenan_stewart@scholars.com)

    Learning Advisor, http://scholars.com


    Microsoft Certified Technical Education Center

    Novell Authorized Online Training Provider


    URL:http://scholars.com

  • Hi there,


    I was unable to find an exact function that would allow you to have a hidden word, and then compare what the user guesses, to the hidden word. This function would have to be an array function of some sort, to get each letter that is in the hidden word.


    You could do this by the following:


    Try having your hidden word broken up into different variables. For example, if you hidden word of , you can have four different variables, one for each different letter in the word. Once the user guesses a correct letter, , you can update one text box that would have your <****> textbox, to , or something similar. You can use a select case statement to compare what the user guesses, as compared to what the actually hidden word contains.


    Note: This is a very inefficient way, but would perform the trick!


    I am sorry about not having a function that would take each letter from the word, so that you could more easily compare the hidden word, to what the user would guess. There could very well be a function that allows you to do just this, but I am unaware of this function.


    I hope that this information helps. Have an excellent day!


    Sincerely,

    Keenan


    Keenan Stewart (keenan_stewart@scholars.com)

    Learning Advisor, http://scholars.com


    Microsoft Certified Technical Education Center

    Novell Authorized Online Training Provider


    URL:http://scholars.com

  • Andre YoungAndre Young USAMember Posts: 0

    _____ [ http://forcoder.org ] free video tutorials and ebooks about // Scratch, Visual Basic, Objective-C, PHP, Swift, MATLAB, Python, C#, Ruby, Delphi, Assembly, Java, R, C, Perl, Visual Basic .NET, JavaScript, Go, PL/SQL, C++ Prolog, Apex, VBScript, Julia, Scala, Lisp, COBOL, Erlang, ABAP, Rust, FoxPro, F#, Hack, LabVIEW, Fortran, Scheme, SAS, Dart, Crystal, Clojure, Lua, Awk, Alice, ML, Logo, Kotlin, Bash, D, Transact-SQL, Ada // _____________

Sign In or Register to comment.