internet

Übersicht BlitzBasic Beginners-Corner

Neue Antwort erstellen

 

darki

Betreff: internet

BeitragSo, März 04, 2007 21:06
Antworten mit Zitat
Benutzer-Profile anzeigen
Warum sagt er hier Expectin "("?

Code: [AUSKLAPPEN]

Function intergerip(ip$)
a1=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$) Instr(ip$,".")
a2=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$) Instr(ip$,".")
a3=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$) Instr(ip$,".")
a4=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$) Instr(ip$,".")
Return(a1 Shl 24)+(a2 Shl 24)+(a3 Shl 24)+a4
End Function


darki
 

Yogu

BeitragSo, März 04, 2007 21:12
Antworten mit Zitat
Benutzer-Profile anzeigen
Code: [AUSKLAPPEN]

Function intergerip(ip$)
a1=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$)-Instr(ip$,"."))
a2=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$)-Instr(ip$,"."))
a3=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$)-Instr(ip$,"."))
a4=Int(Left(ip$,Instr(ip$,".")-1)): ip$=Right(ip$,Len(ip$)-Instr(ip$,"."))
Return(a1 Shl 24)+(a2 Shl 24)+(a3 Shl 24)+a4
End Function


Du hast das Minus vergessen, glaube ich.
 

darki

BeitragSo, März 04, 2007 21:19
Antworten mit Zitat
Benutzer-Profile anzeigen
Danke, wie ich denke sieht man das der code aus dem blitz basic buch geschrieben ist. Nun sagt er mir wenn ich das programm starte(2 mal auf dem gliechem pc das es ein memory problem gibt warum? Und soll ich hier meine ip eingeben?
Code: [AUSKLAPPEN]

ip=intergerip("XXX.X.XXX")

Neue Antwort erstellen


Übersicht BlitzBasic Beginners-Corner

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group