gets(d, i, m) function problems

Postby Corzar on Mon Nov 11, 2002 2:35 pm

Hello,

for the gets(string prompt) function I have no problems getting input, but with the other funtions, getsd(string prompt, string defaultValue), getsi(int x, int y, int w, string defaultValue), and getsm(int x, int y, int w, int lines, string defaultValue) I get an error that a form can not be dimentions 0 x 0.

When I tryied:
temp = getsm(1, 1, "Input Name: ", 4, "John Doe"); using the emulator I get a long message about who this won't work and I need to make the dialog bigger. I don't undersantd this, am I perhaps using the wrong x and y vaules?

Xaviersmork

Http://www.mongooze.net
Xavier Smork

*Trying to make something important*

Love my Sony PDA!

http://www.geocities.com/xaviersmork
Corzar
 
Posts: 53
Joined: Mon Apr 23, 2001 11:19 pm
Location: USA

Postby jstadolnik on Mon Nov 11, 2002 2:45 pm

You are passing in a string ("Input Name") for the "w" parameter. This should be the width of the field.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 2 guests

cron