Re: remote view

From: Leonid (leonid_at_NOgradaSPAM.lv)
Date: 11/04/04


Date: Thu, 4 Nov 2004 11:19:19 +0200

I beleive that VFP (at least VFP6) is smart enough to deal with
RTRIM(somefield) correctly. There must be something more complex, sush as
REPLICATE("*",len(RTRIM(somefield)))

create cursor tmp (f1 C(5))
insert into tmp values ("AAC")
insert into tmp values ("BBBBC")
create database tmp
*create sql view tmp1 as select f1, replicate("*",at("C",f1)) as f2 from tmp
create sql view tmp1 as select f1, rtrim(f1) as f2 from tmp
use tmp1
brow
update tmp set f1="AAAC" where f1="AAC"
requery()
close data all
erase "tmp.dbc"
erase "tmp.dcx"
erase "tmp.dct"

Leonid

"Mark McCasland" <mmccaslaATairmailDOTnet> wrote in message
news:%235stFkgwEHA.3288@TK2MSFTNGP14.phx.gbl...
>I suspect you have something like
>
> SELECT RTRIM(somefield) in your query. When you change the parameter, the
> data length of the field in the first record selected is different when
> you
> issue the REQUERY. Can you post the SQL code you use to create the view?
>
>
> "sujeet" <sujeet@troopsoftware.com> wrote in message
> news:OxMf9jXwEHA.1292@TK2MSFTNGP10.phx.gbl...
>> hi all ,
>> actually i made a parametrized remove view from mysql server
>> now i open dis it works fine.
>> when i pass value in a variable wich is as a parameter in view
>> now i open again it works fine here too.
>> now i change value in variable and i call requery method
>> it shows "views defination has been changed."
>> can anyone tell me whatz going wrong with me..
>>
>>
>
>



Relevant Pages

  • Some expert comment please
    ... i looks in a catalog för files ending on .tmp ... and erase them, could make it on 1 line ...
    (comp.lang.lisp)
  • Local Settings/Temp folder
    ... Can you just erase all the files/folders in your Local Settings/Temp ... Can you also just erase any files ending in .tmp? ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • Re: UNION troubles
    ... insert into tmp values ... that you use in view definition, always return cursor with the absolutely ... > time you Requery() it you may have problems. ... a supporting View needs to know any changes when that may affect ...
    (microsoft.public.fox.vfp.queries-sql)