Rereading your post you probably want:
Cast(ICASE(unit='1000/Pcs',((quantity*rate)/1000), unit='1000/Set',((quantity*rate)/1000),;
unit='100/Pcs',((quantity*rate)/100),unit='100/Set',((quantity*rate)/100),(quantity*rate) As Y) as amount
Amount is not a type, replace it by Y
Cast(ICASE(unit='1000/Pcs',((quantity*rate)/1000), unit='1000/Set',((quantity*rate)/1000),;
unit='100/Pcs',((quantity*rate)/100),unit='100/Set',((quantity*rate)/100),(quantity*rate) As Y)
Thank you for the reply Olaf,
Binding/unbinding is a good suggestion, allthough be it a big switch.
Setting sparse to true also looks like a good workaround.
Will try this later, don't have time right now...
@Craig: borderstyle is set to 0 (see class grid_textbox in post above)
The text in the textbox is shifted up 1 or 2 pixels
When you click in the cell it goes down 2 pixels and aligns with the other columns.
font/Fontsize is the same in the entire grid.
I create the grid completely in code (columncount, headercaptions, controlsource, columnwidths, etc..)
That...
Hi all,
In my editable grids i change the currentcontrol in columns so i can use custom textboxes
however these are not properly alligned with the default textboxes in other (none editable) columns where currentcontrol has not been changed.
when the column with the custom textbox gets the...
mycomserver.myclass is registered (I wrote an installer in the same solution)
However i am a novice to c# so i don't know if i need to add something so it can be used by vfp intellisence.
Stefan
Thanks for the reply Mike,
but that's not what i'm looking for.
When i do something like
local loword as word.application
then intellisence automaticly kicks in when i use loword
however when i do
[code]
local lotest as mycomserver.myclass
[/]
intellisence does not work on lotest
multiple detailbands won't work because the second report uses grouping, the first one doesn't.
word automation is to slow. I am thinking about exploring the possibilities of generating a word xml document (no automation, just text) but I don't have the time right now.
Does anyone have any...
I removed the pageheader and pagefooter. I only use detailband and summary band and still the second report starts on the next page
I can't get it to work
I attached a simple testcase
I make 2 cursors that I use in 2 reports
The reports only have a detailband and still the 2nd report starts on...
Because i want to preview i use the reportlistener.
I tried using danfreeman's method just to see if it would work.
Might using a pageheader be a problem?
Shall i encapsulate the report in another group and use that groupheader to replace the pageheader?
My boss has got me working on another...
@danfreeman:
Report form Report1 NoPageEject to printer
Report form Report2 to printer
If this should work then there must be a problem in my reports because it doesn't work, the second report still starts on page 2 instead of page 1
I would however like to print from the preview.
like i said...
Thanks for the reply Olaf,
report 1 uses no grouping
report 2 does use grouping, but each group starts on a new line
I tried doing the same with 2 simple reports (neither uses grouping) and also there report 2 starts on a new page.
Is it theoreticly possible to start report 2 on a new line...
Hi all,
I would like to chain 2 reports
I use code like
loListener = newobject('_ReportListener', ;
home() + 'ffc\_ReportListener.vcx')
loListener.ListenerType = 1
loListener.AddReport('MyReport1.frx', ;
'nopageeject')
loListener.AddReport('MyReport2.frx')...
Try it like this:
subclass the textbox and add a property nClickcount and make it 0
In the lostfocus put
this.nClickcount=0
In the clickevent put
this.nClickcount = this.nClickcount + 1
IF this.nClickcount==1
this.selstart = 0
this.sellength = 20
ENDIF
That should mimic entering...
Hello Mike,
Thank you for your reply. I became familiar with the HackCX tool when I did a google search on the subject.
It did seem overkill as you stated, I have already made a small prg that make's the necessary changes all my scx/vcx files.
I will keep the hacCx tool in mind for possible...
Neil,
Thank you for your quick response, I did check the FAQ's first but somehow I missed this one.
I just needed some reassurance that what I was doing is safe and according to this FAQ it is.
Stefan
In my project I have subclassed all my baseclasses and used those controls in my forms.
However in some older forms I use the vfp baseclasses. I want to change them in the subclassed equivalents by hacking the scx/vcx.
I have made a copy of my project and changed the class and classloc fields of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.