This is a tough one!!

Results 1 to 2 of 2

Thread: This is a tough one!!

  1. #1
    Join Date
    Dec 1969

    Default This is a tough one!!

    OK, now this is dead hard so only read on if you think you can handle it!! (you have been warned!!)<BR><BR>I want to be able to scan through a .css file and build up a list of all the classes in the style sheet. I then want to break this string down to populate a list box with the classes. I know how to do the breaking up of the string and creating the list box but don&#039;t know how to pull the info from the css. At a push I could include a new line in the .css saying something like:<BR><BR>*class1**class2**class3*<BR><BR>Thank s for any help and sorry to dump this on ya!!<BR><BR>Russ

  2. #2
    Wasabi Guest

    Default That's easy

    Do a textfile read using fso. if a line starts with a . then get the substring from . to { or to the end of the line, depending on how you code a css...<BR><BR>.MyClass {<BR>or <BR>.MyClass<BR>{<BR><BR>see? you can use either readall and find them that way or readlines and find the class names line by line.<BR><BR>Wasabi

Posting Permissions

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