Results 1 to 2 of 2

Thread: Save property to be edited in a variable?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    FL
    Posts
    10

    Save property to be edited in a variable?

    I'm writing a program where the property that will be changed will vary but all the other code will not. I'd like to write a subroutine, but how do I pass a subroutine what property of the object to edit. Is this possible to do without assigning a string "FontBold" or something and then doing a case statement in the subroutine to determine what property to modify? I'm going to be working with around 30 properties so I don't want a huge case statement. Any help would be greatly appreciated. Thanks in advance

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Well... you can do it but it requires you to start crapping with the workings of COM and poking stuff into memory... not good ground. Make one bit wrong and the whole machine will be toast. Reboot two or three times to clean up the residual errors...hope your hard drive doesn't get corrupted...........not fun/unless yur sadistic and masochistic and whatever other weird disorders there may be.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

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