- RAFAEL RODRIGUEZ
- PowerBuilder
- Wednesday, 27 November 2024 07:06 AM UTC
i create a dw with this code
string dw_style, ls_sql_syntax, ls_dw_syntax, ls_errors, ls_sql_syntax2, ls_dw_syntax2, v_sql_scr
long nretorno
ls_errors = ""
dw_style = 'style(Type=form) '
ls_sql_syntax = v_sql0
ls_dw_syntax = SyntaxFromSQL( sqlca, ls_sql_syntax, dw_style, ls_errors)
dw_form0.SetReDraw(False)
If LenA(ls_errors) = 0 Then
nretorno = dw_form0.Create (ls_dw_syntax)
If nretorno > 0 Then
else
messagebox("Error en la creación del DataWindow 1" , nretorno)
end if
else
messagebox("Error en la creación del DataWindow 1" , ls_errors)
end if
After that, i wanna change the validation of a column and i use this:
v_error = dw_form0.SetValidate( "nombre" , " trim(gettext())>'' " )
but it doesn't work and this column has no validation and v_error is 1
Can you help me , thanks
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.