Click here to Skip to main content
15,897,718 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question[Message Deleted] Pin
hitesh sojitra8-May-08 19:35
hitesh sojitra8-May-08 19:35 
AnswerRe: How to enable folder permissions after using .Deny in Vb,Net Pin
Christian Graus8-May-08 19:46
protectorChristian Graus8-May-08 19:46 
QuestionHow to get Domainname/user information Pin
hitesh sojitra8-May-08 18:44
hitesh sojitra8-May-08 18:44 
AnswerRe: How to get Domainname/user information Pin
Sam Xavier8-May-08 19:18
Sam Xavier8-May-08 19:18 
GeneralRe: How to get Domainname/user information Pin
hitesh sojitra8-May-08 19:28
hitesh sojitra8-May-08 19:28 
GeneralRe: How to get Domainname/user information Pin
Anubhava Dimri8-May-08 20:10
Anubhava Dimri8-May-08 20:10 
QuestionIncrement of Alphabetic nos(A to Z) Pin
monika_vasvani8-May-08 17:16
monika_vasvani8-May-08 17:16 
AnswerRe: Increment of Alphabetic nos(A to Z) Pin
C1AllenS8-May-08 18:54
C1AllenS8-May-08 18:54 
Hello Monika,

You may try retrieving the ascii value for the record and then increment the ascii value and
then store back the back the value after charracter conversino.

Lets Say we have 'A' as value. Its ascii value is 65.
We increment this to 66 and convert it back to 66 which will save as 'B'.

You can try the given code. In this code snippet, I am adding the values in a button click which
add A-Z on each click.

<br />
If Me.ListBox1.Items.Count = 0 Then<br />
<br />
            Me.ListBox1.Items.Add("A")<br />
<br />
Else<br />
<br />
            Dim ch As String<br />
<br />
            ch = Me.ListBox1.Items.Item(Me.ListBox1.Items.Count - 1)<br />
<br />
            Dim num As Integer<br />
<br />
            num = (Asc(ch) + 1) ' Gets the Ascii value of the last chrracter and increments it.<br />
<br />
            Me.ListBox1.Items.Add(ChrW(num))  ' Converts the ascii value to charracter<br />
<br />
End If


Just try implementing it. I think this should give you a hint.
Hope this helps.

Regards,
Allen

Allen Smith

Software Engineer
ComponentOne LLC
www.componentone.com

AnswerRe: Increment of Alphabetic nos(A to Z) Pin
darkelv8-May-08 19:27
darkelv8-May-08 19:27 
GeneralRe: Increment of Alphabetic nos(A to Z) Pin
CPallini8-May-08 22:20
mveCPallini8-May-08 22:20 
GeneralRe: Increment of Alphabetic nos(A to Z) Pin
darkelv8-May-08 22:35
darkelv8-May-08 22:35 
QuestionNeed Help with ADODB.Connection_InfoMessage Event in VB6 Pin
valkyriexp8-May-08 14:00
valkyriexp8-May-08 14:00 
AnswerRe: Need Help with ADODB.Connection_InfoMessage Event in VB6 Pin
Dave Kreskowiak9-May-08 1:42
mveDave Kreskowiak9-May-08 1:42 
GeneralRe: Need Help with ADODB.Connection_InfoMessage Event in VB6 Pin
valkyriexp9-May-08 6:06
valkyriexp9-May-08 6:06 
AnswerRe: Need Help with ADODB.Connection_InfoMessage Event in VB6 Pin
valkyriexp9-May-08 10:41
valkyriexp9-May-08 10:41 
QuestionMinimizing a windows application. Pin
dptalt8-May-08 10:25
dptalt8-May-08 10:25 
AnswerRe: Minimizing a windows application. Pin
Smithers-Jones8-May-08 10:44
Smithers-Jones8-May-08 10:44 
Questionspecifying autocad version when opened by my vb application Pin
OlaMohammed8-May-08 10:21
OlaMohammed8-May-08 10:21 
AnswerRe: specifying autocad version when opened by my vb application Pin
Dave Kreskowiak8-May-08 10:31
mveDave Kreskowiak8-May-08 10:31 
GeneralRe: specifying autocad version when opened by my vb application Pin
OlaMohammed10-May-08 3:07
OlaMohammed10-May-08 3:07 
Questionsql server Pin
bapu28898-May-08 9:52
bapu28898-May-08 9:52 
AnswerRe: sql server Pin
Dave Kreskowiak8-May-08 10:20
mveDave Kreskowiak8-May-08 10:20 
QuestionRe: sql server Pin
bapu28899-May-08 9:01
bapu28899-May-08 9:01 
AnswerRe: sql server Pin
Dave Kreskowiak9-May-08 13:54
mveDave Kreskowiak9-May-08 13:54 
QuestionRe: sql server Pin
bapu288910-May-08 7:29
bapu288910-May-08 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.