https://bugs.documentfoundation.org/show_bug.cgi?id=167189
Bug ID: 167189
Summary: Error LibreOffice Writer Form - Macro
Product: LibreOffice
Version: 25.2.4.3 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 201446
--> https://bugs.documentfoundation.org/attachment.cgi?id=201446&action=edit
Document macro error
An error occurred in a Writer form when executing a macro.
This macro is not new. I have been using it since OpenOffice, quite a few
years. It has never shown an error before.
LibreOffice Writer.
When running in LibreOffice 25.2.0.1 and following the following comes up:
The date is changed in the control: "Fecha de inicio - Start date"
"Tipo de datos o valor indamisible. Discrepancia del tipo de datos."
"Error de ejecución de BASIC. Variable de objeto no establecida."
"Data type or indamisible value. Data type discrepancy."
"BASIC execution error. Object variable not set."
Reason for the bug is the date control, which won't work. It will save the
right value in LO 24.8.4.2, fails to save the choosen value in LO 25.2.0.1 y
and following.
So it's a regression.
MACRO
-----------
Sub ActualizarFechaAnterior( Event )
obj = Event.Source.Model
fecha_seleccionada = obj.Text
fecha_anterior = DateAdd("d", -1, fecha_seleccionada)
frm = obj.Parent
obj_fecha_seleccionada = frm.getByName("fecha_inicial")
obj_fecha_seleccionada.BoundField.UpdateString(Format(fecha_seleccionada,"YYYY-MM-DD"))
obj_fecha_anterior = frm.getByName("fecha_anterior")
obj_fecha_anterior.BoundField.UpdateString(Format(fecha_anterior,"YYYY-MM-DD"))
frm.UpdateRow
End Sub
-------------
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 8; OS: Linux 6.15; UI render: default; VCL: kf5 (cairo+wayland)
Locale: es-ES (es_ES.UTF-8); UI: es-ES
Calc: threaded
Fedora 42
--
You are receiving this mail because:
You are the assignee for the bug.