Android Question Where is the error?

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi...

I'm trying to do:

B4X:
        lcSqlComando    = $"UPDATE work_boleta SET
                                tipo_placa = ^{Starter.wEB_Sp_Tipo_Placa}^,
                                placa = ^{Starter.wEB_Et_Placa}^,
                                tarjeta = {Starter.wEB_Et_Tarjeta},
                                tipo_vehiculo = {Starter.wEB_Sp_Tipo_Vehiculo},
                                marca = ^{Starter.wEB_Et_Marca}^,
                                color = ^{Starter.wEB_Et_Color}^,
                                licencia_tipo = ^{Starter.wEB_Sp_Tipo_Licencia}^,
                                licencia_numero = ^{Starter.wEB_Et_Licencia}^,
                                apellidos = ^{Starter.wEB_Et_Apellidos}^,
                                nombres = ^{Starter.wEB_Et_Nombres}^,
                                licencia_fecha_vencimiento = ^{Starter.wEB_Et_Licencia_FVencim}^,
                                lugar = ^{Starter.wIO_Et_Lugar}^,
                                valor_total = {NumberFormat2(Starter.wEB_Calc_Valor_Total,1,2,2,false)},
                                valor_descuento = {NumberFormat2(Starter.wEB_Calc_Valor_Descuento,1,2,2,false)},
                                valor_con_descuento = {NumberFormat2(Starter.wEB_Calc_Valor_Con_Descuento,1,2,2,false)},
                                fecha_pago_descuento = ^{Starter.wEB_Calc_Fecha_Pago_Descuento}^,
                                conductor_ausente = ^{Starter.wIO_Cb_Conductor_Ausente}^,
                                conductor_firma = ^{Starter.wIO_Cb_Conductor_Firma}^,
                                conductor_fuga = ^{Starter.wIO_Cb_Conductor_Fuga}^,
                                observaciones = ^{Starter.wIO_Et_Observaciones}^,
                                latitud = ^{Starter.wEB_Calc_Latitud}^,
                                longitud = ^{Starter.wEB_Calc_Longitud}^,
                                estado_gps = ^{Starter.wEB_Calc_Estado_GPS}^
                            "$
        lcSqlComando    = lcSqlComando.Replace("^",Starter.GlbComillas)

And don't make the substitution

The "log":

UPDATE work_boleta SET
tipo_placa = '{Starter.wEB_Sp_Tipo_Placa}',
placa = '{Starter.wEB_Et_Placa}',
tarjeta = {Starter.wEB_Et_Tarjeta},
tipo_vehiculo = {Starter.wEB_Sp_Tipo_Vehiculo},
marca = '{Starter.wEB_Et_Marca}',
color = '{Starter.wEB_Et_Color}',
licencia_tipo = '{Starter.wEB_Sp_Tipo_Licencia}',
licencia_numero = '{Starter.wEB_Et_Licencia}',
apellidos = '{Starter.wEB_Et_Apellidos}',
nombres = '{Starter.wEB_Et_Nombres}',
licencia_fecha_vencimiento = '{Starter.wEB_Et_Licencia_FVencim}',
lugar = '{Starter.wIO_Et_Lugar}',
valor_total = {NumberFormat2(Starter.wEB_Calc_Valor_Total,1,2,2,false)},
valor_descuento = {NumberFormat2(Starter.wEB_Calc_Valor_Descuento,1,2,2,false)},
valor_con_descuento = {NumberFormat2(Starter.wEB_Calc_Valor_Con_Descuento,1,2,2,false)},
fecha_pago_descuento = '{Starter.wEB_Calc_Fecha_Pago_Descuento}',
conductor_ausente = '{Starter.wIO_Cb_Conductor_Ausente}',
conductor_firma = '{Starter.wIO_Cb_Conductor_Firma}',
conductor_fuga = '{Starter.wIO_Cb_Conductor_Fuga}',
observaciones = '{Starter.wIO_Et_Observaciones}',
latitud = '{Starter.wEB_Calc_Latitud}',
longitud = '{Starter.wEB_Calc_Longitud}',
estado_gps = '{Starter.wEB_Calc_Estado_GPS}')


Thanks for your time,

Regards,

Edgar
 
Top