How would you use the functions sin(), pow(), sqrt()?

Showing Answers 1 - 3 of 3 Answers

pradeep sripada

  • Jun 22nd, 2007
 

Yes i used the pow function earlier. once i came to a situation to generate the links in the menu page on my left hand side panel when the user selects some products in each form. For ex: in the first form when the user is non us person or us person then a link name xxx should be generated under the link tttt (which was initially generated when the form is loaded.). In the next page some products will be displayed, in those products when the user selects a product (rrrr) and gives the source of buying the product is yyyy then a link should be generated on the menu under the link 2 with the products and the source of buying the product.  For this links generation i used it.

tttt
  - xxxx
rrrr
  -yyyy
      -sub menu

Function parseselection(ByVal menuval As Integer)

Dim returnval As String

Dim flag As Boolean = False

For j As Integer = 0 To 10

If (menuval And Pow(2, j)) = Pow(2, j) Then

returnval = returnval + j.ToString + "-"

flag = True

End If

Next

If flag Then

returnval = returnval.Substring(0, returnval.Length - 1)

End If

Return returnval

End Function

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions