Hi. I want to split a string like this: '999 #998 #994 #', by the '#' character into an array, that in this case will have 3 positios. How can I do this? (Please describe all the comands, including the array declaration. I´m totally newbie in Fox Pro). thanks for your help.
How can i split a string by using a single character? Is there a function for that?
For example:
HOW-ARE-YOU-?
I want to split this string in four words, using '-' as a separator.
Thanks.
Iam writint some strings into a file, using the FWRITE() command. When Iam writing the last string in the line I use the FPUTS() and then i continue using the FWRITE(). Anyway the FPUTS() is not breaking the line.
Do you have any other solution for this? Or, what´s wrong in what Iam doing?
Tks.
I am trying to write a string into a file in my PC, using FOXPRO 2.6. My code is:
_path = "C:\Projetos\SINTEGRA\Sinteg.txt"
HANDLE=FOPEN(_path)
if HANDLE > 0
BYTE = "HI!!!"
=FSEEK(HANDLE,0)
=FWRITE(HANDLE,BYTE)
=FCLOSE(HANDLE)
endif
This code never enter in my IF. Iam sure...
...a column called "status". I'm trying to select some fields of my DBF table through the Foxpro software. My select is something like this:
SELECT * FROM TABLE WHERE STATUS = ""
But I've noticed that it is returning all status situation. Maybe it's because "status" is a protected word in...
Thanks guys! I'll try to use the sys(3) or sys(2015) because I want to have more than one record per day. I have a multi-user app but I'll try to use it anyway.
Iam trying to create an index in Fox Pro. I found out that a good solution would be: create an index converting the actual sysdate to an integer. But I can´t find any function that does it. Can anyone help with this problem?
Do anybody know how can i convert this or how can I create an index...
I am implementing an instante messaging application using Java with Corba. I want my server to store the information about the users.
When a Client run the application for the first time, he has to subscribe himself at first. This means that an new client object must be instantiated in the...
Hi. I'm trying to execute a Hello World example in CORBA in Java. My server goes well, but my client is returning this error message:
org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at...
my main have this code:
System.out.println("Before:");
celes.print();
cassino.print();
editor.editProperties();
System.out.println("After:");
celes.print();
cassino.print();
my "editor" class is a JDialog that was set to be...
<input name="imageField" type="image" src="images/bt_adicionar.gif" width="78" height="18" border="0" onclick="location.href('cadastrar_usuario.asp')"/>
I want to open the page 'cadastrar_usuario.asp' in the same frame. But...
...and dtponto > '2003-06-07 00:00:00' and dtponto
'2003-06-08 23:59:59' and precisao < '290'
SET @count = SELECT COUNT(*) FROM @tab_ponto
SET @i = 0
WHILE ( @i < @count )
BEGIN
INSERT INTO tpontos (
I want to insert into table tpontos the result that i've stored...
How can i make a transaction inside my procedure, because when it happens any error at the end of my code it still does the begining and insert in my data base. I want it to do nothing if something fails. How can i do this?
I have this stored procedure but it is wrong:
I got this error message:
Line 30: Incorrect syntax near '@id_ponto'.
How can i fix that?
CREATE PROC proc_grava_dados_sti
@id int,
@identificador varchar(200),
@data datetime,
@latitude varchar(100),
@longitude varchar(100),
@velocidade int...
Iam trying to do a servlet that uses some java classes (all this java classes are into the same package)
I did a servlet example and compile it into the directory classes, and it work fine.
When i tryied do create a new subdirectory of "classes" and put all my java there and also my...
I want to have in my table just the 150 newest records and delete all the rest. But my table is very big and ill declare a row count to do it in steps or it will fail. Does anybody know how can i do that?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.