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.
This post has been edited 3 times, last edit by "amitmarkel" (Jul 18th 2009, 9:00pm)
Intermediate
Date of registration: Jan 1st 2009
Location: Hanover, Germany
Occupation: Software Engineer
Hobbies: Hilbert Curves
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Private Function IntegerToString(nINT As Integer, nCHRs As Integer, fCHR As String) As String ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ' !! questo ? reso necessario perch? nella versione attuale di Jabaco la funzione 'Format' non ? disponibile !! ' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Dim xs As String xs = Trim(CStr(nINT)) IntegerToString = Trim(String(nCHRs - Len(xs), fCHR)) & xs End Function |
Jabaco Source |
|
1 2 3 |
'VB6-Code MsgBox String(10, "#") MsgBox "#" & Space(10) & "#" |
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Public Function String_(nChars As Integer, aChar As Short) As String Dim sb As New java#lang#StringBuilder(nChars) While nChars > 0: nChars = nChars -1 sb.append(Chr(aChar)) Wend String_ = sb.toString End Function Public Function String_(nChars As Integer, aChar As String) As String Dim sb As New java#lang#StringBuilder(nChars) While nChars > 0: nChars = nChars -1 sb.append(aChar) Wend String_ = sb.toString End Function Public Function Space(nChars As Integer) As String Dim sb As New java#lang#StringBuilder(nChars) While nChars > 0: nChars = nChars -1 sb.append(" ") Wend Space = sb.toString End Function |
Administrator
Date of registration: Jul 16th 2008
Location: Erlangen, Germany
Occupation: Software Developer
Hobbies: Jabaco, game theory, text-mining
There are some more important tasks at the moment. But I'll improve the GUI-Editor in a later version...Quoted
You mean the IDE? I'm working on. Let me know which features are important for you...Quoted
A1880
Well, Jabaco does not reach the full comfort and maturity of VB6 yet.
It's a bug in 1.4.2 - but will be fixed in the next version.Quoted
OlimilO
in Jabaco afair there is none of these. especially "String" is a special keyword that denotes the type of a variable.