OrbForm Language

Discuss OrbForms Designer and PocketC Architect

Postby troyk9 on Tue Sep 24, 2002 3:36 pm

How do I use ldate() and date() functions to place the date in a string.
In pocket C I easily accomplished it with
showdate(){
int y=2;
string x;
x=date(y);
alert("Today is:\n "+x);
}
as a function prototype
I can't however figure out how to use the functions in OrbForms
:(
Michael
troyk9
 
Posts: 40
Joined: Mon Sep 23, 2002 12:51 am
Location: USA

Postby Leif on Tue Sep 24, 2002 4:41 pm

Hi Michael,
everything you need to know is in the help file, look at the Date object.
This code is the Orbforms version of yours.

showdate(){
Date mydate;
string x;
mydate.now();//get the current date/time
x=mydate.date();
alert("Today is:\n"+x);
}
Leif
 
Posts: 3
Joined: Fri Aug 16, 2002 9:57 am
Location: Sweden

Postby troyk9 on Tue Sep 24, 2002 10:55 pm

Thanks alot Lief!
That helped me out!
I guess I have to look a little deeper into programming with those dot structure thingies.8)
troyk9
 
Posts: 40
Joined: Mon Sep 23, 2002 12:51 am
Location: USA


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 4 guests

cron