PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
xlsNbColumns (Function)
In French: xlsNbColonnes
xlsNbColumns is kept for backward compatibility.
In this version, use xlsNbColumn.
The documentation for xlsNbColumns available in WINDEV 5.5 is as follows.
 
Purpose
Finding out the number of columns in an XLS file.
Syntax (using the xlsDocument type)
<Result> = xlsNbColumns(<XLS Document>)
  • <Result> is an integer corresponding to the number of columns.
  • <XLS Document> is the name of the xlsDocument variable corresponding to the XLS file to use.
Syntax (version 12 compatibility)
<Result> = xlsNbColumns(<FileNum>)
  • <Result> is an integer corresponding to the number of columns.
  • <FileNum> is an integer containing the file identifier returned by xlsOpen
Details
xlsNbColumns returns the number of columns in the XLS file. The empty columns are ignored. For example, in the following case, xlsNbColumns returns 4:
LastNameFirstNameAgeOccupation
DavonPaul18Student
ClarkJack19Student
MontgomeryJohn20Student
Notes
This function implies that the XLS file has a database structure, which means that a fixed number of columns corresponds to each row.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment