I have a table with 2 columns: 1 with names of students and the second field with their marks for the 1st week. At the end of the second week, I want to add the marks of that week with that of the 1st week. I do it in vb6. Can it be updated in the marks column?
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
/* REXX is better than JAVA */
input = '17273747'
x = count7(input)
say 'number of "7" characters is:' x
count7: parse arg digit 2 tail
if digit = ' ' then return(0)
match = (digit = '7')
return (match + count7(tail))
i.e., split the "input" into the 1st column and the "tail" (the other columns).
If there is no "first" column, return '0' ("none").
Test the 1st column.
Recursively call the function, passing the "second-through-last" columns, adding-in the result (0 or 1) from the 1st column.
RIGHT CLICK ON MY COMPUTER AND SELECT THE MANAGE AND SELECT USER AND GROUPS CLICK YOUR USER ON WHICH YOU WANT CREATE PASSWORD RIGHT CLICK THE USER AND SET PASSWORD AND FILL THE PASSWORD AND ENTER NOW YOUR PASSWORD WILL SET ENJOY
Hi, Well there are lots of topics on which you can develop projects. Some nicest topics are:- 1.College Intranet 2.Any social website 3.Any website playing videos. 4.A small compiler 5.Voice recogonising software for ecommerce etc
It didn't enter the big if statement because all of the conditions to enter the loop were not met. You will need to set a breakpoint on the If statement and look at the values to find out why it falls short of the criteria.
Also, instead of incrementing the loop variables immediately before the Next statement, you could simply include a Step 2 modifier in the For statement to check every other row in the tables. You should not manually modify a counter in a For loop. You have class-level variables that appear to be used only inside of a Sub (that is where they should be declared unless they are used in another function in the class). You should be giving variables meaningful names and types. The variables d, h, and f are declared as integers, but treated as booleans and their names give no idication of their use in the code. And last (for now), the check3times varialbe is declared but never used.