Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Location
    Texas
    Posts
    37

    Unanswered: What's the syntax to token a string?

    What's the syntax to token a string? I used to know but forgot.

    ie myString = "hello ; you" with ; as the token qualifier.

    Too bad strtok ain't available.
    A2K - W2k
    Thanks & Regards
    Pete

  2. #2
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713

    Re: What's the syntax to token a string?

    Originally posted by pltx2000
    What's the syntax to token a string? I used to know but forgot.

    ie myString = "hello ; you" with ; as the token qualifier.

    Too bad strtok ain't available.
    What do you mean? You want to split it? Like:

    Dim ParmListString() As String
    ' Format:
    '
    ' Parent ID, New Work Order [, Work Order #
    ' [, Work Order Tbl (, Record #)
    '
    ParmListString = Split(Me.OpenArgs, ",", -1, vbTextCompare)
    WhosMyParent = CInt(ParmListString(0))
    IsNewWO = CBool(ParmListString(1))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •