Results 1 to 29 of 29

Thread: Changing text in textbox once something is erased

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing text in textbox once something is erased

    Quote Originally Posted by MartinLiss
    Your project is looking for a password for the vbp file.
    It's not letting you open the project?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Changing text in textbox once something is erased

    Quote Originally Posted by paralinx
    It's not letting you open the project?
    I swear the 1st time I tried to open the project it wanted a password for the vbp file and when I didn't supply one it deleted the vbp file! Very strange. In any case I downloaded it again and the only thing I can suggest is that instead of generating the roman numerals that you create a type like this

    VB Code:
    1. Private Type RomanNumerals
    2.     rnRoman As String
    3.     rnUsed As Boolean
    4. End Type
    5. Private Romans(99) As RomanNumerals
    and then load it with the 1st hundred(?) roman numerals setting all the rnUsed flags to False. Then of course you can examine the array for the first one that's not used and when deleting one from your note you would set the associated array member to False.

  3. #3

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing text in textbox once something is erased

    Good idea Martin, thanks. But how could I figure out what roman numerals were erased if the textbox has something like this in it..

    Code:
    I. Blah blah blah blah
    	A. blah blah blah blah
    	B. blah
    		-blah blah
    		-blah bleh?
    II. Bleh blah blah
    	A. Blah 
    III. Hey more blah
    	a. you want some more blah? 
    	b. because I sure do
    It would be hard to tell when a roman numeral was taken out. Unless there was some way I could search for all roman numerals

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Changing text in textbox once something is erased

    You'd need to scan your text constantly - timer comes to mind first...
    If "I" is found then search for "II" and so on ... InStr() may work but the problem is that you may have refences somewhere in the paragraph (say VI) to another paragraph (some like "...see par IV for more info ...) and that could still be there. So, InStr will return true and indexing will be out of bounds.

  5. #5

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing text in textbox once something is erased

    Well that may not be a problem. Because after every roman numeral I have my program insert a ".", I could just search "I."

    But good idea rhino, I'll give this a try.

  6. #6

  7. #7
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Changing text in textbox once something is erased

    Is it also true that there will never be any text to the left of the roman numeral? If so then that's a test you could use to determine what's there. That would also help you avoid things like "My favorite king is George V."

Posting Permissions

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



Click Here to Expand Forum to Full Width