Is WebListBox.CellValueAt String or Variant?

After I tried to open an old web-project with newer Xojo (web1->web2) I saw the documentation:

CellValueAt (Row As Integer, Column As Integer) As String

While Xojo itself mentioned:

(2, 60) WebListBox.CellValueAt(Row as Integer, Column as Integer) As Variant

Is that a problem with the docs?

Marius

I think CellValueAt is overloaded:

Function CellValueAt(Row as Integer, Column as Integer) As Variant
Sub CellValueAt(Row as Integer, Column as Integer, Assigns Value as String)
Sub CellValueAt(Row as Integer, Column as Integer, Assigns Value as WebListboxCellRenderer)

Overloaded by MBS-Plugins?
So your plugins change the way that works like it is documented??? :face_with_raised_eyebrow:

If Xojo is using String for Cell-Fields (everywhere else), why should that be changed to variant?
If CellValueAt returns Variant, shouldn’t there be Autocomplete for “.StringValue”, “.IntegerValue” etc?

Not overloaded by plugin although a method in a module (plugin or project) can add something there.

It returns a variant. The return value can either be a string or a custom cell instance.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.