CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Prefix/leading zeroes to a textbox on search grid

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 05/01/2008, 2:01 PM

Hi All..

I am trying to duplicate a slow, Access-based textbook inventory database component.

Textbooks are stored as such: Textbookid='00001 textcopyno='000002 etc

The barcodes on the books say: Book: 01 Copy: 02

When searching for a text by its book and copy number, I want to avoid having the user input all the leading zeroes.

I have tried formatting the textbox in the search grid to be #####, with no luck.

Any suggestions?



_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
DonB
Posted: 05/01/2008, 4:58 PM

CAST (SQL function) the data, which evidently is CHAR or VARCHAR, into an
INTEGER data type (approximate syntax is: SELECT CAST (somevalue as INTEGER)
FROM sometable) in your query, so the data CCS sees is a number. That will
eliminate the leading zeros and no custom event code is required.

--
DonB



"ckroon" <ckroon@forum.codecharge> wrote in message
news:5481a2f9be7255@news.codecharge.com...
> Hi All..
>
> I am trying to duplicate a slow, Access-based textbook inventory database
> component.
>
> Textbooks are stored as such: Textbookid='00001 textcopyno='000002 etc
>
> The barcodes on the books say: Book: 01 Copy: 02
>
> When searching for a text by its book and copy number, I want to avoid
> having
> the user input all the leading zeroes.
>
> I have tried formatting the textbox in the search grid to be #####, with
> no
> luck.
>
> Any suggestions?
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.