RE: [fpc-pascal]longint -> Pchar

2003-12-10 Thread baron kractor
On a hunch I grabbed an older version of the win32 mysqld "non installer" (zip file) and started using *that* version of libmysql.dll Everything seems to be working ok now ... sorry for the previous post, hopefully I haven't annoyed anyone too much. -Original Message- From: [EMAIL PROTECT

RE: [fpc-pascal]longint -> Pchar

2003-12-10 Thread baron kractor
Got that particular issue fixed. Now I'm having some issues w/ really strange query results being returned. Even with the example code that came w/ the version of fpc that I'm using, I get the following results from a query that should return 0 or nil ... Number of records returned : 8589

Re: [fpc-pascal]longint -> Pchar

2003-12-10 Thread Marco van de Voort
> Is there a (hopefully easy) way to convert a longint variable to either > Pchar / string / ansistring without changing the contents of the variable? > For example, longint variable containing "12345" converted to one of the > string types would still print as "12345". Closest I've been able to g

[fpc-pascal]longint -> Pchar

2003-12-10 Thread Darren Reynolds
Is there a (hopefully easy) way to convert a longint variable to either Pchar / string / ansistring without changing the contents of the variable? For example, longint variable containing "12345" converted to one of the string types would still print as "12345". Closest I've been able to get so fa

Re: [fpc-pascal]ansistring and fillchar

2003-12-10 Thread Thomas Schatzl
Hello, > How can I use fillchar to give an ansistring a value of, say > 'x'? In other words, I want to create a string that contains > only a single character, that is repeated a certain number of times. E.g. this should work (with some typecasting ;-): {$MODE DELPHI} var s : AnsiSt

Re: [fpc-pascal]ansistring and fillchar

2003-12-10 Thread Michael Van Canneyt
On Tue, 9 Dec 2003, Mark Emerson wrote: > How can I use fillchar to give an ansistring a value of, say > 'x'? In other words, I want to create a string that contains > only a single character, that is repeated a certain number of times. Use S:=StringOfChar('X',30); Michael.

AW: [fpc-pascal]ansistring and fillchar

2003-12-10 Thread ZINTEL Gerhard
Hello Mark > > How can I use fillchar to give an ansistring a value of, say > 'x'? In other words, I want to create a string that contains > only a single character, that is repeated a certain number of times. > > Mark > There is an example in the reference guide for function FillC