You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

axelm

Beginner

  • "axelm" is male
  • "axelm" started this thread

Posts: 4

Date of registration: Nov 28th 2008

Location: Hamburg, Germany

Occupation: Programm Manager

Hobbies: OpenSource, Familie, Lesen

  • Send private message

1

Friday, December 12th 2008, 10:45pm

Format Funktionen

Hilfe,

der Versuch numerische Werte aus einer Textbox mit Format oder verwandten Funktionen erzeugen bei mir

folgende Fehlermeldung:

java.lang.Exception: Day and month missing from "0.15"

Hier scheinen mir alle Formatfunktionen auf Java-Datumsfunktionen zu gehen!!

Beispielcodezeiel

+++++++

MsgBox Format(Text1.Text,"@@@@@@@@@@@@@@@")

?( ?(

Peter

Trainee

  • "Peter" is male

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

2

Friday, December 12th 2008, 11:50pm

RE: Format Funktionen

MsgBox Format(Text1.Text,"@@@@@@@@@@@@@@@")

das '@'-Zeichen ist mir im Zusammenhang mit Format() neu. Normalerweise steht das '#' für eine beliebige Ziffer.
Du willst die Zeichenkette, die in Text1.Text steht, in eine Zahl wandeln? Versuch mal CInt() oder CLng()

Grüße ... Peter

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

3

Saturday, December 13th 2008, 3:53am

oder "val"

Jabaco Source

1
MsgBox Val(Text1.Text)

axelm

Beginner

  • "axelm" is male
  • "axelm" started this thread

Posts: 4

Date of registration: Nov 28th 2008

Location: Hamburg, Germany

Occupation: Programm Manager

Hobbies: OpenSource, Familie, Lesen

  • Send private message

4

Monday, December 15th 2008, 7:17pm

Beispiele

Ich füge mal die Qhelldateien bei. Vielleicht hat ja Jemand Zeit und Lust mal etwas zu experimentieren. Verswchieden Varianten sind auskommentiert sodass man einiges Testen kann. In diesem Zusammenhand habe ich festgestellt das Jabaco noch nicht alle VB Datentypen (z.B. Dec) unterstützt. Hier fehlt eine Dokumentation.



Gruß

AXel
axelm has attached the following file:
  • OnlyNum.zip (4.92 kB - 478 times downloaded - latest: Apr 12th 2024, 2:24am)

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

5

Monday, December 15th 2008, 8:32pm

die definition von dec in vb6 ist strange. der datentyp existiert nur innerhalb von variant (sehe ich das richtig?). insofern kann das bei bedarf im framework noch implementiert werden. wobei ich das eigentlich für unnötig halte.

solche beispiele sind eigentlich ganz nett in einer dokumentation... oder sollte man für sowas einen extra bereich einrichten?

Rate this thread
WoltLab Burning Board