Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nochoice

    4 arrays 5 options = 1024 IF statements......no cool.

    Awesome, It works perfectly! I combined both of your ideas and came up with this: output = new Array(first, second, third); //define arrays for(count=0; count < url.length; count++) { document.write (url[count]); for (counter=0; counter < output.length; counter++) { if...
  2. nochoice

    4 arrays 5 options = 1024 IF statements......no cool.

    Wow! thanks, I think it's time to do some coding. I'll let you know how it turns out.
  3. nochoice

    4 arrays 5 options = 1024 IF statements......no cool.

    it's a bit abstract for me too I haven't written the code yet I'm working on structure right now, but here's what I can tell you: var1 = what should be displayed in the first column var2 = what should be displayed in the second column var3 = what should be displayed in the third column var4 =...
  4. nochoice

    4 arrays 5 options = 1024 IF statements......no cool.

    I have, not necessarily a Jscript question, but a programing question. In an html file I call a Jscript function and pass it 4 variables: <script language=&quot;JavaScript1.2&quot;>myfunction(var1,var2,var3,var4);</script> the Jscript function is in an external .js file. Each variable can...
  5. nochoice

    Parsing a Variable

    Awesome! Thanks Sean.
  6. nochoice

    Parsing a Variable

    Ok, both look like good options. I am attempting to implement Regexp::Common::profanity but would also like to try the array deal, I see it as being a little more flexible - although tedious. If I had a variable $name and it's value was &quot;MikPPPe JohnPPPston&quot;: $name = &quot;MikPPPe...
  7. nochoice

    Parsing a Variable

    Hey Everybody, I have my users enter some information into a form and submit it. Then I do the standard checking of the form to make sure all entries were filled in correctly, if they were, the information is posted. What I'm worried about is swearing and other such bad language. I would...
  8. nochoice

    Altering a Variable using ~ s/

    ok found the problem... It doesn't like the [ so I replaced it with \[ and everything works perfectly. Thanks for looking. Michael
  9. nochoice

    Altering a Variable using ~ s/

    Hey everyone, I have a file that is java script. At the beginning of the file I define an array of pictures like this: images[0]=&quot;....stuf...&quot;; images[1]=&quot;....stuf...&quot;; images[2]=&quot;....stuf...&quot;; ... images[15]=&quot;....stuf...&quot;; Anybody can add their...
  10. nochoice

    How to see if a file exists

    Thanks guys! It works well.
  11. nochoice

    How to see if a file exists

    Hey guys here's my issue: I am interested in determining if a file exists. Here's the scenario: 1) user wants to add their engineering website to my linklist. 2) User fills in a simple form - name, eng porgram, URL of websited, etc.... and hits submit. 3) I want to verify that the URL they...
  12. nochoice

    fly out menus

    I haven't had a chance to try this yet, I'm assuming that it works, so here's my next question: Why will it work if I break up the word script? It just doesn't make sense to me, I'm not saying that it doesn't, I just don't understand....... thanks, NoChoice
  13. nochoice

    fly out menus

    I have a .js file that is loaded exactly as you have stated above: <script src=&quot;myTextFile.js&quot;></script> In this .js file, I have this line: <script src=&quot;myTextFile.js&quot;></script> unfortunately I can't seem to embedd a .js call within a .js file...... Is it possible to...
  14. nochoice

    Disable the Close (X) button in a Word Document

    I would like to take thread707-567962 a little further. Is it possible to disable the close button on a word document? The reason I would like this is, there is a Macro I want to run before I exit my Word documents and by force of habit, I frequently hit the (x) and click save. I want to...
  15. nochoice

    Counting chars in Word

    try this to move the cursor to the beginning of the file: Selection.HomeKey Unit:=wdStory to move your cursor 524 time to the left: Selection.MoveLeft Unit:=wdCharacter, Count:=523 note: This puts you at the beginning of Character 524 to highlight final 2 spaces Selection.MoveLeft...
  16. nochoice

    Need help with macro

    Redwolfe, To insert a symbol into a powerpoint textbox: MyTxtBox.InsertSymbol FontName:=&quot;Symbol&quot;, CharNumber:=226 this inserts Character 226 from the Symbol font set to a textbox called MyTxtbox. To run this when opening the file put the code in a sub called AutoOpen. To do this...
  17. nochoice

    Populate a word form with information from an excel spreadsheet

    Assuming you are populating a listbox or a combobox on a form, first you need to create an array then you fill the box with the array, here is an example of populating MyListBox on MyUserForm: Dim MyArray(2,100) as String 'If you do not know the dimensions of the array, dimension it like this...
  18. nochoice

    Populate a word form with information from an excel spreadsheet

    Here is some of my code, I hope it helps you: Dim oExcel As Object Dim oWbk As Object 'opening excel in the background Set oExcel = CreateObject(&quot;Excel.application&quot;) Set oWbk = oExcel.Workbooks.Open(&quot;name of excel file.xls&quot;) 'this saves and closes excel oWbk.Save...
  19. nochoice

    Reading from a Muli Column ComboBox - Word

    This is my solution: Mycombobox.BoundColumn = 1 MsgBox MyCombobox.value Mycombobox.BoundColumn = 2 MsgBox MyCombobox.value Displays the following: aa152c126 Chapter 1 I hope this helps anybody who's interested in reading from a multicolumn Combo or List box. Cheers, NoChoice
  20. nochoice

    Str() Why does it add a space?

    Thanks for the quick response. It works well.

Part and Inventory Search

Back
Top