User Profile

Collapse

Profile Sidebar

Collapse
jremio
jremio
Last Activity: Nov 17 '08, 07:03 AM
Joined: Oct 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jremio
    started a topic Splitting a string into separate strings

    Splitting a string into separate strings

    Hey I was wondering how do I go about doing this.

    Code:
    strCommand = readCommand("aaa;sss;ddd", 1)
    MsgBox (strCommand)
    Code:
    Public Function readCommand(str As String, position As Integer) As String
    If position = 1 Then
    	str = Split(str, ";")
    	readCommand = str
    End If
    
    End Function
    I want it such that if the position...
    See more | Go to post

  • jremio
    started a topic How to code a function to check strings.

    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...
    See more | Go to post
No activity results to display
Show More
Working...