PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Spreadsheet control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Content property is used to read or write the whole content of a control:
  • Memory List Box,
  • Memory Combo Box,
  • Versions 20 and later
    WINDEV Spreadsheet.
    New in version 20
    WINDEV Spreadsheet.
    WINDEV Spreadsheet.
This allows you to read or write all the rows in the control in a single line of code.
Remark: On a browsing List Box or Combo Box control, you only have the ability to read the list of elements.
Example
// Adds elements to the current content of the List Box control
LIST_List1.Content = LIST_List1.Content + CR + "Tommy" + CR + "Emma"
WINDEVUser code (UMC)
n is int
// Add the row into the Table control (the Combo Box column being the 2nd one)
n = TableAddLine(TABLE_Table1, "1", "c2")
// Modify the content of the Combo Box column for the added row
// Note: Return values are used via gStoredValue,
// therefore, this option must be enabled in the description of the column
TABLE_Table1.COL_ComboBox[n].Content = "computer 1" + gStoredValue("c1") + CR + ...
"computer 2" + gStoredValue("c2")
Syntax

Getting the content of a memory List Box, memory Combo Box or Spreadsheet control Hide the details

<Control Content> = <Control used>.Content
<Control Content>: Character string
List of elements for the content of the control. The elements are separated by CR characters.
Versions 20 and later
WINDEV For a Spreadsheet control, content of the control in binary format. This content can be saved by fSaveBuffer.
New in version 20
WINDEV For a Spreadsheet control, content of the control in binary format. This content can be saved by fSaveBuffer.
WINDEV For a Spreadsheet control, content of the control in binary format. This content can be saved by fSaveBuffer.
<Control used>: Control name
Name of the control to be used. This control must be a:
  • memory List Box, memory Combo Box or "List of values" table column.
  • Versions 20 and later
    WINDEV Spreadsheet control.
    New in version 20
    WINDEV Spreadsheet control.
    WINDEV Spreadsheet control.

Changing the content of a memory List Box, memory Combo Box or Spreadsheet control Hide the details

<Control used>.Content = <Control Content>
<Control used>: Control name
Name of the control to be used. This control must be a:
  • Memory List Box,
  • Memory Combo Box,
  • "List of values" column,
  • Versions 20 and later
    WINDEV Spreadsheet.
    New in version 20
    WINDEV Spreadsheet.
    WINDEV Spreadsheet.
<Control Content>: Character string
List of elements displayed in the control. The elements are separated by CR characters.
Versions 20 and later
WINDEV For a Spreadsheet control, binary content to display in the control. You have the ability to use fLoadBuffer.
New in version 20
WINDEV For a Spreadsheet control, binary content to display in the control. You have the ability to use fLoadBuffer.
WINDEV For a Spreadsheet control, binary content to display in the control. You have the ability to use fLoadBuffer.
Remarks
Versions 20 and later
WINDEV

Spreadsheet control

The Content property is used to get and modify the binary content of the Spreadsheet control. For example:
PSHEET_Show.Content = fLoadBuffer(fExeDir()+"\Fashion Showxls")
This property is equivalent to the Value property.
New in version 20
WINDEV

Spreadsheet control

The Content property is used to get and modify the binary content of the Spreadsheet control. For example:
PSHEET_Show.Content = fLoadBuffer(fExeDir()+"\Fashion Showxls")
This property is equivalent to the Value property.
WINDEV

Spreadsheet control

The Content property is used to get and modify the binary content of the Spreadsheet control. For example:
PSHEET_Show.Content = fLoadBuffer(fExeDir()+"\Fashion Showxls")
This property is equivalent to the Value property.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment