Home » Developer & Programmer » Forms » Set Format_mask for a variable
Set Format_mask for a variable [message #172207] Mon, 15 May 2006 08:47 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Hii all

i want to set a mask formating for a variable in my form

i cannot use

set_item_property (BALANCE,FORAMT_MASK,'99.99');

because 'balance' is not an item in my form
it is only a variable that is sent to an excel sheet
and i want to sent it formated
Re: Set Format_mask for a variable [message #172208 is a reply to message #172207] Mon, 15 May 2006 08:51 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
A number is a number. It is the format in the spreadsheet that gives it 'shape'. Search this forum for 'excel' or 'spreadsheet'. There are examples of populating data in Excel spreadsheets. I also think one of them sets a format.

David
Re: Set Format_mask for a variable [message #172209 is a reply to message #172207] Mon, 15 May 2006 08:54 Go to previous messageGo to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

I know i can format it in my excel sheet

but i want to sent it formated..
Re: Set Format_mask for a variable [message #172337 is a reply to message #172209] Tue, 16 May 2006 01:54 Go to previous message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
Then you have to send it as char:
to_char(balance,'99D99')

But don't complain afterwards that you cannot format it to a number in excel Smile

Gerald
Previous Topic: FRM-40105:UNABLE TO RESOLVE REFERENCE TO ITEM
Next Topic: Project help
Goto Forum:
  


Current Time: Fri Sep 20 06:51:33 CDT 2024