I want to create a function and can only get half way to my goal.
dim sStr as string
sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b"
Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
I tried create a public property. However, the Set does not allow
ByRef. How do I work around this?
-----------------------------------------------------------
Gary Kahrau ka****@monair.com
----------------------------------------------------------- 19 2235
Could you be more specific as to what you are trying to do?
"Gary Kahrau" <gk*****@optonline.com> wrote in message
news:9s********************************@4ax.com... I want to create a function and can only get half way to my goal.
dim sStr as string sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b" Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
I tried create a public property. However, the Set does not allow ByRef. How do I work around this?
----------------------------------------------------------- Gary Kahrau ka****@monair.com -----------------------------------------------------------
I am trying to create a function named Entry.
It has two parts to it.
Purpose: to extract a field from a delimited string.
Im my example below, the string is "a,b,c,d". This represents (4)
fields with a comma delimiter. Field #2 would = "b"
Setting field positions in the comma delimited string.
Entry(2,sStr) = "xxx" would place "xxx" n the second field position of
string varialbe (sStr) resulting string would be "a,xxx,c,d"
It's an automation of the split and join functions (less coding).
Hope that helps.
On Wed, 17 Aug 2005 21:24:13 -0400, "Scott M." <s-***@nospam.nospam>
wrote: Could you be more specific as to what you are trying to do?
"Gary Kahrau" <gk*****@optonline.com> wrote in message news:9s********************************@4ax.com.. .I want to create a function and can only get half way to my goal.
dim sStr as string sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b" Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
I tried create a public property. However, the Set does not allow ByRef. How do I work around this?
----------------------------------------------------------- Gary Kahrau ka****@monair.com -----------------------------------------------------------
-----------------------------------------------------------
Gary Kahrau ka****@monair.com
-----------------------------------------------------------
Gary,
Why should it be by ref, there are forever very few reasons to do it by Ref.
Every string operation creates a new string, that is something you cannot
avoid.
I hope this helps,
Cor
"Gary Kahrau" <gk*****@optonline.com> wrote in message
news:2i********************************@4ax.com... I am trying to create a function named Entry.
You'd be better off creating a little Class to wrap this all up and use
a property to access each element, something like
Class CommaList
Public Sub New( ByVal saText as String )
Me.Text = saText
End Sub
Public Property Entry( ByVal iaIndex as Integer ) as String
Get
Return m_sItems( iaIndex - 1 )
End Get
Set( Value as String )
m_sItems( iaIndex - 1 ) = Value
End Set
End Property
Public Property Text() as String
Get
Return [String].Join( ",", m_sItems )
End Get
Set( Value as String )
m_sItems = Value.Split( ","c )
End Set
End Property
Private m_sItems as String() = Nothing
End Class
.... then ...
Dim myList as New CommaList( "a,b,c,d" )
s = myList.Entry( 2 ) ' => "b"
myList.Entry( 2 ) = "B"
s = myList.Text ' => "a,B,c,d"
(If you ever need to extend this class to use delimiters of more than
one character (say, vbCrLf), use the Split() function in
Microsoft.VisualBasic.Strings. The System.String Split() method only
handles one character delimiters (like comma's).
HTH,
Phill W.
"Gary Kahrau" <gk*****@optonline.com> schrieb im Newsbeitrag
news:9s********************************@4ax.com... I want to create a function and can only get half way to my goal.
dim sStr as string sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b" Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
I tried create a public property. However, the Set does not allow ByRef. How do I work around this?
As already mentioned, strings are immutable. Use an array of strings or an
arraylist instead if you want to work with an index. You can encapsulate
this in you own class.
Armin
Phil,
Thanks,
My actual program is similar. However I wanted to shorten it slightly.
I am porting a program from a 4GL and the Entry function is part of
their language.
Using a class requires as new instance each time and the extra step of
assigning the variable to the text property.
It seems like it is impossible to create a statement/function like
MID.
FirstWord = Mid(MyString, 1, 3)
Mid(MyString, 5, 3) = "fox"
On Thu, 18 Aug 2005 10:10:20 +0100, "Phill. W"
<P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote: "Gary Kahrau" <gk*****@optonline.com> wrote in message news:2i********************************@4ax.com.. . I am trying to create a function named Entry.
You'd be better off creating a little Class to wrap this all up and use a property to access each element, something like
Class CommaList
Public Sub New( ByVal saText as String ) Me.Text = saText End Sub
Public Property Entry( ByVal iaIndex as Integer ) as String Get Return m_sItems( iaIndex - 1 ) End Get Set( Value as String ) m_sItems( iaIndex - 1 ) = Value End Set End Property
Public Property Text() as String Get Return [String].Join( ",", m_sItems ) End Get Set( Value as String ) m_sItems = Value.Split( ","c ) End Set End Property
Private m_sItems as String() = Nothing
End Class
... then ...
Dim myList as New CommaList( "a,b,c,d" ) s = myList.Entry( 2 ) ' => "b" myList.Entry( 2 ) = "B" s = myList.Text ' => "a,B,c,d"
(If you ever need to extend this class to use delimiters of more than one character (say, vbCrLf), use the Split() function in Microsoft.VisualBasic.Strings. The System.String Split() method only handles one character delimiters (like comma's).
HTH, Phill W.
-----------------------------------------------------------
Gary Kahrau - VP ka****@monair.com (W)
Stellex Monitor Aerospace Corp.
-----------------------------------------------------------
Cor,
I don't care about the programming technique.
It seems like it is impossible to create a statement/function like MID
with vb.net. The Entry Function/Statement that I am trying to create
is very much the the mid Function/Statement usage.
FirstWord = Mid(MyString, 1, 3)
Mid(MyString, 5, 3) = "fox"
On Thu, 18 Aug 2005 09:22:43 +0200, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote: Gary,
Why should it be by ref, there are forever very few reasons to do it by Ref.
Every string operation creates a new string, that is something you cannot avoid.
I hope this helps,
Cor
-----------------------------------------------------------
Gary Kahrau - VP ka****@monair.com (W)
Stellex Monitor Aerospace Corp.
-----------------------------------------------------------
"Gary Kahrau" <ka****@monair.com> wrote in message
news:pl********************************@4ax.com... Using a class requires as new instance each time and the extra step of assigning the variable to the text property.
It seems like it is impossible to create a statement/function like MID.
In all fairness, VB 'Proper's Mid Statement/Function/Hybrid *is* a
bit of an curiousity. I've got into the habit of class-ing up functionality
like this just so it's more reusable but ... try this:
Public Shared Property Entry _
( ByRef srText as String _
, ByVal iaIndex as Integer _
) as String
Get
Return srText.Split( ","c )( iaIndex -1 )
End Get
Set( Value as String )
Dim s as String() = srtext.Split( ","c )
s.SetValue( Value, iaIndex - 1 )
srText = [String].Join( ",", s )
End Set
End Property
HTH,
Phill W.
Gary,
The mid function in VBNet is the same as in VB6
Dim myString As String = "The fox jumps over whatever"
Dim FirstWord As String = Mid(MyString, 1, 3)
MessageBox.Show(Mid(myString, 5, 3))
shows "fox"
Cor
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:de**********@yarrow.open.ac.uk... "Gary Kahrau" <ka****@monair.com> wrote in message news:pl********************************@4ax.com... Using a class requires as new instance each time and the extra step of assigning the variable to the text property.
It seems like it is impossible to create a statement/function like MID. In all fairness, VB 'Proper's Mid Statement/Function/Hybrid *is* a bit of an curiousity. I've got into the habit of class-ing up
functionality like this just so it's more reusable but ... try this:
DRAT!
You're quite right - Properties can't have ByRef Arguments.
Public Shared Property Entry _ ( ByRef srText as String _ , ByVal iaIndex as Integer _ ) as String
Short of "box"ing the argument into a containing Object (with a String
property holding the string you want to manipulate, maybe you /can't/
do this...
Regards,
Phill W.
Cor,
You missed the point!
I know they are the same in both versions.
It seems impossible to write the statement/function LIKE mid in
vb.net. Try to write your own Mid function.
Without ByRef, you can't write a statement LIKE mid.
Mid(MyString, 5, 3) = "fox"
If you review the thread, Phil W has come to the same conclusion.
On Thu, 18 Aug 2005 14:01:27 +0200, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote: Gary,
The mid function in VBNet is the same as in VB6
Dim myString As String = "The fox jumps over whatever" Dim FirstWord As String = Mid(MyString, 1, 3) MessageBox.Show(Mid(myString, 5, 3))
shows "fox"
Cor
-----------------------------------------------------------
Gary Kahrau - VP ka****@monair.com (W)
Stellex Monitor Aerospace Corp.
-----------------------------------------------------------
"Gary Kahrau" <gk*****@optonline.com> wrote in message
news:9s********************************@4ax.com...
:
: I want to create a function and can only get half way to my goal.
:
: dim sStr as string
: sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b"
: Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
:
:
: I tried create a public property. However, the Set does not allow
: ByRef. How do I work around this?
I think this is what you're looking for. Note how I changed 2nd line.
Also be aware, the arrays are 0 based, so the '2' will grab the *3rd*
element of the array, not the 2nd. If that won't do what you want,
you'll need to modify this code accordingly.
---------------------------------------------
Option Strict
Imports Microsoft.Visualbasic
Imports System
Public Module [module]
Public Sub Main
Dim sStr as string
sStr = Entry(2,"a,b,c,d")
Console.WriteLine(sStr)
'THIS HAS BEEN MODIFIED
'Entry(2,sStr) = "B"
sStr = "a,b,c,d"
Entry(2,sStr,"B")
Console.WriteLine(sStr)
End Sub
Public Function Entry(n As Integer, s As String) As String
Dim sArr() As String = s.split(","c)
If n > UBound(sArr) OrElse n < LBound(sArr) Then
Return ""
Else
Return sArr(n)
End If
End Function
Public Sub Entry(n As Integer, ByRef s As String, Value As String)
Dim sArr() As String = s.split(","c)
If n > UBound(sArr) OrElse n < LBound(sArr) Then
Return
Else
sArr(n) = Value
s = Join(sArr, ","c)
End If
End Sub
End Module
---------------------------------------------
Ralf
--
----------------------------------------------------------
* ^~^ ^~^ *
* _ {~ ~} {~ ~} _ *
* /_``>*< >*<''_\ *
* (\--_)++) (++(_--/) *
----------------------------------------------------------
There are no advanced students in Aikido - there are only
competent beginners. There are no advanced techniques -
only the correct application of basic principles.
"Gary Kahrau" <ka****@monair.com> schrieb It seems impossible to write the statement/function LIKE mid in vb.net. Try to write your own Mid function.
Yes, it's impossible, and that's good. The old syntax is only there for
historic reasons. I don't understand why they kept it. It makes you believe
you would change parts of a string, but it doesn't.
Armin
Gary, You missed the point! I know they are the same in both versions.
It seems impossible to write the statement/function LIKE mid in vb.net. Try to write your own Mid function.
Without ByRef, you can't write a statement LIKE mid.
Mid(MyString, 5, 3) = "fox"
I think that you are right, that is not possible in any program language.
For others who read this thread, this would be more normal.
\\\
Private Sub mySub
MessageBox.Show(mymid("The fox jumps over whatever"))
End Sub
Public Function mymid(ByVal myString As String) As String
Return Mid(myString, 5, 3) 'where mid can be any code
End Function
///
This shows "fox" again
I hope this helps,
Cor
How about a bit of overloading:
Public Shared Function Entry _
(ByVal index as integer, _
ByVal value as string) As String
Return value.Split(","c)(index - 1)
End Function
Public Shared Function Entry _
(ByVal index as integer, _
ByVal value as string, _
ByVal _newvalue as String) As String
Dim _s() As String = value.Split(","c)
_s.SetValue(value, index - 1)
Return = String.Join(",", _s)
End Function
Dim _s As String
_s = Entry(2, "a,b,c,d")
Console.Writeline(_s) ' Should be b
_s = Entry(2, "a,b,c,d", "B")
Console.Writeline(_s) ' Should be a,B,c,d
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:de**********@yarrow.open.ac.uk... "Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message news:de**********@yarrow.open.ac.uk... "Gary Kahrau" <ka****@monair.com> wrote in message news:pl********************************@4ax.com... > Using a class requires as new instance each time and the extra step > of assigning the variable to the text property. > > It seems like it is impossible to create a statement/function like > MID.
In all fairness, VB 'Proper's Mid Statement/Function/Hybrid *is* a bit of an curiousity. I've got into the habit of class-ing up functionality like this just so it's more reusable but ... try this:
DRAT! You're quite right - Properties can't have ByRef Arguments.
Public Shared Property Entry _ ( ByRef srText as String _ , ByVal iaIndex as Integer _ ) as String
Short of "box"ing the argument into a containing Object (with a String property holding the string you want to manipulate, maybe you /can't/ do this...
Regards, Phill W.
Gary,
As I suspect you are figuring out.
Functions cannot be the target of an assignment! Period!
Although Mid looks like a function that is a target of an assignment, its
not, its a Statement! http://msdn.microsoft.com/library/de...l/vastmMid.asp
Statements: such as Mid, If, For are translated into specific IL
instructions by the compiler.
IMPORTANT: Do not confuse the above Mid Statement with the Mid function. http://msdn.microsoft.com/library/de...l/vafctMid.asp
My first thought was using a Shared Default property to update the string:
Public Class Entry
Public Default Shared Property Item(ByVal index As Integer, ByRef
input As String) As String
Get
...
End Get
Set(ByVal value As String)
...
End Set
End Property
End Class
| dim sStr as string
| sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b"
| Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
Unfortunately Default properties cannot Shared, so you would need to
explicitly give the property name as in:
| dim sStr as string
| sStr = Entry.Item(2,"a,b,c,d") ' Sets sStr = "b"
| Entry.Item(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
Further you cannot have a ByRef parameter on a property (as logically it
doesn't make sense). If String was mutable class then the property
Hack/trick might be an option...
In which case I would consider a Get & Set method, something like:
Public Class Entry
Public Shared Function [Get](ByVal index As Integer, ByVal input As
String) As String
Dim values() As String = input.Split(","c)
Return values(index - 1)
End Function
Public Shared Sub [Set](ByVal index As Integer, ByRef input As
String, ByVal value As String)
Dim values() As String = input.Split(","c)
values(index - 1) = value
input = String.Join(","c, values)
End Sub
End Class
Dim sStr, value As String
sStr = "a,b,c,d"
value = Entry.Get(2, sStr) ' Sets value = "b"
Entry.Set(2, sStr, "B") ' Sets sStr = "a,B,c,d"
Alternatively I would consider making sStr itself a class.
Public Class Entry
Dim values() As String
Public Sub New(ByVal input As String)
values = input.Split("c"c)
End Sub
Default Public Property Item(ByVal index As Integer) As String
Get
Return values(index - 1)
End Get
Set(ByVal value As String)
values(index - 1) = value
End Set
End Property
Public Overrides Function ToString() As String
Return String.Join(","c, values)
End Function
End Class
Dim sStr As New Entry("a,b,c,d")
Dim value As String
value = sStr(2) ' Sets sStr = "b"
sStr(2) = "B" ' Sets sStr = "a,B,c,d"
Especially if there was other behavior that could be assigned to the Entry
class.
Hope this helps
Jay
"Gary Kahrau" <gk*****@optonline.com> wrote in message
news:9s********************************@4ax.com...
|I want to create a function and can only get half way to my goal.
|
| dim sStr as string
| sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b"
| Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d"
|
|
| I tried create a public property. However, the Set does not allow
| ByRef. How do I work around this?
|
|
| -----------------------------------------------------------
| Gary Kahrau
| ka****@monair.com
| -----------------------------------------------------------
Stephany,
The second overload would not need to be a Function, it could be a Sub, with
a ByRef parameter. To "maintain" the "original" syntax I would consider
making it a Sub.
| Public Shared Sub Entry _
| (ByVal index as integer, _
| ByRef value as string, _
| ByVal _newvalue as String)
|
| Dim _s() As String = value.Split(","c)
|
| _s.SetValue(value, index - 1)
|
| value = String.Join(",", _s)
|
| End Sub
| _s = "a,b,c,d"
| Entry(2, _s , "B")
Hope this helps
Jay
"Stephany Young" <noone@localhost> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
| How about a bit of overloading:
|
| Public Shared Function Entry _
| (ByVal index as integer, _
| ByVal value as string) As String
|
| Return value.Split(","c)(index - 1)
|
| End Function
|
| Public Shared Function Entry _
| (ByVal index as integer, _
| ByVal value as string, _
| ByVal _newvalue as String) As String
|
| Dim _s() As String = value.Split(","c)
|
| _s.SetValue(value, index - 1)
|
| Return = String.Join(",", _s)
|
| End Function
|
| Dim _s As String
|
| _s = Entry(2, "a,b,c,d")
|
| Console.Writeline(_s) ' Should be b
|
| _s = Entry(2, "a,b,c,d", "B")
|
| Console.Writeline(_s) ' Should be a,B,c,d
|
|
| "Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
| news:de**********@yarrow.open.ac.uk...
| > "Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
| > news:de**********@yarrow.open.ac.uk...
| >> "Gary Kahrau" <ka****@monair.com> wrote in message
| >> news:pl********************************@4ax.com...
| >> > Using a class requires as new instance each time and the extra step
| >> > of assigning the variable to the text property.
| >> >
| >> > It seems like it is impossible to create a statement/function like
| >> > MID.
| >>
| >> In all fairness, VB 'Proper's Mid Statement/Function/Hybrid *is* a
| >> bit of an curiousity. I've got into the habit of class-ing up
| > functionality
| >> like this just so it's more reusable but ... try this:
| >
| > DRAT!
| > You're quite right - Properties can't have ByRef Arguments.
| >
| >> Public Shared Property Entry _
| >> ( ByRef srText as String _
| >> , ByVal iaIndex as Integer _
| >> ) as String
| >
| > Short of "box"ing the argument into a containing Object (with a String
| > property holding the string you want to manipulate, maybe you /can't/
| > do this...
| >
| > Regards,
| > Phill W.
| >
| >
|
|
> It seems impossible to write the statement/function LIKE mid in vb.net. Try to write your own Mid function.
"Assignmentish" use of Mid function is IMHO a terrible hack, which can't
(and must not) be recreated. Statement like:
~
Mid(MyString, 5, 3) = "fox"
~
is converted behind-the-scenes to:
~
CompilerServices.StringType.MidStmtStr(MyString, 5, 3, "fox")
~
Roman
"Gary Kahrau" <ka****@monair.com> wrote in message
news:j7********************************@4ax.com...
:
: Cor,
:
: I don't care about the programming technique.
:
: It seems like it is impossible to create a statement/function like MID
: with vb.net. The Entry Function/Statement that I am trying to create
: is very much the the mid Function/Statement usage.
:
: FirstWord = Mid(MyString, 1, 3)
: Mid(MyString, 5, 3) = "fox"
Actually, you can mimic the MID statement of VB6. I'm not sure why you'd
want to do it, but it can be done. This example is not an exact replica
of the VB6 Mid$ statement, but it's similar enough to satisfy the
requirement that it be "like" Mid:
---------------------------------------
Option Strict
Imports Microsoft.Visualbasic
Imports System
Imports System.Text
Public Module [module]
Public Sub Main
Dim sStr as string = "abcdefgh"
Console.WriteLine(sStr)
MyMid(sStr, 2, "BCD")
Console.WriteLine(sStr)
MyMid(sStr, 2, 2, "bcd")
Console.WriteLine(sStr)
MyMid(sStr, 4, "wxyz")
Console.WriteLine(sStr)
MyMid(sStr, 7, "wxyz")
Console.WriteLine(sStr)
Console.WriteLine(MyMid(sStr, 3))
Console.WriteLine(MyMid(sStr, 3, 2))
End Sub
Public Function MyMid(ByRef [string] As String, _
start As Integer) As String
Return [string].substring(start - 1)
End Function
Public Function MyMid(ByRef [string] As String, _
start As Integer, _
length as Integer) As String
Return [string].substring(start - 1, length)
End Function
Public Sub MyMid(ByRef [string] As String, _
start As Integer, _
value As String)
MyMid([string], start, value.length, Value)
End Sub
Public Sub MyMid(ByRef [string] As String, _
start As Integer, _
length As Integer, _
value As String)
Dim index As Integer
Dim offset As Integer
Dim c() As Char = [string].toCharArray
start = start - 1
With New StringBuilder()
For index = 0 To c.Length - 1
If index < start Then
.Append(c(index))
ElseIf index > (start + length) Then
.Append(c(index))
Else
.Append(Left(value, length))
index += length
If index <= UBound(c) Then
.Append(c(index))
End If
End If
Next
If .Length > [string].length Then
.Length = [string].length
End If
[string] = .toString
End With
End Sub
End Module
---------------------------------------
<snip>
Ralf
--
----------------------------------------------------------
* ^~^ ^~^ *
* _ {~ ~} {~ ~} _ *
* /_``>*< >*<''_\ *
* (\--_)++) (++(_--/) *
----------------------------------------------------------
There are no advanced students in Aikido - there are only
competent beginners. There are no advanced techniques -
only the correct application of basic principles. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MSM |
last post by:
Hello, This may be posted twice if so i apologize. I am creating a
form using php where the information entered into the form will go
into a database. When creating the tables in SQL where do I...
|
by: trialproduct2004 |
last post by:
Hi all
I am having problem at a time of handling threading.
I am having application containing thread.
In thread procedure i ma using recursive function.
This recursive function is adding some...
|
by: Dom Boyce |
last post by:
Hi
First up, I am using MS Access 2002.
I have a database which records analyst rating changes for a list of
companies on a daily basis. Unfortunately, the database has been set
up (by my...
|
by: Learner |
last post by:
Hello,
Here is the code snippet I got strucked at.
I am unable to convert the below line of code to its equavalent vb.net
code. could some one please help me with this?
static public...
|
by: D |
last post by:
Hello all...I have an issue with one of my java script functions that
I'm hoping someone can easily help with. I have a web based application
that we use to create/sign up for overtime. When we...
|
by: Rex |
last post by:
Hi All - I have a question that I think MIGHT be of interest to a
number of us developers. I am somewhat new to VIsual Studio 2005 but
not new to VB. I am looking for ideas about quick and...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted...
|
by: cuties |
last post by:
Hi all....
i'm very new to this programming language. i'm required to fulfill this task in the company i'm doing my practical. i hope i can get guide for my problem...
Here is the script i...
|
by: StevenChiasson |
last post by:
For the record, not a student, just someone attempting to learn C++. Anyway, the problem I'm having right now is the member function detAddress, of object controller.
This is more or less, your...
|
by: Lakshmank85 |
last post by:
Hi,
i have a c++ class,
class XYZ
{
public:
void Function1 ( MyStruct * myStruct );
// member variables, etc
}
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |