Need Serious Help With Visual Basic 6.0 Standard Calculator
Hi, everyone. I am a Visual Basic 6.0 newbie and I a experimenting with creating a Standard Calculator. I woul reeeeally like it to behave exactly like the Windows Calculato in that the number buttons behave the same, the display behave the same, the memory store text box behaves the same.
However, I don't want the calculation of percentage to be th same. I want it to be like this:
Suppose you want to find 40% * 200 (40 percent of 200).
I want the calculation to be like this (these are the buttons t be pressed): 40 % * 200 =
This should give the correct answer of 80
Can someone pleeease look at the code and modify it with simpl variable names and easy code to get all the functions of th calculator correct and send back the code to me.
It would be really appreciated.
The appearance of the calculator is just like the Window Standard Calculator.
Here are the Items and the Names given to the controls
Item Control Name
Display field (at the top) lblDisplay
Memory store field (top left) txtMemStore
Backspace cmdBackSpc
CE cmdClearCE
C cmdClearC
MC cmdMC
7 cmdSeven
8 cmdEight
9 cmdNine
/ cmdDivide
sqrt cmdSqRoot
MR cmdMR
4 cmdFour
5 cmdFive
6 cmdSix
* cmdMultiply
% cmdPercent
MS cmdMS
1 cmdOne
2 cmdTwo
3 cmdThree - cmdMinus
1/x cmdFraction
M+ cmdMPlus
0 cmdZero
+/- cmdPlusMinus
cmdDecimal
+ cmdPlus
= cmdEqual
Here is the code:
Option Explicit
Dim NumberClicked Dim Value Dim NumberVal Dim DisplayOff Dim DecimalValue Dim EqualSign Dim DecimalFlag Dim Percentage Dim LastInput Dim Previous Dim ReadoutValue Dim EqualTo Dim Key Dim Ready Dim MaxLength
'Initialization routine for the form. 'Set all variables to initial values.
Sub Form_Load()
DecimalFlag = False LastInput = "NONE" lblDisplay = Format("0")
End Sub
'Click event procedure for the number Zero ( 0 ) button.
Sub cmdZero_Click()
If Value <= 4 Then EqualSign = EqualSign + 1 End If
If NumberClicked = 1 Then lblDisplay = "" NumberClicked = 0 End If
If Val(lblDisplay) > 0 Or Val(lblDisplay) < 0 Or DecimalValue = Then lblDisplay = lblDisplay + "0"
Else lblDisplay = "0" NumberClicked = 1 End If
If DisplayOff = 0 Then lblDisplay.SetFocus
End If
End Sub
'Click event procedure for the number One ( 1 ) button.
Sub cmdOne_Click()
lblDisplay = lblDisplay + "1"
If DisplayOff = "0" Then lblDisplay.SetFocus End If
End Sub
'Click event procedure for the number Two ( 2 ) button.
Sub cmdTwo_Click()
lblDisplay = lblDisplay + "2"
If DisplayOff = "0" Then lblDisplay.SetFocus End If
End Sub
'Click event procedure for the number Three ( 3 ) button.
Sub cmdThree_Click()
lblDisplay = lblDisplay + "3"
If DisplayOff = "0" Then lblDisplay.SetFocus End If
End Sub
'Click event procedure
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Visual Basic Calculator
tring to create a calculator in vb.. but i need to know how can i skip certain empty text box, that are 0 or ""? also i want it so that when i click on calculate, it will just calculate everything at once... because right now.. if the text box is empty i have to click on calculate 2 times so i can add a 1 to that textbox and then click agian to calculate. but i want it to just skip it.
Code:
Private Sub Command1_Click()
Dim hr_1 As Variant
If hr1.Text = "" Then
hr1.Text = 1
ElseIf dt1.Text = "" Then
dt1.Text = 1
ElseIf ot1.Text = "" Then
ot1.Text = 1
ElseIf rt1.Text = "" Then
rt1.Text = 1
Else
hr_1 = Val(hr1.Text) * Val(dt1.Text) * Val(ot1.Text) * Val(rt1.Text)
value1.Caption = hr_1
End If
End Sub
this will only be calculating in multiplycation, also as you can see i have hr_1 dim as variante, is there a float? how can i better this code.
Visual Basic 2005 Calculator
Hello i need the code or a link to a website that has a tutorial on how to write a basic calculator in Visual basic 2005.
Visual Basic.net Standard Edition
Would anyone know if the Visual Basic.net standard edition allows you to do multi threading and also send emails using the visual basic language.
Create An Standard Dll In Visual Basic
I have create a dll in visual basic, it is a activeX dll.
The standard call of dll functions don't worck, ej.
Public declare function myFunction alias "mylib" ...
Sub main ()
A= myFunction myargument
End sub
I have to call like these
Dim Mcalculo As Calculos
Set Mcalculo = New Calculos
Mcalculo.calculafunción MyGrid.DataGrid, MyGrid.ResultGrid, XwinAncho,
YwinAncho, Xstep, Ystep, Text5.Text
These can cause error when call from other programmer in other languish
(Pascal)
How can I compile a standard dll, or do a standard call to my functions.
king regards
Adrian Martínez Vargas
Ing. Geólogo (profesor)
Instituto Superior Minero Metalúrgico (ISMM)
Las Coloradas, s/n
Reparto Caribe.
Moa, Holguín, Cuba
CP 83329
E. Mail
email@removed
Visual Basic .NET 2002 Standard Edition
Currently programming using VB 6.
Been reading reviews for VB .NET 2002 Standard Edition.
One reviewer said
"However, the main limitation with Standard edition is that it does not incorporate the full server explorer. That means you can only really write things for your own pc. There are ways around it, and if your happy just writing things for your own computer then it's fully functional, but if you want to develop remotley or more inparticular, deploy a web application off of a remote server, running from a database, then it's very difficult. Dont get me wrong, you can deploy web applications to the internet, but not with easy database access, which is limiting.... Am I wrong?"
Can someone confirm that if i upgrade to Visual Basic .NET 2002 Standard Edition that i'll still be able to make distributable EXE files?
When i bought VB6 i nearly bought a cheaper version which doesn't come with the compiler so you could write code and only execute it under VB on your PC - fortuantely i went for a version with the compiler in the end.
I want to make sure that when i upgrade i can stil create distributable EXE files.
Thank you.
How To Make A Visual Basic Project A Standard Exe?
hi,
i have prepared a visual basic project which is completely ready. I need to deliver it to the client in the form of an exe. , since this is my first project i do not have any idea how to prepare a standard exe., so guys i require your help in knowing the steps of preparing an exe.
regards,
kaushik
Diference From Visual Basic Standard, Enterprise And Profesional
I make a application (vb-sql server) what contain:
- ado control
- calendar control
- dtpiker
- flexgrid
I want to make pakage and seel application.
Question:
I want to know if licence from Visual basic standart is ok from that or I need licence from Visual basic Enterprise or Profesional
Please give me difference from this version
Standard Calculator
Hi, everyone. I am a Visual Basic 6.0 newbie and I am doing an
assignment on creating a Standard Calculator. I would
reeeeally like it to behave exactly like the Windows Calculator
in that the number buttons behave the same, the display behaves
the same, the memory store text box behaves the same.i really need assistance with codes for buttons(Backspace,CE,SQRT,%,MS,M+,MC,MR)
Word And Visual Basic [ How Can I Get The Save As Window Through Visual Basic? ]
Hi, I made a small program in visual basic that with the use of
Dim oWord as new word.application
Dim oDoc as new word.document
fills a document with some data from the visual basic.
I want when those data are loaded in word the save or save as window to appear.
The command oDoc.saveAs saves the document without even asking for a filename.
What Can I do?
Extracting Visual Basic Source Code From Visual Basic EXE
hi everyone,
Well actually the problem in my case is that i had mad an EXE in VB6 around a week ago and had stored the EXE and th source code in two diferent folders. By mistake somebody ha deleted the source code folder. I wanted to make some changes i the EXE code and Now i have only the EXE folder to deal with.
Is there any method by which i can extract the Visual Basic cod from the VB EXE. Is there any application or software which ca help me in this? Do give me the hyperlink for downloading th EXE for the extraction if possible.
Please let me know at the earliest.
Thanks in advance.
Ankit
Calculator Button > Basic
hello. i just started writing VB.net and needed someones help with 1 button which is left on my calculator. this is the code below. i have 10 buttons, 0-9, aswell as equals, dot, plus, clear and backspace. i want to have a button click event for the backspace button but have no idea on how to do it
thanks for any help. sorry if the code is a bit long.
Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim calc1 As Double
Dim calc2 As Double
#Region " Windows Form Designer generated code "
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Enablebuttons()
End Sub
Private Sub Enablebuttons()
If txtDisplay.Text = "" Then
cmdPlus.Enabled = False
cmdBkSp.Enabled = False
Else
cmdPlus.Enabled = True
cmdBkSp.Enabled = True
End If
If txtDisplay.Text.Contains(".") Then
btnDot.Enabled = False
Else
btnDot.Enabled = True
End If
End Sub
Private Sub btnZero_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnZero.Click
txtDisplay.Text = txtDisplay.Text & btnZero.Text
Enablebuttons()
End Sub
Private Sub btnOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOne.Click
txtDisplay.Text = txtDisplay.Text & btnOne.Text
Enablebuttons()
End Sub
Private Sub btnTwo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTwo.Click
txtDisplay.Text = txtDisplay.Text & btnTwo.Text
Enablebuttons()
End Sub
Private Sub btnThree_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnThree.Click
txtDisplay.Text = txtDisplay.Text & btnThree.Text
Enablebuttons()
End Sub
Private Sub btnFour_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFour.Click
txtDisplay.Text = txtDisplay.Text & btnFour.Text
Enablebuttons()
End Sub
Private Sub btnFive_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFive.Click
txtDisplay.Text = txtDisplay.Text & btnFive.Text
Enablebuttons()
End Sub
Private Sub btnSix_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSix.Click
txtDisplay.Text = txtDisplay.Text & btnSix.Text
Enablebuttons()
End Sub
Private Sub btnSeven_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSeven.Click
txtDisplay.Text = txtDisplay.Text & btnSeven.Text
Enablebuttons()
End Sub
Private Sub btnEight_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEight.Click
txtDisplay.Text = txtDisplay.Text & btnEight.Text
Enablebuttons()
End Sub
Private Sub btnNine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNine.Click
txtDisplay.Text = txtDisplay.Text & btnNine.Text
Enablebuttons()
End Sub
Private Sub cmdEquals_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdEquals.Click
calc2 = calc1 + (txtDisplay.Text)
txtDisplay.Text = calc2
calc1 = 0
Enablebuttons()
End Sub
Private Sub cmdPlus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPlus.Click
calc1 = calc1 + Val(txtDisplay.Text)
txtDisplay.Clear()
Enablebuttons()
End Sub
Private Sub cmdClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdClear.Click
txtDisplay.Clear()
Enablebuttons()
End Sub
Private Sub btnDot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDot.Click
txtDisplay.Text = txtDisplay.Text & btnDot.Text
Enablebuttons()
End Sub
Private Sub cmdBkSp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdBkSp.Click
*** CODE NEEDED HERE
End Sub
End Class
Making A Basic Calculator (+, -, X, /)
Hello,
I just located this site and signed up today. I'm new to VB (1 week), am in a condensed 5-week "Introduction" course.
(1) Assignment is to create a basic calculator (numbers 0-9) with four arithmetic functions (+, -, x, /).
(2) First step: I created the actual calculator form in VB (title, display box, number buttons 0-9, four arithmetic buttons, decimal point button, and equal button). Didn't think you needed to see that generic code.
(3) Second step: I created a flowchart. Would appreciate expert critiques to review it and determine if my initial logic is on track. (Assuming major tasks need to be separate functions/calls(?) exact methods TBD later, premature for me at this point)
Thank you so much for some initial direction / help / advice.
Tried sending the Visio file, didn't work (duh) ... obviously cannot insert flowchart image into a text file ... so saved image as a .jpg file. Hope it converted correctly.
~ Juanita
Basic Calculator Problem
hello.
i am experimenting with visual basic 6 to learn it. the way i learn is by experimenting myself so i am making multiple programs. i made a calculator and all words well except the addition. the code for addition is
Answer.Text = Num1 + Num2
the user enters a number into field 1 which is Num1 and field two which is Num2 but when it adds, the answer comes out wrong. for example, 2 + 3 = 23 or 5 + 5 = 55
how come? and how can i limit it so only numbers can be entered into the text boxs?
thanks in advance.
Help With Making A Calculator On Visual 5
Hello,
can ne1 help me? i am makin a calculator on visual basic 5 and it need 2 be able 2 store 60 digits and have all main functions eg + - / * = and a +/- button. I have the + button and digit buttons workin but i am havin trouble with the = button, i know it has something 2 do with STRINGS. so if ne1 can help plz do so
thanks
VB Roman Calculator Basic Help - URGENT
sorry if someone has posted about this before, but i require serious help
i have desgined a roman calculator, that converts a roman numeral into an arabic number and adds them up, i have two problems however and require help.
my first problem is that i must have a function that has a value as a parameter, so how do i pass a value through the function, at the moment i have each roman numeral button calling the function up
also another problem i have is that the roman numerals must ALL be in descending order, not even IV is allowed, i am struggling to do this, i know that the code should check the numeral before and see if it is greater than or equal to, if it were smaller value, then it could bring up a message box, however i have no clue on doing this, also i have very basic programming knowledge
so could someone pls suggest a piece of code to do this, it must not have any complicated variables, as the only statements i know are select case, if , do while, for- next, mod, div, Len() and MID, so pls only use those statements
* I have uploaded my file for you to view(zip)*, as you can see it is very basic compared to the kind of variables i have seen posted in other examples of code.
Visual Studio 2005 Standard Edition
Hi,
We have an application which converts all the documents(.doc,.rtf,.xls etc.) attached to an Lotus Notes Document to PDF and then merge all the docs into a single PDF and then attach into Lotus Notes Document again.We are currently using VB6 for this .
But,now we want to convert this application to Visual Basic 2005 Standard edition.
Is there any compatibility issue here ?
Is the coding in VB2005 similar to VB6 ?
What else should we watch for ?
Thanks,
Vishal
Visual Studio 2005 Standard Edition
Hi,
We have an application which converts all the documents(.doc,.rtf,.xls etc.) attached to an Lotus Notes Document to PDF and then merge all the docs into a single PDF and then attach into Lotus Notes Document again.We are currently using VB6 for this .
But,now we want to convert this application to Visual Basic 2005 Standard edition.
Is there any compatibility issue here ?
Is the coding in VB2005 similar to VB6 ?
What else should we watch for ?
Thanks,
Vishal
Visual Basic Items Removed From Visual Basic.NET
A while ago (maybe up to a year) I had found a web page (probably a Microsoft MVP's home age) that had a list of about 100 things that were removed from Visual Basic in the transition to Visual Basic.NET. As it is, I would like to look at that again, but I can't seem to find it on my computer. Does anyone remember this page and/or have a copy of the link or the file that was on it. It has particular things like Debug.Print is no longer valid and MsgBox function is not supported. I've look on Microsoft's website and found a great deal of information about implementation difference, but I can't seem to locate this particular piece. If anyone could help I would appreciate it very much.
Thanks in Advnance
Nick August
Fwd: How To Disable Basic Functionality Of Back Space & Delete Key In Visual Basic
<html><div style='background-color:'><DIV>
<P><BR><BR><!-- END YOUR MAIL MESSAGE BEFORE THIS LINE--><BR></P></DIV>
<P><A href="http://www.flamingtext.com/hmail.html" target=_top><IMG alt="Image by FlamingText.com" src="http://hmail.flamingtext.com/hmail/2003/07/02/ flamingtext_com_1057144048_20660.gif" border=0></A> <BR><BR>
<DIV>Try to use API's i am sure u will get ur problem</DIV></P>>Hi all
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>> can any one tell how to disable back space & delete keys in perticular
<DIV></DIV>>text box.
<DIV></DIV>>
<DIV></DIV>>thanks & regards,
<DIV></DIV>>Sridhar cs
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>*Archives: http://www.OpenITx.com/g/visualbasic-l.asp
<DIV></DIV>>*Manage Subscriptions: http://My.ITtoolbox.com
<DIV></DIV>>*Leave Group: mailto:leave-visualbasic-l@openitx.com
<DIV></DIV>>*Questions: mailto: email@removed
<DIV></DIV>>*Terms of Use: http://www.ittoolbox.com/help/termsofuse.htm
<DIV></DIV>>*Copyright (c) ITtoolbox and message author. No redistribution.
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMTEN/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html>
Code Change From Visual Basic.net - Visual Studio 2005
I am working on a tuturial that i have for Visual basic.net ( for now )
I am working with Visual Studio 2005.
I have been working on a code to change the text color by the name put into
the text box.
Visual Basic .Net code.
Label2.ForeColor = Color.FromName(TextBox1.Text)
i get the error
Name 'Color' is not declared.
I was wondering if someone can show me how things would be in Visual Studio.
thank you
Difference Between Visual Basic And Visual Basic.net
visual basic and visual basic.net?
i am very new to programming, and i was wondering if someone could explain the difference between visual basic and visual basic.net. i Know this may be a silly question to ask, but if i dont i will never find out.
i am designing a system for a chinese restaurant, hopefully i hope create it in Visual basic.
if anyone can help, i would be grateful.
What Are Advantages Of Visual Basic .net Over Visual Basic 6.0?
I am thinking of installing Visual Basic.net (standard version) in place of Visual Basic 6.0. I dont know what are the disadvantages of it and I am hesitating to do that. I thought that I should ask the forum before making this decisions.
Would someone help me to know the followings.
1. If I install VB.net, and if I do programming in VB.net, will I be able to run it in Visual Basic 6.0?
2. Can I do everything that I do in Visual Basic 6 in Visual Basic .net?
3. Are there things that I can do in Visual Basic . net which can not be done in Visual Basic 6.0?
4. Would you recommend Visual Basic.net in place of Visual Basic 6.0?
Thanks in advance.
[Solved]Visual Basic && Visual Basic.net
Wat is the difference between Visual Basic & Visual Basic.net?
I just dont understand.....are they 2 different programming languages? Are they related to each other?
Do they both need the Ms Visual Basic software to develop?.....
Which is more powerful & which is better for beginners?
What is there in Vb.net thats not there in VB....?
pls help me out with this...
What Is The Different Between Visual Basic And Visual Basic Access?
hey!
actually i'm going to do a database to track student attendance, where the student need to scan their student ID card.
which software is suitable for me? Visual basic or Visual basic access?
actually what is the different between these two?
can anyone explain to me?
Upgrading From Visual Basic 3 To Visual Basic 6
<html><div style='background-color:'><DIV>
<P><BR><BR></P>
<DIV>
<DIV></DIV>
<P>Is it possible to upgrade a project from VB 3 to VB 6?</P></DIV>
<P>Avi Manor<BR><BR></P><BR><BR><BR></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http: //explorer.msn.com</a><br></html>
DLL Visual Basic 6 On EMbedded Visual Basic 3.0
Hello Friends, as I can create a DLL for embedded. or as I can have something similar to FileListBox of VB6, I want to recover the archives that are in a directory in individual.
Hola Amigos, como puedo crear una DLL para embedded.
o bien como puedo tener algo parecido a FileListBox de VB6, quiero recuperar los archivos que se encuentran en un directorio en particular.
Basic Question On Visual Basic (counting Rows)
Hi friends,
i'm a novice of VBA. I'm trying to write a sub that needs to count the rows of my sheet.
I't seeems there's no way to understand automatically how many rows/columns are used in a sheet.
Can you help me, plzs?
URGENT Help Required Basic Visual Basic Code
How do I bring up records from a list box??? this is what I have so far of my programming...
Option Explicit
Dim FileName As String
Private Sub cmdAddFileWrite_Click()
Dim Name As String
Dim Age As String
Dim DOB As String
Name = txtName.Text
DOB = txtDOB.Text
Age = txtAge.Text
Open FileName For Append As #1
Write #1, Name, DOB, Age
Close #1
txtName.Text = ""
txtDOB.Text = ""
txtAge.Text = ""
txtName.SetFocus
End Sub
Private Sub cmdDisplay_Click()
Dim DataToDisplay As String
Dim Name As String
Dim Age As String
Dim DOB As String
Open FileName For Input As #1
lstdisplay.Clear
Do While Not EOF(1)
Input #1, Name, DOB, Age
lstdisplay.AddItem Name
Loop
Close #1
End Sub
Private Sub Form_Load()
FileName = App.Path & "AddPlayer.txt"
End Sub
That is wha I have so far I mean I have a list box there where it displays the data that has been inputted, now how do I get that to link up wit a record something to do with a module?
Basic Question About Excel Macros And Visual Basic
I have a macro in Excel that takes some input on data ranges and produces charts based on the input. I want to place those charts (a number of them are generated) at a certain point in my excel worksheet. I know I can nudge it over by a certain amount but I can never tell where Excel will place them so I would like to just say "hey chart, sit here". Being able to do that in relation to cells would be great. Also, I would like to know if there is any way to resize the chart without using the percent. Once again, in realtion to cells would be great. Thanks for your help.
Apply Windows Visual Themes From Visual Basic?
I am moderately new a visual basic - i know quit a bit - but not as much as some people - was just wondering - is it possible to make a visual basic program that applies a windows visual style - if so - how?
Data Type Conversion From Visual C++ To Visual Basic
I'm trying to convert some code from Visual C++ to Visual Basic. There are some types, however, that I cannot seem to figure out what they should be. The C++ types are dpecifically WORD and DWORD. What should they be in Visual Basic? I thought DWORD is a Long, but I have no idea what a WORD would be. Specifically, I'm determining the types from the BITMAPINFOHEADER structure.
Microsoft Visual Studio 6/Visual Basic 6 Sp6 RELEASED!!!!
Microsoft released Service Pack 6 for Visual Studio 6, download the latest(and final) service pack if you have VS6/VB6 installed.
Official Page
Official Page of sp6
List of Fixes
See the fixes from sp4 and sp5
Direct Download
Click here to download it (About 62mb)
Download it, it has many fixes included!
As BrianS told me: VB6 SP6, its only 26mb and VB Runtimes sp6 its only 1.02mb
Enjoy the new service pack! It is the LAST!!!!!
Linking To DLL's Created In Visual Studio From Visual Basic
Can anyone give me some usefull tips or links on how to link to routines writen in C++ from Visual Basic
I am aware of the
Declare Function CloseHandle Lib "testdll.dll" (ByVal hObject As Long) As Long
type notation, but I am curious on what I have to do with my DLL to allow this notation to work.
Any suggestions or links would be a great help, thanks!!!
Visual Basic Development && The Visual C++ Shared Objects
I having a really irritating problem. I'm developing an Add-in in Visual Basic... however, to do the development I'm doing, I require the "Visual C++ shared Objects" reference to be added to the project.
Here in lies the problem. I also need the VB command left [as in left string copy - ie. left("aaaaa", 2)] The only problem is that by adding the "Visual C++ shared Objects" reference, the LEFT command is overridden with the C++ version which returns a long (or something like that).
In the References window, I've already set "Visual C++ shared Objects" to the lowest possible priority... is there anyway to get around this arrangement?
Thanks in advance,
Bishop
How To Access Visual FoxPro Data In Visual Basic
I have a problem :(
I would like do delete a record in FoxPro data base with Visual Basic 6
I use ODBC kuhinja:
Const povezava = "Provider=MSDASQL.1; Persist Security Info=False; Data Source=kuhinja"
adott1.ConnectionString = povezava
adott2.ConnectionString = povezava
adott2.RecordSource = "SELECT sifra,grupa,naziv,nabavna,vpc " _
& "FROM izdelki "
adott2.Refresh
to view data in datagrid
I delete a record :
adott1.RecordSource = "SELECT * " _
& " FROM izdelki " _
& " WHERE sifra='" & adott2.Recordset!sifra & "'"
adott1.Refresh
Record is marked in FoxPro as deleted ( not yet PACK ) but in Visual Basic datagrid (adott2.refersh ) record is still in it.
How can i execute PACK in Visual Basic????
THX
sorry for bad english :)
Dumb Question About Visual Basic / Visual Studio...
From someone who has been programming as long as I have, this has got to be a dumb (DUH!!!) question. But if I don't get it answered, I'm going to continue to run around in circles. The problem stems from what appears to be a simple name change, and the fact that I only upgrade my software infrastructure here every few years, so I miss what's going on.
VB6 appears to be the last (terminating) version of Visual Basic. There will be no VB7. But, clearly, the language itself is not being terminated -- just called something else, or is being "assimilated" (resistance is futile) or absorbed into a larger platform, losing its identity as a stand-alone programming environment.
How does Visual Studio relate to Visual Basic? Is the "next generation" version of Visual Basic now being called Visual Basic.NET? Is VB.NET part of Visual Studio? If I get Visual Studio, is VB.NET automatically part of that package? Or is Visual Studio one thing, and VB.NET something else entirely, ordered as two separate things? If I want to keep programming in VB (as a programming language/environment), do I now have to get Visual Studio instead?
Sorry to bother the more enlightened souls here with a DUH question -- but I gotta ask SOMEBODY...
Thanks. You folks have been a GREAT help here.
Compairing Visual Basic && Real Basic
The thing is, I don't have Visual Basic on my computer (I use a Mac). But I do think I have Real Basic.
I'm just asking how similar or different VB and RB are. More specifically, how much can I apply tutorials for VB to the RB environment?
Thanx
Visual Basic And Visual C++ Sharing File
I was wondering how do I access the log file and take its content i.e. numbers into Visual C++ while continuously writing the log file in Visual Basic?
Is the function like Openshare help or is there another way?
Thanks
|