How to code a function to check strings.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jremio
    New Member
    • Oct 2008
    • 2

    How to code a function to check strings.

    Hi all,

    I just started programming about 1 week ago. i would appreciate if anyone can tell me how to code a function in VB6 that returns a values depending on the string it.

    For example, if the parameter passed is a string containing the value #yyyy#, i want the function to return the year, eg 2008. And if the value of the parameter is #yyyy##mm# the function should return eg 200810. which is the year and month and so on. Can anyone suggest how am i going to do this?

    Thanks!
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    since you are passing all the values what is the output you want ?

    Comment

    Working...