|
-
Jul 21st, 2001, 04:23 PM
#1
***?? 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!
-
Jul 21st, 2001, 04:30 PM
#2
Frenzied Member
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 
-
Jul 21st, 2001, 04:40 PM
#3
Then how come i cant find the text "thedata" and "thedata$" in the app? it looks something like a function...
-
Jul 21st, 2001, 07:05 PM
#4
PowerPoster
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|