Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Location
Message
De
23/04/2004 10:39:59
 
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00896445
Message ID:
00897601
Vues:
14
as the code above shows, the DB it seems to be placed in the same folder that the aplication is placed. in this case what you are declaring here is the conection to that Database and as the code could say for itself,
the DataBase is in the same folder of the Application, look there man, is has to be there!

now for your second question: (by the way, don't put more than one question in a thread, that is not allowed here)

(2). Is there a way that would tell me if the object on a form is a label,textbox,checkbox etc. (Like vfp class)

Yes it is, Friend!, Visual Basic has everything you need to make dreams come true! here's the snnipet friend:

'let's say you want to erase all the content of different text boxes on a form, but you don't want to create
'a code that set the text property of each of the textbox controls to "" separately,
'(and you dont' have to by the way). well here is where our friendly function TypeName()
'come to the stage and save our day:

Private Sub cmdErase_Click()
Dim t As Control

For Each t in Me.Controls
If TypeName(t) ="TextBox" then
t.Text =""
End If
Next
End Sub
' I use Me instead of the name of the form in which you will set this code,
' Me is something like This in Fox Pro :0)

'That is all Friend, now Enjoy yourself and put an smile on it! Peace!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform