Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Operatos and dll
Message
 
 
À
29/07/1998 08:08:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00122248
Message ID:
00122363
Vues:
16
Edilyn,

>What are dot (.) and scope resolution (::) operators?

dot(.) is used to seperate the object name components. Everyone put the last one indicates the containership of the object. Following the last one is the method or property name:
thisform.pgfMain.pagEmployee.grdEmployeeList.colFirstName.Text1.ForeColor = 255
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ *********
The names marked with ^ give the full containership name of a cell inside a grid, the Text1 is inside a column named colFirstName which in inside a grid named grdEmployeeList which is in a page pagEmployee which is in a pageframe pgfMain which is in a form.

The name after the last dot marked with * above is the object Property that is going to be changed.

The scope resolution operator :: (you can also use DoDefault()) is used when you override method code in subclasses or objects so that you can make a call to the method code you are inheriting from the class structure.

define class cmdTest as cCommandButton
procedure Click
cCommandButton::Click() && since we are overriding this method we have to explicitly call the method we inherited
debugout "That tickles"
endproc
enddefine

define class cCommandButton as CommandButton
procedure Click
debugout "You Clicked?"
endproc
enddefine


>How to use dynamic link libararies (dll) in visual foxpro?

DLLs are extremely easy to use in VFP on my website are several examples of calling API DLL functions, and how you can use VC++ to create a callable DLL.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform