thats guys that worked like a champ there are still a few bugs i have noticed though.
1. if you happen to go over 40 names you get the alert but then if you de-select the 41st name you get the alert again and every time thereafter wether selecting or de-selecting.
2. is it possible when a user clicks the 40st name after the alert box to deselect the name they just selected as the 41st and subtract it from the counter...
User Profile
Collapse
-
Select Box & JavaScript Functions Question
Hello All,
I have a multi-select list box, In this box is a list of names. I want to call a javascript onClick that will keep a running total of how many people were clicked. As soon as a user tries to click the 41st item (only 40 allowed) I want to alert the user, they cannot select more then 40 participants in this box.
Here is what i have so far:
...Code:<script> function KeepTotal(){ -
Hey thanks for the input. I tried using the vb search and replace function the problem im running into is this. In my code im using sFrom1 and sTo1 as the variables for the string to find and the string to replace it with. When i check the variable values with a msgbox on the sFrom1 variable it looks like the string im looking for HOWEVER when i pass that value into my function or the standard vb replace function it passes it in with a slew of extra...Leave a comment:
-
-
Problem With String Manipulation in VB6
Hello All,
I could really use some help with this problem its driving me nuts. I have a small vb app, the goal of the app is to read an html doc into a variable then go through that variable and find and replace some tags. I have 3 functions. 1 to open the doc, the 2nd to find and replace the tags the 3rd to save the info. the code is pasted below :
...Code:Public Function ReadFileContents(FileFullPath As String) As _
No activity results to display
Show More
Leave a comment: