Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INI section to array
Message
From
20/11/2008 12:23:35
 
 
To
20/11/2008 09:17:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01362902
Message ID:
01363233
Views:
14
To not have a property to pass the array back, try this:
DIMENSION laArray[1]
IF GetINIEntries(lcInitFile, lcSection, @laArray)
   ... got data from INI
ELSE
  ... failed to get data
ENDIF
Then in the function, return .T. for success and .F. for failure; add the following line too:
EXTERNAL ARRAY laArray
after the function header line. Now you are passing the array to the function via reference.
Previous
Reply
Map
View

Click here to load this message in the networking platform