devxlogo

Tip Bank

SQL Date/Time Table Selection

Question: I have a database with a field set to Date/Time.My project has a variable that is of type Date.In a text box it displays 04/21/97. I cannot get the

Documenting the contents of a .PBL file

Question: Is there a third-party tool (or a functionalitynative to PB) with which I can print the *entire*contents of a .PBL file, preferablyin a way that’s meaningful? I have in

Parse string to float or double

Question: Is there a command Float.parseNumbers(s) that returns a float? Answer: Sure, parseInt(s) is simply: Integer temp = Integer.valueOf(s); int x = temp.intValue();which has an equivalent for floats Float temp

Truncating and converting floats

Question: I am trying to truncate and then convert a float to a string. Something like atoi().Is this possible? Any suggestions? Answer: float f = 1.234;int i = f;strstream s;s