[fpc-pascal] Re: Convert error hex string to cardinal....

2011-01-17 Thread Bo Berglund
On Mon, 17 Jan 2011 23:29:07 +0100, Vincent Snijders wrote: >2011/1/17 Bo Berglund : >> I have encountered a conversion error using FPC 2.4.2 with Lazarus >> 0.9.29 as follows: >> >> var >>  t: Int64; >>  v: string; >> begin >>  ... >>  t := StrToInt('$' + v); >> >> This gives an exception "inval

Re: [fpc-pascal] Convert error hex string to cardinal....

2011-01-17 Thread Vincent Snijders
2011/1/17 Bo Berglund : > I have encountered a conversion error using FPC 2.4.2 with Lazarus > 0.9.29 as follows: > > var >  t: Int64; >  v: string; > begin >  ... >  t := StrToInt('$' + v); > > This gives an exception "invalid integer". At this moment v is > '577B4D58A51A0EE', which combined with

[fpc-pascal] Convert error hex string to cardinal....

2011-01-17 Thread Bo Berglund
I have encountered a conversion error using FPC 2.4.2 with Lazarus 0.9.29 as follows: var t: Int64; v: string; begin ... t := StrToInt('$' + v); This gives an exception "invalid integer". At this moment v is '577B4D58A51A0EE', which combined with the $ sign makes it a valid hex Int64 as f

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-17 Thread Frank Church
On 15 January 2011 18:52, Henry Vermaak wrote: > On 15 January 2011 17:52, Frank Church wrote: > > > > Is there a FCL library that can be used to convert a large integer into > > base64 format? > > Do you know about the base64 unit? > > I have it working now, but I have noticed that if the leng