Page 1 of 1

Length Function

Posted: Tue Feb 26, 2008 9:38 am
by jonellis
I am trying to use the Length fucntion in the event builder and I keep getting the following error.

error BC30451: name 'Length' is not declared

code is

Code: Select all

dim s as string = DataBill_Unit.text

if Length(s) = 0 then
	DataBill_Quantity.enabled = false
	DataBill_NettRate.enabled = false
	DataBill_NettTotal.enabled = false
else
	DataBill_Quantity.enabled = True
	DataBill_NettRate.enabled = True
	DataBill_NettTotal.enabled = True
end if
I have also tried embedding the data value to check inside the length check, but no joy.
Any help appreciated.

J.

Length Function

Posted: Tue Feb 26, 2008 10:58 am
by Vital
Please use following code:

Code: Select all

dim s as string = DataBill_Unit.text

if s.Length = 0 then
	DataBill_Quantity.enabled = false
	DataBill_NettRate.enabled = false
	DataBill_NettTotal.enabled = false
else
	DataBill_Quantity.enabled = True
	DataBill_NettRate.enabled = True
	DataBill_NettTotal.enabled = True
end if

Length Function

Posted: Wed Feb 27, 2008 2:24 am
by jonellis
Thanks Vital.

I did exactly that. I must say I am very impressed with your response to support issues & your product as a whole. It is allow me to acheive things above & beyond anything I've ever done in Crystal Reports (our current engine). I have recommended that we purchase Stimulsoft ASAP.

J.

Length Function

Posted: Wed Feb 27, 2008 2:53 am
by Edward
Thank you very much for this words. We are keep going in the direction which our customers are required in their everyday work. Maybe that is why a lot of things that you need in a report development now are ready for using.

If any help is required, please let us know.

Also the following pack for the converting reports from Crystal format may save a lot of time for you:

http://www.stimulsoft.com/Downloads/Imp ... Report.zip

Thank you.