Java Can't Read My Variable
Jun 25, 2012[code]...
everytime I compile my program, it says I'm having incompatible types.
[code]...
everytime I compile my program, it says I'm having incompatible types.
I have created a program that saves the co-ordinates of the users mouse and saves it to a text file to be used as an auto clicker.
View 2 RepliesI have a C++ application and from that I have to read variables with VisualBasic. How to do this?
View 1 RepliesI want to be able to put a file to a variable so I can interact with it. For example I could put a wav file into a variable and play it back without having to distribute the separate file. Is this possible for instance by using Base64. I have seen some Python programs for example that have images embedded in the code.
View 1 RepliesI have a variable that holds 350 lines from a HTML page. I need to read this variable into Array. reason behind this, because I am parsing a name that exist more then once.
any ideas on how to read variable with many text lines into an Array
I try to make a sub routine to read information from memory variable into XML format.[cod]e...
View 6 RepliesI am trying to create a program that solves the rubiks cube and ive started, I made a program that asks for the variables, now I want to output them using my function writeline(). I am trying to use a for each statement to read and output every variable for each object "face". but I am not sure how to go about it.
Heres the code
Module Module1
Dim Top As New Face
Dim Left As New Face
Dim Front As New Face
Dim Right As New Face
Dim Back As New Face
[Code] .....
I declared the variables with in the first module to be loaded
Module Mod_Global Public DtFRM As String Public DTTo As String I can load the variable and read it with in the module. Ok, good so far. But sending the code to another module results in nothing in the variable.
I simply wont to read one field in a databasetable into a variable.[code]....
View 6 RepliesI want to read in Windows variables from a text file to look for certain strings.
Example I want to find:
%windows%java
or
%userprofile%administrator est.txt
I have no idea where to start. I do have this:
userProfile = Environment.GetEnvironmentVariable("userProfile")
I have binary files to read with this structure:
Code:
Palettes
Palette files have a slightly different header structure as follows:
type pal_header = record
[Code]....
I can hard code each value, and read it with binaryreader, but I suspect that is possible to define a class or a structure, and read it at once with serialization, altought I are not sure on how to read the variable rgb_triplet array.
I have a function that queries the server to add items to a drop down list. Here is the excerpt in question:
While reader.Read()
With f.items
'f is the drop down list object
[Code].....
I want to be able to use this same function over and over to populate all the drop down lists for the whole page, but am getting the error "column g.tostring not found". How do I get this to be handled as a variable string?
How can I write/read a structure variable to a file?
The structure variable is declared as :
Public Structure StructDimensions
Public RectHeight, RectLength, RectWidth As Double
Public PitchedLength, PitchedWidth, PitchedHe, PitchedHr As Double
[Code]....
Is there a simple way to create a file for this type of data?
I have a variable called Valint that i need to read/write to in a script task, but it doesn't seem to work:
public class scriptmain
inherits usercomponent
dim counter as integer
dim Valint as integer
[code]....
For some reason my output is always 0
I have a text file which contains some data as follows
1, 0,0,0,0,0,0,-288.000,-288.000,-16.200,0,0
2, 0,0,0,0,0,0,-432.000,-288.000,-16.200,0,0
3, 0,0,0,0,0,0,-360.000,-360.000,-16.200,0,0
4, 0,0,0,0,0,0,-288.000,-432.000,-16.200,0,0
There r 7 numbers in each row and need to read each of that and store it as an integer value ...I tried the following code..
Imports System
Imports System.IO
Imports System.Collections[code].....
This works and is showing each number by number ...But is there a way to store each number to another variable...something like a(1)=1, b(1)=0...., a(2)=2, b(2)=0......
How can i make a program that will read a text file (.txt) and save each seperate line as a variable? e.g.
Text File:
Hello
My
[code].....
I'm starting to write some code to run an office (not professionally). When I write the Client Class, how do I make it that the number of the client be a primary key (unique and auto incremental)? Also, I want that all the Client and Products data be stored on a txt file.
View 19 RepliesHow do I read all the text from a text file and save it as a string variable? For some reason I remembered it being something like this: IO.FromFile.ReadAllText("path") but thats not it.
View 3 Replieshow I can read a word document to pass its contents into a variable. Is there an easy way to do this?
View 3 RepliesIs it possible to set a variable in my custom class for Private Read/Write access and Public Readonly access without creating Properties with Get and Set? In other words, from within my class I want full access and from my form I only want read access. Right now I declare my variable as either Private or Public to control Public read/write access. I tried googling my question a bit but I'm not sure what the correct terms even ar
View 5 RepliesI am getting the error:"Range variable 'sender' hides a variable in an enclosing block or a range variable previously defined in the query expression."for this
Imports System.Data.SqlClient
Imports System.Linq
Public Class Form1
[code]....
I can select any other item from the table without the error. "sender" has the same properties as "receiver" in the SQL table.
I receive the error -
[Code]...
In VB.NET there is the WITH command that lets you omit an object name and only access the methods and properties needed. For example:
With foo
.bar()
.reset(true)
myVar = .getName()
End With
Is there any such syntax within Java?
existing tool which converts VB.NET Code to Java.
View 1 RepliesPossible Duplicate: WITH statement in Java? does anyone know if there is the With Keyword in Java?
View 4 RepliesI need to reference a C++ dll from my Java project. The method that I need to expose is actually written in Visual Basic. Is there any way to access the Visual Basic code in C++, so that it can eventually be accessed in the Java project?
View 6 RepliesI want to convert java file into vb.net files
View 2 Replies`I want to encode my string using .net and pass it to a java program. I am using the same program for encryption and decryption on both the sides. But the java program and .net programs are returning different MD5 hash codes.Here are the codes for both my programs :
VB.net
md5Provider = New MD5CryptoServiceProvider()
input = UTF8Encoding.UTF8.GetBytes(sSecurityKey)
oHash = oMd5CryptoServiceProvider.ComputeHash(input)[code]....
The problem is that m.digest() from java and oHash from vb.net are different. So i cant go further with DES encryption.
Is there any code in vb.net or java to get ID of computer >>?? I want to write a program which could get id of computer in order to make a license of software like microsoft did ?
View 2 RepliesMy problem is actually a bit more complicated than just how to use AES in VB.NET, since what I'm really trying to do is use AES in VB.NET from within a Java application across JACOB. But for now, what I need to focus on is the AES implementation itself.
[Code]...