Want to Calendar as in Visual Basic we can have
Hi,
On forms i want a calendar which should
be invoked on field as we can do in Visual
Basic to let the user having more pleasant
and easy way to select the dates...
A sample code will be very helpful.
Many thanks!
null
This is from Forms on-line help - "Creating a calendar" topic:
To create a calendar:
1 From the Components page of the
STNDRD20.OLB object library, copy or
subclass the Calendar object group.
2 Attach the PL/SQL library CALENDAR.PLL,
which contains the Date_LOV package, to
your module.
3 Create a Key-Listval trigger on the date
item for which you would like to use the
Date List of Values window. Add code to
display the calendar using the Date_LOV
package.
4 If you want the end user to be able to
close the Date List of Values window by
clicking on the window close button in the
title bar, create a form level
When-Window-Closed trigger
The calendar will appear whenever the end user invokes a list of values for the date item. A single calendar can be re-used on many different date items. Simply create a Key-Listval trigger for each item.
I hope this will be a little help for you.
Helena
Similar Messages
-
I want to format my hard drive so i can have files bigger than 4GB what format should I use?
I have a new hard drive that I want to format so it will work with both mac and PC (windows) but I have files that are bigger than 4GB, what format should I use?
It needs to work with both PC and mac because I need to go between two computers etcIf both of these computers are connect to the same router, both are in your home or place of work (Both are in the same location), it is very easy to Network them so you don't have to use DropBox or the external drive to share files between them.
MickAUS2012 wrote:
yea thanks for that, i have drop box so i use that for some of my smaller files. Im just new to the mac so this is all a learning experince thanks for all your help everyone! -
I also tried a system restore and it wouldnt work after that either. I can not even get it to install when i go to the website to install it, it goes through the whole process like it installed it, but it never shows up.
You can reinstall Firefox by overwrite it.(Remember download version lasted). Don't insintall your old version Firefox.And all bookmark,add-on will not be deleted.
Good luck! -
Creting PO through Visual Basic
Hello Guys,
I have to create a Purchase order with Visual Basic. I have created following code but at the end error is showing that <b>NO MASTER RECORD EXIST FOR VENDOR (VENDOR NO).</b>
but with the help of same data i am able to create PO in SAP. I have attach source code. Please take a look and provide me the valuiable information.
Option Explicit
Dim functionCtrl As Object
Dim sapConnection As Object
Dim theFunc As Object
Dim PoNumber
Private Sub Command1_Click()
Set functionCtrl = CreateObject("SAP.Functions")
Set sapConnection = functionCtrl.Connection
sapConnection.Client = "220"
sapConnection.User = "PTBITUSR"
sapConnection.Password = "HELLO2"
sapConnection.Language = "EN"
If sapConnection.Logon(0, False) <> True Then
MsgBox "No connection to R/3 System"
Exit Sub 'End program
End If
Set theFunc = functionCtrl.Add("BAPI_PO_CREATE")
Dim pocur As Object
Dim poheader As Object
Dim poitems As Object
Dim poitemschedule As Object
Dim retMess As Object
Dim returnFunc As Boolean
Dim startzeil As Integer
Dim endcol As Integer
Dim the_name As String
Set poheader = theFunc.exports.Item("PO_HEADER")
Set poitems = theFunc.Tables.Item("PO_ITEMS")
Set poitemschedule = theFunc.Tables.Item("PO_ITEM_SCHEDULES")
Set pocur = theFunc.exports.Item("PO_HEADER_ADD_DATA")
poheader.Value("VENDOR") = "24001291" 'Text1.Text
poheader.Value("PUR_GROUP") = "PE6" '''Text3.Text
poheader.Value("DOC_TYPE") = "NB" ''Text4.Text
poitems.Rows.Add
poitems.Value(1, "PUR_MAT") = "SC101" ''Text5.Text
poitems.Value(1, "PLANT") = "1500" ''Text6.Text
poitems.Value(1, "NET_PRICE") = "2000" ''Text7.Text
poitemschedule.Rows.Add
poitemschedule.Value(1, "DELIV_DATE") = DTPicker1.Value
poitemschedule.Value(1, "QUANTITY") = 3 'Text9.Text
pocur.Value("CURRENCY") = "INR"
poheader.Value("PURCH_ORG") = "1500" '''Text2.Text
returnFunc = theFunc.call
PoNumber = theFunc.imports.Item("PURCHASEORDER")
Set retMess = theFunc.Tables.Item("RETURN")
If retMess Is Nothing Then
MsgBox retMess.Value(1, "MESSAGE")
Else
MsgBox retMess.Value(1, "MESSAGE")
MsgBox "Purchase Order No : " & PoNumber & "Created"
End If
End Sub
Regards
Swati Namdeoin this case u have to pass complete data in full length.
<b>poheader.Value("VENDOR") = "0024001291" = 10 char length.</b>
Regards
Peram -
Can anyone help i want to call java class using visual basic
I want to call java class using visual basic and send some arguments to the main class
Hi,
I don't know VB, but you can surely launch a command line like :
javaw.exe mypackage.MyMainClass myArgument1
Regards -
My aim is to have a ActiveX Control on a web page that can control the field point hardware as a small step towards home automation through the internet.
The place to start is here :
http://sine.ni.com/apps/we/nioc.vp?cid=3769〈=US
This is labview's measurement studio homepage. This contains component works which is a toolkit for visual basic. This should give you all the info you need to get started.
Jared -
How do i use directX in microsoft visual basic studio 2010 express ?
i am writing code to graph stock market prices using microsoft visual basic studio express
i want fast response (i do machine language) using directX
this is my problem
i have never used directX, and i have never used directX in visual basic studio
i followed a tutorial that went like this
Reference: Microsoft.DirectX
Microsoft.DirectX.Direct3D
Microsoft.DirectX.Direct3DX
Imports: Microsoft.DirectX
Microsoft.DirectX.Direct3D
Microsoft.DirectX.Direct3DX
Declare: Private D3Ddev As Device = Nothing
Private D3Dpp As PresentParameters = Nothing
Private DP As DisplayMode = Nothing
i found the reference dll's at C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0
when i imported microsoft.directX.direct3DX i got error #1
namespace or type specified in the imports 'microsoft.directX.direct3DX' doesn't contain any public member or cannot be found...
the same error occurs wether i use direct3DX \1.0.2911.0 or \1.0.2902.0
when i built and ran, i got error #2
microsoft visual basic 2010 express is waiting for an operation to complete ...
it hangs and i have to soft reset ctrl-alt-del
error #3
when i reference
Microsoft.DirectX
Microsoft.DirectX.Direct3D and
Microsoft.DirectX.Direct3DX
from C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0,
all my declares work:
D3Dpp = New PresentParameters() 'Initialize
some stuff for the Presentation parameters
D3Dpp.BackBufferFormat = DP.Format
D3Dpp.BackBufferWidth = DP.Width
D3Dpp.BackBufferHeight = DP.Height
D3Dpp.SwapEffect = SwapEffect.Discard 'There's flip, copy, and discard. Flip and Discard
are used most often.
D3Dpp.PresentationInterval = PresentInterval.Immediate 'Present the scene immediately
but when i start debugging (f5), i get this error message:
mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information
i dont fully understand the visual studio process, but i think 'mixed mode' means run and debug. two seperate app's
i know this is a long question, but the forums don't answer it properly
i want it answered concisly. i am running windows 7 basic, and this is my question
can somebody give me a dozen lines of directX code that will work with my system, so that i can at least draw a line using directX 2D and 3D ?
thanks everybody :)Hi,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Since your issue is related to DirectX, I suggest you consult on DirectX forum:
http://xboxforums.create.msdn.com/forums/ for better response.
Thanks,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How do I use the Oracle Developer Reporting Control in Visual Basic 6.0?
I was wondering how to use the Oracle Developer Reporting Control componant in Visual Basic 6.0 to generate reports in Oracle Reports? Any help would be appreciated.
Hi Rohit,
Would like to ask you some questions about the oracle report with Visual Basic.
1. I have a report built in oracle report. Currently there is a Visual Basic program want to pass some parameter to this report. Can Visual Basic program pass the parameter to this oracel report?
2. Based on yr answer, do i have to installed the oracle report? or just copy and register the Rwsxa60.ocx (i'm using oracle report 6i) in the PC? So can i use this activeX control.
3. Is this activeX control similar to Crystal report object which can found in VB?
4. Is there an example/guide on how the Visual Basic pass the parameter to oracel form?
Your answer will be much appreciated.
Thanks.
Regards,
Hock Leong -
How to edit a WFP application through a Visual Basic command console?
Hi, I'm currently working on a little project of mine, based mostly on a Visual Basic command console, and I've had the idea to add a console-controlled Windows Form.
What the console will eventually do is run, say, 1000 x 1000 [(1,1), (1,2), (1,3)... (574, 349), (574, 350)...] items through into a list, and then these million-or-so entries will use their assigned values as the x and y co-ordinates for
the form, as well as little bits and bobs that will be added as I go along.
Right now, the thing on my mind is this; How do I make, or access, or run, etc. a form, then load this code into it? I've been heading down some reference path with dependents and other stuff and I don't think it's going to carry me anywhere unless I ask
the question directly.
The main plan I have in mind is being to access the controls that a Windows Form has, using the VB console, e.g. Form1.Shape.AddRectangle (x,y) or something.
If this is even possible, which I'm starting to doubt to my dismay, could you give me an absolute, and I mean that from top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough?
Because I don't want to ask questions to the answers to my question.
Thanks :)Items and bits and bobs doesn't have much meaning to me.
If you want to create a Form from a Console app that is simple. Prior to launching the Form provide whatever you want to it I suppose.
Whatever you attempt to provide to the form may need references added. Therefore you can research that on your own using the
MSDN Library search engine which should keep anybody else from having to perform "top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough" since if you don't know
anything you should be attempting to learn. And if anything is outside your scope of knowledge that you need to know to do whatever you want to do you should research and learn that. Not ask anybody else to do it for you or provide you baby step instructions
for doing so.
It's possible trying to provide 1000000 items and bits and bobs to a form will fail or your app may not have the memory allocated for doing that. And it's probably a poor idea too.
Option Strict On
Imports System.Windows.Forms
Imports System.Drawing
Module Module1
Sub Main()
Dim f2 As New Form
f2.Left = 10
f2.Top = 10
f2.Text = "Test Form"
f2.Width = 241
f2.Height = 271
Dim PB As New PictureBox
PB.Width = 225
PB.Height = 225
PB.Left = 0
PB.Top = 0
PB.Image = Image.FromFile("C:\Users\John\Desktop\Picture Files\CrossBones PNG.Png")
f2.Controls.Add(PB)
f2.ShowDialog()
Console.ReadLine()
End Sub
End Module
La vida loca -
Microsoft Forms and Microsoft Visual Basic while opening the Excel file
Hello,
I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
Please note that all macro settings are enabled and below are my system configs.
Win 7 Ultimate 64 bit,
MS Office Pro Plus 2010 64 bit with SP2.
Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.
Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.
First Error
Microsoft Forms
Could not load an object because it is not available on this machine.
Second Error
Microsoft Visual Basic for Applications
Compile error in hidden module: MainUtilities2.
This error commonly occurs when code is incompatible with the version, platform, or architecture of this application. Click "Help" for information on how to correct this error.
Thanks.Your macro's will not run in a Office 64 environment only in a 32bit environment. The 64bit environment has a whole different setup and macro's created in an earlier 32 bit environment will stop working.
So if you want to use them in a 64 Office environment you have to rewrite the macro's.
have a look here:
http://msdn.microsoft.com/en-us/library/gg264421.aspx
Maurice -
Help me plz: Connect to tuxedo from visual basic 6.0 client application
Hello everyone,
i have a big problem
i try to connect my visual basic application 6.0 to the tuxedo, but i dont know how to use tpinit and tpcall in vb environnement.
that my code:
Private Declare Function tpinit Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" _
(ByVal vlTpInfo As Long) As Integer
Private Declare Function TpTerm Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpterm" () As Integer
Private Declare Function TpCall Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpcall" _
(ByVal vsServiceName As String, ByVal vlBufPtr As Long, ByVal vlBufLen As Long, _
ByRef rlReplyBufPtr As Long, ByRef rlReplyBufLen As Long, ByVal vlFlags As Long) As Integer
Private Declare Function TpAlloc Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpalloc" _
(ByVal vsTpType As String, ByVal vsTpSubType As String, ByVal vlSize As Long) As Long
Private Declare Sub TpFree Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpfree" (ByVal vlBufPtr As Long)
Option Explicit
Type tpinfo_type
username As String
cltname As String
passwd As String
flags As Long
datalen As Long
data As String
End Type
Dim tpinfo As tpinfo_type
tpinfo.username = "cajat05"
tpinfo.passwd = "cajat05"
tpinfo.cltname = "VB6"
tpinfo.flags = 110
tpinfo.data = "NMLRS 55502022"
tpinfo.datalen = 14
Dim ret_init As Integer
Dim ret_tpalloc As Long
ret_tpalloc = TpAlloc("tpinfo", "", 9000)
MsgBox "ret_tpalloc = " & ret_tpalloc
'ret_init = tpinit(900)
'MsgBox "ret_init = " & ret_init
Dim s As String
If ret_init = 0 Then
msgbox "good"
Else
msgbox "not good"
End If
Can any one send me the code he made for a similar case ?
Thank you in advance.
Edited by: user3465258 on 2 août 2010 14:57
Edited by: user3465258 on 2 août 2010 15:44
Edited by: user3465258 on 2 août 2010 18:00As an alternative you may want to consider writing a "C" DLL that is callable from VB. The DLL would make the Tuxedo "tp" calls and check all the return codes and the functions defined in the DLL would simplify the interface to VB. I have done this successfully in the past.
Harvey -
How to install visual basic 6.0 in windows 8
Hi microsoft team,
I recently download the visual basic 6.0 in my windows 8 laptop. But it is not working properly in my system.
When i was run the visual basic program it will show "visual basic has stopped working window is checking solution for the problem"like this.
My program is not running. Please tell me the remedy for this kind of problem.
Thank youHello Vijayalakshmi,
First of all, please make sure that you run the installer with elevated permissions (run as an administrator).
Also please take a look at the
Install Visual Basic 6 in Windows 8 guide. It describes all the required steps for installing VB6:
1. Right click on setup.exe of your VB6 install and check Run as Administrator with XP SP 3 compatibility pack. I tried Windows 7 compatibility, it also worked.
2. During the setup, go to components and select everything you want to install except for "Data Access". If "Data Access" is selected, the install will hang even though everything will be installed. Disabling "Data Access"
ensures that the install completes and restarts your computer to finalize the install. Why this hangs the system is beyond me. LOL.
3. I am using a 64bit machine, this is not supported by Microsoft and will not be supported as VB6 is 32 bit and should be hosted in 32 bit system. Thus some controls in my system didn't work. I found my listview control didn't want to burge at all.
4. Download and install VB6 Service Pack (SP6) Runtime Extended (what??) from http://support.microsoft.com/kb/957924?wa=wsignin1.0
5. Now you can start vb6 ide and code, everything should be mnca!
6. Step 1 done, now to code and install my VB6 app in some WinXp, Vista and & 7 machine!!
crossing fingers
Finally, you may also find the
Visual Basic 6 on Windows 8 article helpful. -
How to install visual basic 6.0 to windows 8.1
plz help I want setup vb6.0 into win8.1
I lovw it vb6.0 and also win8.1Hello,
VB 6 is no longer supported by Microsoft. I’d suggest asking in one of the following third-party forums which support Visual Basic 6.
VB forums
VB City
For further information, see:
Where to post your VB 6 questions
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
I want to know how to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl
You have to connect via ODBC, then use code along the lines of what is described here:
http://scn.sap.com/thread/3526924
by me on March 28 and Jan on March 29.
Also see KBA: 1686419 - SAP Crystal Reports designer does not recognize Access *.accdb file
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
DateAdd(interval,number,date) Visual Basic to LabVIEW Time Stamp add 18 months
Hi all,
I need to match Visual Basic Cmd = DateAdd("m", 18, Date()) which adds 18 months to today's date. When I use LabVIEW Time Stamp VI's at first I tried adding 1.5 years in seconds. but this did not match the VB generated method? What method do I use in LV to obtain the VB DateAdd("m", 18, Date())
Example 'Add one month to January 31, 2000
document.write(DateAdd("m",1,"31-Jan-00"))
Output:
2/29/2000Well this is how you do it. However, it doesn't seem to work with the month. There was a thread about this problem not too long ago. If you overflow the month in the date/time rec cluster (so it is greater than 12), date/time to seconds returns 0. Every other element works fine. You can add 1000 to the day and it will figure it out just fine. When this bug is fixed, this will work. Also, it might only be a bug in recent versions. I'm on 8.5 and it doesn't work right.
I realize this isn't a great answer to your question, but as far as I know, this is the easiest way to do what you want and have LabVIEW handle all the work.
Message Edited by Marc A on 10-03-2007 03:56 PM
Attachments:
Example_BD.png 2 KB
Maybe you are looking for
-
Creating a new view in a component
HI, I am trying to create a new view in a BSP component using the wizard. But the context nodes are not getting created. Its throwing up an error - "View not copied with wizard; processing not possible". What could be the problem ? Pls help. Regards,
-
How can I make a movable transparent main window (HTML, not FLEX)?
Hi all- I'm new to AIR and coming up to speed quickly. I got a sample application up and running right away and was able to give it a transparent main window so that the corners are rounded and there is no window title bar. However, I can't figure ou
-
Migrate podcast settings to a new computer
I'm bringing up a new computer and am looking for a way to export my podcast settings from my old computer and import it into my new computer. Does anyone know how to do this? Thanks
-
How to make a tabbed web browser in vb 2013
How do I make a tabbed web browser in vb 2013? Like google chrome, or bing.
-
Purchase Rebate for Manufacturer
Hi Experts, The requirement is to Calculate u201CIndirect rebatesu201D which are sometimes referred to as manufacturer or secondary rebates. They are the result of purchasing certain products from wholesalers or distributors and then claiming a perce