-
Wtf?? 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!
-
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
-
Then how come i cant find the text "thedata" and "thedata$" in the app? it looks something like a function...
-
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