Length Function

Stimulsoft Reports.NET discussion
Post Reply
jonellis
Posts: 8
Joined: Mon Feb 25, 2008 9:44 am

Length Function

Post 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.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Length Function

Post 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
jonellis
Posts: 8
Joined: Mon Feb 25, 2008 9:44 am

Length Function

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Length Function

Post 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.


Post Reply