hi folks !
Does anybody know if Vfp 6.0 can support complex type of data such as struct
myDatatype {
type1:String;
type2: Integer
}
and if Yes can this struct be used like this
Hi
Unfortunately, VFP doesn’t support this type of user defined data structure or the concept of structure itself. Sorry for that. Walid Magd
Engwam@Hotmail.com
Hi Rick
Thanks for correcting me, I thought Nefra asking if VFP natively support this data type or not.
For Nefra, as Rick kindly suggested, there are a lot of resources teaching how to play games to get VFP understand Structures, the most important use for this techniques when you have to call API form VFP and this API need a structure data type as parameter. But if you just want to use the structure data type to organize some related data in your program (Nothing to do with API), you can define class instead of structure and each instance of this class will work like structure for you.
Some thing like this..
Ox1=CtreateObject(“MyDataType”)
Ox2= CtreateObject(“MyDataType”)
*-- UserName, UserAdress are properties of your class.
Ox1.UserName=”AnyName1”
Ox1.UserAdress=”AnyAddress1”
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.