Michel
Fri Apr 13 10:42:06 CDT 2007
thanks, Olaf
I'll use that workaround, but its amazing: rowsource property has no limit
when you assign a value (a select statement longer than 256 charcters runs
as expected, all the rows and columns are at their right place with the
correct value), but on an access it's limited to 256!
--
Michel Lévy
Communauté Francophone des Professionnels FoxPro
Pour un développement durable...
http://www.atoutfox.org
--
"Olaf Doschke" <olaf.doschke@t-aufderlinie.de> a écrit dans le message de
news: uLbzQzdfHHA.4772@TK2MSFTNGP05.phx.gbl...
>> I need to read this SQL statement from everywhere in the form
> for what reason? to execute it?
>
> The 256 Character limit of rowsource is by design,
> but you can store longer strings to other, eg user defined
> properties.
>
> oForm=CREATEOBJECT("form")
> oForm.AddProperty("rowsource",SPACE(257))
> ? LEN(oForm.rowsource)
>
> or use the comment property of the combobox:
> oCombo = CREATEOBJECT("combobox")
> oCombo.comment = SPACE(257)
> ? LEN(oCombo.comment)
>
> And set
> oCombo.rowsource=oCombo.comment at the init() of the combobox or whenever
> you want.
>
> Bye, Olaf.