Results 1 to 4 of 4

Thread: ***?? thedata$???

  1. #1
    Stiletto
    Guest

    ***?? thedata$???

    susp all..
    while i was workin on my app... iv checked my friend's app for something, and i saw the "thedata$" thing...
    i dont know what it is, and how to declare it. Here's an xample:
    Code:
    .
    Line Input #1, thedata$
    List2.AddItem thedata$
    .
    can ne1 plz tell me *** is it and how can i use it and declare it?
    tnx!

  2. #2
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    you wont believe how somple this is (unless I am wrong and I misinterpreted your question)
    if you put the $ sign after a word, it is a string. simple as that. You could say Dim thedata As string then do whatever you want with it
    retired member. Thanks for everything

  3. #3
    Stiletto
    Guest
    Then how come i cant find the text "thedata" and "thedata$" in the app? it looks something like a function...

  4. #4
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    As markman said i think that this is just a basic String variable. The reason that you can't see it in the app is becos 1) Your friend prob hasnt set Option Explicit at the start of the form code (thereby requiring variable declaration thru Dim) and 2) Your friend prob accesses the resultant data using a reference to the List box where the text was loaded.

    Try setting Option Explicit at the top of the form and see if the expected error "Compile Error - Variable Not Defined" occurs.
    You would define by- Dim data$ As String (at start of form code or routine)

    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

Posting Permissions

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



Click Here to Expand Forum to Full Width