Search Results

Search found 3 results on 1 pages for 'fastreport'.

Page 1/1 | 1 

  • Validating String Characters as Numeric w/ Pascal (FastReport 4)

    - by user2525015
    I'm new to Pascal and FastReport. This question can probably be answered without knowledge of FastReport. Pascal is Delphi. FastReport4. I have a text box accepting an 8 character string as input. Each character should be numeric. I'm attempting to validate each character as numeric. I've tried using the val function... Procedure Val(S : String; var R: Real; Code : Integer); begin end; procedure thisinputOnChange(Sender: TfrxComponent); var S : String; error : Integer; R : Real; begin S := thisinput.lines.text; Val (S, R, error); If error > 0 then Button2.enabled := False; end; I got this code online. The explanation says that the function will return an error with a code greater than zero if the character cannot be converted to an integer. Is that explanation correct? Am I misinterpreting? Right now I am trying to set a button's enabled property to false if the validation fails. I might change that to a message. For now, I would like to get it to work by setting the button property. I'm not sure if I should be using the onChange event or another event. I'm also not sure if I need to send the input to the val function in a loop. Like I said, I'm just learning how to use this function. I am able to validate the length. This code works... procedure thisinputOnChange(Sender: TfrxComponent); begin if length(thisinput.lines.text) = 8 then Button2.enabled := True; end; Any suggestions? Should I use the val function or something else? Let me know if I need to provide more info. I might not be able to check back until later, though. Thanks for any help.

    Read the article

  • A report writer for non-programmers?

    - by Earlz
    Hello, we are wanting for users to be able to write their own reports in our application. It is a web application. We don't care if they must download an application in order to create reports, but we need for them to be able to print off reports from the web in PDF format or similar. The report writer is to be used by non-programmers, or at best very light programmers(like the ones that make VBA macros and such). (the writer is not a core part of the program though. So if there is a learning curve, then that is acceptable to a certain extent) We were looking at Crystal Reports but it seems like it'll cost $7000 which is just way too much for right now(though our system is very flexible so could support it eventually). We are also looking at Fast Reports which seems pretty promising, but I'm not sure the report writer would be easy for non-programmers to grasp. Can someone recommend a good report writer for non programmers that won't break the bank?

    Read the article

1