Op 28-07-16 om 00:59 schreef Bo Berglund:
On Wed, 27 Jul 2016 21:43:10 +0200, Bo Berglund
wrote:
Now done updating Raspbian to latest version.
And the project compiles!
If it works is another story because I do not understand what to do
with a form with a long list of checkboxes without ex
Hi,
I need a way to test if an string containing an ipv4-address is really
an ipv4-address.
I tried
tmpAddress:=HostAddrToStr(StrToHostAddr(IPAddressStr));
writeln(tmpAddress);
if (tmpAddress='0.0.0.0') then
begin
writeln('Error in IP-address');
IPAddressStr:=tmpAddress;
end;
When I
On 07/26/2016 04:19 PM, Michael Van Canneyt wrote:
This is not correct. In pascal the right-hand side of an assignment
has a well-defined type. The compiler checks whether the type on the
right is assignment-compatible to the left side.
Hmm.
if you do
x := y + z;
with x a real and y and z
On 28/07/16 10:14, Koenraad Lelong wrote:
I need a way to test if an string containing an ipv4-address is really
an ipv4-address.
I tried
tmpAddress:=HostAddrToStr(StrToHostAddr(IPAddressStr));
writeln(tmpAddress);
if (tmpAddress='0.0.0.0') then
begin
writeln('Error in IP-address');
IPAd
On Thu, 28 Jul 2016 10:26:32 +0200
Jonas Maebe wrote:
> On 28/07/16 10:14, Koenraad Lelong wrote:
> > I need a way to test if an string containing an ipv4-address is really
> > an ipv4-address.
> > I tried
> > tmpAddress:=HostAddrToStr(StrToHostAddr(IPAddressStr));
> > writeln(tmpAddress);
> > i
The IP-Adress is a dword, but you can change, that it fits for you.
function str_getval( str : shortstring ) : longint;
var cod : longint;
begin
val( str , result , cod );
end;
function ip_from_string( ipstr : shortstring ; out error : boolean ) : dword;
var
c : char;
ipn , pointanz : longint
On Thu, 2016-07-28 at 10:14 +0200, Koenraad Lelong wrote:
> When I enter 192.168.185.297 (i.e. not a valid ipv4 address) in
> IPAddressStr I get
> 192.168.185.41
> not the expected error-message.
>
> According to the rtl-manual :
>
> function StrToHostAddr(IP: AnsiString) : in_addr
> Description
Am Donnerstag, 28. Juli 2016, 10:26:32 schrieb Jonas Maebe:
> On 28/07/16 10:14, Koenraad Lelong wrote:
> > I need a way to test if an string containing an ipv4-address is really
> > an ipv4-address.
> > I tried
> > tmpAddress:=HostAddrToStr(StrToHostAddr(IPAddressStr));
> > writeln(tmpAddress);
>
El 27/07/2016 a las 16:10, Michael Schnell escribió:
> On 07/26/2016 04:19 PM, Michael Van Canneyt wrote:
>>
>> This is not correct. In pascal the right-hand side of an assignment
>> has a well-defined type. The compiler checks whether the type on the
>> right is assignment-compatible to the left s
Op 28-07-16 om 10:38 schreef Christo:
The in_addr IP address type is a packed record of byte, so if an IP
address part larger than 255 is encountered in a string it will be
truncated when copied to the byte record using StrToHostAddr. This
probably means you have to use some other means of dete
On Thu, 28 Jul 2016 09:12:53 +0200, Koenraad Lelong
wrote:
>I'll ammend the application so users should input the address and port
>on the form, and give a warning to remove any IO from the pi.
>
Thanks,
I received the updated project with the explanation for each test
added.
I put this into a s
I just upgraded my Raspberry Pi3 from the March to the May version of
Raspbian using the dist-upgrade command and then rebooted.
Now Lazarus has problems with running some debugging sessions, it
immediately displays an error box saying that the debugger failed.
More info shows:
The GDB command:
"
Hi list,
Sorry if this has been mentioned earlier here already, or if it is
considered off-topic (and if so, will not do it again). But I think it
is relevant and of interest to people reading this list via Gmane:
The End of Gmane? (ingebrigtsen.no)
https://news.ycombinator.com/item?id=12180547
Op 28-07-16 om 21:53 schreef Bo Berglund:
On Thu, 28 Jul 2016 09:12:53 +0200, Koenraad Lelong
wrote:
I'll ammend the application so users should input the address and port
on the form, and give a warning to remove any IO from the pi.
Thanks,
I received the updated project with the explanatio
14 matches
Mail list logo